Skip to content

Commit 974b49a

Browse files
Renamed named function iteration
1 parent f0e6f71 commit 974b49a

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

packages/common/src/scopeSupportFacets/scopeSupportFacetInfos.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ export const scopeSupportFacetInfos: Record<
148148
description: "A constructor declaration in a class",
149149
scopeType: "namedFunction",
150150
},
151-
"namedFunction.iteration": {
152-
description: "Iteration scope for named functions",
151+
"namedFunction.iteration.block": {
152+
description:
153+
"Iteration scope for named functions. Statement blocks(body of functions/if classes/for loops/etc).",
153154
scopeType: "namedFunction",
154155
isIteration: true,
155156
},

packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const scopeSupportFacets = [
3939
"anonymousFunction",
4040

4141
"namedFunction",
42-
"namedFunction.iteration",
42+
"namedFunction.iteration.block",
4343
"namedFunction.iteration.document",
4444
"namedFunction.method",
4545
"namedFunction.method.iteration.class",

packages/common/src/scopeSupportFacets/scss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
88
export const scssScopeSupport: LanguageScopeSupportFacetMap = {
99
...cssScopeSupport,
1010

11-
"namedFunction.iteration": supported,
11+
"namedFunction.iteration.block": supported,
1212
"namedFunction.iteration.document": supported,
1313
"functionName.iteration": supported,
1414
"functionName.iteration.document": supported,

packages/cursorless-org-docs/src/docs/contributing/adding-a-new-scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For example, if you'd like to add support for the `namedFunction` facet of the `
3636
"namedFunction.method": supported,
3737
"namedFunction.method.iteration.class": supported,
3838
"namedFunction.constructor": supported,
39-
"namedFunction.iteration": supported,
39+
"namedFunction.iteration.block": supported,
4040
"namedFunction.iteration.document": supported,
4141
```
4242

0 commit comments

Comments
 (0)