Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #2852

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Small fixes #2852

wants to merge 20 commits into from

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.

None yet

2 participants