-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Collection expressions #256
Labels
Milestone
Comments
adrianoc
added a commit
that referenced
this issue
Sep 25, 2024
adrianoc
added a commit
that referenced
this issue
Sep 25, 2024
…lectionExpressionProcessor type (#256)
adrianoc
added a commit
that referenced
this issue
Sep 25, 2024
adrianoc
added a commit
that referenced
this issue
Sep 26, 2024
adrianoc
added a commit
that referenced
this issue
Sep 26, 2024
adrianoc
added a commit
that referenced
this issue
Sep 29, 2024
…tialization (#256) also: 1. Extracts SyntaxWalkerBase.EnsureForwardedMethod() -> MethodExtensions.EnsureForwardedMethod() 2. Fixes variable names when handling constructors in some scenarios
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
Test was using [2, 1] hardcoded collection expression instead of the parameterized values whence collection expressions larger than 2 were not being tested. Since this length is used to determine how the initialization is performed optimized initialization (length >= 3) was not being tested. Fixing this revealed a bug in the logic that selects optimized/unoptimized initialization. AFAICS optimization is only applicable when the target of the collection expression (i.e, a variable assignment/initialization or argument passing) is a container (array/collection/etc) of primitive types but the code was not taking this into consideration.
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
…lectionExpressionProcessor type (#256)
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
…tialization (#256) also: 1. Extracts SyntaxWalkerBase.EnsureForwardedMethod() -> MethodExtensions.EnsureForwardedMethod() 2. Fixes variable names when handling constructors in some scenarios
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
Test was using [2, 1] hardcoded collection expression instead of the parameterized values whence collection expressions larger than 2 were not being tested. Since this length is used to determine how the initialization is performed optimized initialization (length >= 3) was not being tested. Fixing this revealed a bug in the logic that selects optimized/unoptimized initialization. AFAICS optimization is only applicable when the target of the collection expression (i.e, a variable assignment/initialization or argument passing) is a container (array/collection/etc) of primitive types but the code was not taking this into consideration.
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
adrianoc
added a commit
that referenced
this issue
Sep 30, 2024
also refactor the test code to better convey intent and avoid code duplication
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
Example in sharplab
The text was updated successfully, but these errors were encountered: