-
Notifications
You must be signed in to change notification settings - Fork 759
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
index loop syntax #1790
index loop syntax #1790
Conversation
var inaccessibleLocals = this.context.DataFlowAnalyzer.GetInaccessibleLocalsAfterSyntaxMove(nameSyntax, newContext); | ||
switch (inaccessibleLocals.Count) | ||
var inaccessibleLocalLoops = inaccessibleLocals.Select(local => GetEnclosingForExpression(local)).Distinct().ToList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inaccessibleLocalLoops [](start = 16, length = 22)
Most of the changes in this file are to remove code duplication between the paths involved in indexed collection access and normal locals replacement.
f5bfed6
to
5be605b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
5be605b
to
8b0c41a
Compare
Codecov Report
@@ Coverage Diff @@
## main #1790 +/- ##
==========================================
- Coverage 95.07% 95.03% -0.05%
==========================================
Files 370 371 +1
Lines 21543 21690 +147
Branches 15 15
==========================================
+ Hits 20483 20613 +130
- Misses 1060 1077 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Implemented loop index syntax. This fixes #1617.