Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
>
>
>
Примеры ошибок, обнаруженных с...

Примеры ошибок, обнаруженных с помощью диагностики V3107

V3107. Identical expression to the left and to the right of compound assignment.


Neo

V3107 Identical expression 'index' to the left and to the right of compound assignment. CommandStringToken.cs 80


internal static CommandStringToken Parse(....,
                                         ref int index,
                                         ....)
{
  ....
  var ret = new CommandStringToken(....);
  index += end - index;
  return ret;
}

Barotrauma

V3107 Identical expression 'power' to the left and to the right of compound assignment. RelayComponent.cs 150


public override void ReceivePowerProbeSignal(Connection connection,
                                             Item source, float power)
{
  ....
  if (power < 0.0f)
  {
    ....
  }
  else
  {
    if (connection.IsOutput || powerOut == null) { return; }

    if (currPowerConsumption - power < -MaxPower)
    {
      power += MaxPower + (currPowerConsumption - power);
    }
  }
}