Skip to content

Conversation

@rinatxp
Copy link

@rinatxp rinatxp commented Apr 30, 2023

  • converting some switch statements to switch expressions;
  • other small fixes (null-condition operators, object initializers etc)

Comment on lines 788 to 790
_writer.Write("/*");
_writer.Write(text);
_writer.Write("*/");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such calls here are intentionally to avoid string allocations when doing string interpolation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cancelled all such commits

_currentPosition = _stack[_stack.Count - 1];
_stack.RemoveAt(_stack.Count - 1);
_currentPosition = _stack.Last();
_stack.Remove(_stack.Last());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_stack.RemoveAt(_stack.Count - 1); is not the same as _stack.Remove(_stack.Last());

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cancelled this too

@rinatxp
Copy link
Author

rinatxp commented May 2, 2023

Reverted bad commits and added some new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants