mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "forinscope" to "for_in_scope"
This commit is contained in:
@@ -94,7 +94,7 @@ class ForScope extends Scope, @for_scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** A scope induced by a `for`-`in` or `for`-`of` statement. */
|
/** A scope induced by a `for`-`in` or `for`-`of` statement. */
|
||||||
class ForInScope extends Scope, @forinscope {
|
class ForInScope extends Scope, @for_in_scope {
|
||||||
/** Gets the `for`-`in` or `for`-`of` statement that induces this scope. */
|
/** Gets the `for`-`in` or `for`-`of` statement that induces this scope. */
|
||||||
EnhancedForLoop getLoop() { result = getScopeElement() }
|
EnhancedForLoop getLoop() { result = getScopeElement() }
|
||||||
|
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ case @scope.kind of
|
|||||||
| 3 = @module_scope
|
| 3 = @module_scope
|
||||||
| 4 = @block_scope
|
| 4 = @block_scope
|
||||||
| 5 = @for_scope
|
| 5 = @for_scope
|
||||||
| 6 = @forinscope // for-of scopes work the same as for-in scopes
|
| 6 = @for_in_scope // for-of scopes work the same as for-in scopes
|
||||||
| 7 = @comprehensionblockscope
|
| 7 = @comprehensionblockscope
|
||||||
| 8 = @classexprscope
|
| 8 = @classexprscope
|
||||||
| 9 = @namespacescope
|
| 9 = @namespacescope
|
||||||
|
|||||||
@@ -658,7 +658,7 @@
|
|||||||
<v>17</v>
|
<v>17</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@forinscope</k>
|
<k>@for_in_scope</k>
|
||||||
<v>28</v>
|
<v>28</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user