diff --git a/packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/disqualifyDelimiter.json b/packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/disqualifyDelimiter.json index 82fcae2903..42a13a73e3 100644 --- a/packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/disqualifyDelimiter.json +++ b/packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/disqualifyDelimiter.json @@ -388,7 +388,7 @@ "name": "scopes/java/disqualifyDelimiter", "languageId": "java", "facet": "disqualifyDelimiter", - "code": "1 < 2;\n1 > 2;\n1 <= 2;\n1 >= 2;\na << 2;\na >> 2;\na <<= 2;\na >>= 2;\na >>> 2;\na >>>= 2;\n() -> 2;\nswitch (foo) {\n case a -> 2\n}", + "code": "1 < 2;\n1 > 2;\n1 <= 2;\n1 >= 2;\na << 2;\na >> 2;\na <<= 2;\na >>= 2;\na >>> 2;\na >>>= 2;\n() -> 2;\nswitch (value) {\n case a -> 2\n}", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/c.json b/packages/app-web-docs/src/docs/user/languages/fixtures/c.json index ad842817e2..bf3f7334cc 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/c.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/c.json @@ -454,15 +454,15 @@ "name": "scopes/c/branch/branch.switchCase.iteration", "languageId": "c", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -470,7 +470,7 @@ "name": "scopes/c/branch/branch.switchCase", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -487,7 +487,7 @@ "name": "scopes/c/branch/branch.switchCase2", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -853,15 +853,15 @@ "name": "scopes/c/condition/condition.switchCase.iteration", "languageId": "c", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -869,7 +869,7 @@ "name": "scopes/c/condition/condition.switchCase", "languageId": "c", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -1333,16 +1333,16 @@ "name": "scopes/c/interior/interior.switch", "languageId": "c", "facet": "interior.switch", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15", - "removal": "0:14-0:15" + "content": "0:16-0:17", + "removal": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1350,16 +1350,16 @@ "name": "scopes/c/interior/interior.switchCase", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -1385,16 +1385,16 @@ "name": "scopes/c/interior/interior.switchCase2", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -1572,7 +1572,7 @@ "name": "scopes/c/name/name.assignment.compound", "languageId": "c", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -1606,7 +1606,7 @@ "name": "scopes/c/name/name.assignment2", "languageId": "c", "facet": "name.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2299,7 +2299,7 @@ "name": "scopes/c/statement/statement.assignment.compound", "languageId": "c", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2918,16 +2918,16 @@ "name": "scopes/c/statement/statement.switch", "languageId": "c", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -3603,7 +3603,7 @@ "name": "scopes/c/value/value.assignment.compound", "languageId": "c", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3637,7 +3637,7 @@ "name": "scopes/c/value/value.assignment2", "languageId": "c", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3906,16 +3906,16 @@ "name": "scopes/c/value/value.switch", "languageId": "c", "facet": "value.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:8-0:11", - "removal": "0:8-0:11" + "content": "0:8-0:13", + "removal": "0:8-0:13" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/cpp.json b/packages/app-web-docs/src/docs/user/languages/fixtures/cpp.json index 4152aa6a82..1ce9629dbe 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/cpp.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/cpp.json @@ -454,15 +454,15 @@ "name": "scopes/c/branch/branch.switchCase.iteration", "languageId": "c", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -470,7 +470,7 @@ "name": "scopes/c/branch/branch.switchCase", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -487,7 +487,7 @@ "name": "scopes/c/branch/branch.switchCase2", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -853,15 +853,15 @@ "name": "scopes/c/condition/condition.switchCase.iteration", "languageId": "c", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -869,7 +869,7 @@ "name": "scopes/c/condition/condition.switchCase", "languageId": "c", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -1333,16 +1333,16 @@ "name": "scopes/c/interior/interior.switch", "languageId": "c", "facet": "interior.switch", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15", - "removal": "0:14-0:15" + "content": "0:16-0:17", + "removal": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1350,16 +1350,16 @@ "name": "scopes/c/interior/interior.switchCase", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -1385,16 +1385,16 @@ "name": "scopes/c/interior/interior.switchCase2", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -1572,7 +1572,7 @@ "name": "scopes/c/name/name.assignment.compound", "languageId": "c", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -1606,7 +1606,7 @@ "name": "scopes/c/name/name.assignment2", "languageId": "c", "facet": "name.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2299,7 +2299,7 @@ "name": "scopes/c/statement/statement.assignment.compound", "languageId": "c", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2918,16 +2918,16 @@ "name": "scopes/c/statement/statement.switch", "languageId": "c", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -3603,7 +3603,7 @@ "name": "scopes/c/value/value.assignment.compound", "languageId": "c", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3637,7 +3637,7 @@ "name": "scopes/c/value/value.assignment2", "languageId": "c", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3906,16 +3906,16 @@ "name": "scopes/c/value/value.switch", "languageId": "c", "facet": "value.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:8-0:11", - "removal": "0:8-0:11" + "content": "0:8-0:13", + "removal": "0:8-0:13" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -6376,7 +6376,7 @@ "name": "scopes/cpp/value/value.assignment.compound", "languageId": "cpp", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/csharp.json b/packages/app-web-docs/src/docs/user/languages/fixtures/csharp.json index 91c743a4cf..8fda749261 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/csharp.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/csharp.json @@ -1007,15 +1007,15 @@ "name": "scopes/csharp/branch/branch.switchCase.iteration", "languageId": "csharp", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1023,7 +1023,7 @@ "name": "scopes/csharp/branch/branch.switchCase", "languageId": "csharp", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1040,7 +1040,7 @@ "name": "scopes/csharp/branch/branch.switchCase2", "languageId": "csharp", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -1508,15 +1508,15 @@ "name": "scopes/csharp/condition/condition.switchCase.iteration", "languageId": "csharp", "facet": "condition.switchCase.iteration", - "code": "switch(foo) { }", + "code": "switch(value) { }", "scopes": [ { "targets": [ { - "content": "0:13-0:14" + "content": "0:15-0:16" } ], - "domain": "0:13-0:14" + "domain": "0:15-0:16" } ] }, @@ -1524,7 +1524,7 @@ "name": "scopes/csharp/condition/condition.switchCase", "languageId": "csharp", "facet": "condition.switchCase", - "code": "switch(foo) {\n case 0: break;\n}", + "code": "switch(value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -2115,16 +2115,16 @@ "name": "scopes/csharp/interior/interior.switch", "languageId": "csharp", "facet": "interior.switch", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15", - "removal": "0:14-0:15" + "content": "0:16-0:17", + "removal": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -2132,16 +2132,16 @@ "name": "scopes/csharp/interior/interior.switchCase", "languageId": "csharp", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2167,16 +2167,16 @@ "name": "scopes/csharp/interior/interior.switchCase2", "languageId": "csharp", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -2667,7 +2667,7 @@ "name": "scopes/csharp/name/name.assignment.compound", "languageId": "csharp", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2701,7 +2701,7 @@ "name": "scopes/csharp/name/name.assignment2", "languageId": "csharp", "facet": "name.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3395,7 +3395,7 @@ "name": "scopes/csharp/statement/statement.assignment.compound", "languageId": "csharp", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4051,16 +4051,16 @@ "name": "scopes/csharp/statement/statement.switch", "languageId": "csharp", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -5401,7 +5401,7 @@ "name": "scopes/csharp/value/value.assignment.compound", "languageId": "csharp", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5435,7 +5435,7 @@ "name": "scopes/csharp/value/value.assignment2", "languageId": "csharp", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/dart.json b/packages/app-web-docs/src/docs/user/languages/fixtures/dart.json index d9a1d943ff..525a1ac203 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/dart.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/dart.json @@ -1136,15 +1136,15 @@ "name": "scopes/dart/branch/branch.switchCase.iteration", "languageId": "dart", "facet": "branch.switchCase.iteration", - "code": "void main() {\n switch (foo) { }\n}", + "code": "void main() {\n switch (value) { }\n}", "scopes": [ { "targets": [ { - "content": "1:18-1:19" + "content": "1:20-1:21" } ], - "domain": "1:18-1:19" + "domain": "1:20-1:21" } ] }, @@ -1152,7 +1152,7 @@ "name": "scopes/dart/branch/branch.switchCase", "languageId": "dart", "facet": "branch.switchCase", - "code": "void main() {\n switch (foo) {\n case 0:\n break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0:\n break;\n }\n}", "scopes": [ { "targets": [ @@ -1169,7 +1169,7 @@ "name": "scopes/dart/branch/branch.switchCase2", "languageId": "dart", "facet": "branch.switchCase", - "code": "void main() {\n switch (foo) {\n default: {}\n }\n}", + "code": "void main() {\n switch (value) {\n default: {}\n }\n}", "scopes": [ { "targets": [ @@ -1501,15 +1501,15 @@ "name": "scopes/dart/condition/condition.switchCase.iteration", "languageId": "dart", "facet": "condition.switchCase.iteration", - "code": "void main() {\n switch (foo) { }\n}", + "code": "void main() {\n switch (value) { }\n}", "scopes": [ { "targets": [ { - "content": "1:18-1:19" + "content": "1:20-1:21" } ], - "domain": "1:18-1:19" + "domain": "1:20-1:21" } ] }, @@ -1517,7 +1517,7 @@ "name": "scopes/dart/condition/condition.switchCase", "languageId": "dart", "facet": "condition.switchCase", - "code": "void main() {\n switch (foo) {\n case 0: break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0: break;\n }\n}", "scopes": [ { "targets": [ @@ -2176,7 +2176,7 @@ "name": "scopes/dart/interior/interior.switchCase", "languageId": "dart", "facet": "interior.switchCase", - "code": "void main() {\n switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n }\n}", "scopes": [ { "targets": [ @@ -2191,10 +2191,10 @@ "targets": [ { "content": "2:8-7:18", - "removal": "1:18-8:4" + "removal": "1:20-8:4" } ], - "domain": "1:18-8:4" + "domain": "1:20-8:4" }, { "targets": [ @@ -2220,7 +2220,7 @@ "name": "scopes/dart/interior/interior.switchCase2", "languageId": "dart", "facet": "interior.switchCase", - "code": "void main() {\n switch (foo) {\n case 0: { }\n default: { }\n }\n}", + "code": "void main() {\n switch (value) {\n case 0: { }\n default: { }\n }\n}", "scopes": [ { "targets": [ @@ -2235,10 +2235,10 @@ "targets": [ { "content": "2:8-3:20", - "removal": "1:18-4:4" + "removal": "1:20-4:4" } ], - "domain": "1:18-4:4" + "domain": "1:20-4:4" }, { "targets": [ @@ -2852,7 +2852,7 @@ "name": "scopes/dart/name/name.assignment.compound", "languageId": "dart", "facet": "name.assignment.compound", - "code": "void main() {\n foo += 0;\n}", + "code": "void main() {\n foo += 1;\n}", "scopes": [ { "targets": [ @@ -3480,7 +3480,7 @@ "name": "scopes/dart/statement/statement.assignment.compound", "languageId": "dart", "facet": "statement.assignment.compound", - "code": "void main() {\n foo += 0;\n}", + "code": "void main() {\n foo += 1;\n}", "scopes": [ { "targets": [ @@ -4106,7 +4106,7 @@ "name": "scopes/dart/statement/statement.switch", "languageId": "dart", "facet": "statement.switch", - "code": "void main() {\n switch (foo) {}\n}", + "code": "void main() {\n switch (value) {}\n}", "scopes": [ { "targets": [ @@ -4120,11 +4120,11 @@ { "targets": [ { - "content": "1:4-1:19", + "content": "1:4-1:21", "removal": "1:0-2:0" } ], - "domain": "1:4-1:19" + "domain": "1:4-1:21" } ] }, @@ -5521,7 +5521,7 @@ "name": "scopes/dart/value/value.assignment.compound", "languageId": "dart", "facet": "value.assignment.compound", - "code": "void main() {\n foo += 0;\n}", + "code": "void main() {\n foo += 1;\n}", "scopes": [ { "targets": [ @@ -5874,16 +5874,16 @@ "name": "scopes/dart/value/value.switch", "languageId": "dart", "facet": "value.switch", - "code": "void main() {\n switch (foo) {}\n}", + "code": "void main() {\n switch (value) {}\n}", "scopes": [ { "targets": [ { - "content": "1:12-1:15", - "removal": "1:12-1:15" + "content": "1:12-1:17", + "removal": "1:12-1:17" } ], - "domain": "1:4-1:19" + "domain": "1:4-1:21" } ] }, diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/go.json b/packages/app-web-docs/src/docs/user/languages/fixtures/go.json index bee803acff..6cd1df13a7 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/go.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/go.json @@ -727,15 +727,15 @@ "name": "scopes/go/branch/branch.switchCase.iteration", "languageId": "go", "facet": "branch.switchCase.iteration", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13" + "content": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -759,7 +759,7 @@ "name": "scopes/go/branch/branch.switchCase", "languageId": "go", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break\n}", + "code": "switch (value) {\n case 0:\n break\n}", "scopes": [ { "targets": [ @@ -776,7 +776,7 @@ "name": "scopes/go/branch/branch.switchCase2", "languageId": "go", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -1033,15 +1033,15 @@ "name": "scopes/go/condition/condition.switchCase.iteration", "languageId": "go", "facet": "condition.switchCase.iteration", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13" + "content": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -1065,7 +1065,7 @@ "name": "scopes/go/condition/condition.switchCase", "languageId": "go", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break\n}", + "code": "switch (value) {\n case 0: break\n}", "scopes": [ { "targets": [ @@ -1082,7 +1082,7 @@ "name": "scopes/go/condition/condition.switchCase2", "languageId": "go", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1: break\n}", + "code": "switch (value) {\n case 0, 1: break\n}", "scopes": [ { "targets": [ @@ -1502,16 +1502,16 @@ "name": "scopes/go/interior/interior.switch", "languageId": "go", "facet": "interior.switch", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13", - "removal": "0:12-0:13" + "content": "0:14-0:15", + "removal": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -1536,16 +1536,16 @@ "name": "scopes/go/interior/interior.switchCase", "languageId": "go", "facet": "interior.switchCase", - "code": "switch foo {\n case 0:\n bar;\n break\n default:\n bar;\n break\n}", + "code": "switch value {\n case 0:\n bar;\n break\n default:\n bar;\n break\n}", "scopes": [ { "targets": [ { "content": "1:4-6:13", - "removal": "0:12-7:0" + "removal": "0:14-7:0" } ], - "domain": "0:12-7:0" + "domain": "0:14-7:0" }, { "targets": [ @@ -1571,16 +1571,16 @@ "name": "scopes/go/interior/interior.switchCase2", "languageId": "go", "facet": "interior.switchCase", - "code": "switch foo {\n case 0: { }\n default: { }\n}", + "code": "switch value {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:12-3:0" + "removal": "0:14-3:0" } ], - "domain": "0:12-3:0" + "domain": "0:14-3:0" }, { "targets": [ @@ -1918,7 +1918,7 @@ "name": "scopes/go/name/name.assignment.compound", "languageId": "go", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -2444,7 +2444,7 @@ "name": "scopes/go/statement/statement.assignment.compound", "languageId": "go", "facet": "statement.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -2931,16 +2931,16 @@ "name": "scopes/go/statement/statement.switch", "languageId": "go", "facet": "statement.switch", - "code": "switch foo {}", + "code": "switch value {}", "scopes": [ { "targets": [ { - "content": "0:0-0:13", - "removal": "0:0-0:13" + "content": "0:0-0:15", + "removal": "0:0-0:15" } ], - "domain": "0:0-0:13" + "domain": "0:0-0:15" } ] }, @@ -3661,7 +3661,7 @@ "name": "scopes/go/value/value.assignment.compound", "languageId": "go", "facet": "value.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -3884,16 +3884,16 @@ "name": "scopes/go/value/value.switch", "languageId": "go", "facet": "value.switch", - "code": "switch foo {}", + "code": "switch value {}", "scopes": [ { "targets": [ { - "content": "0:7-0:10", - "removal": "0:7-0:11" + "content": "0:7-0:12", + "removal": "0:7-0:13" } ], - "domain": "0:0-0:13" + "domain": "0:0-0:15" } ] }, diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/java.json b/packages/app-web-docs/src/docs/user/languages/fixtures/java.json index 3c4d5eaa15..105cbcbde4 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/java.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/java.json @@ -990,15 +990,15 @@ "name": "scopes/java/branch/branch.switchCase.iteration", "languageId": "java", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1006,7 +1006,7 @@ "name": "scopes/java/branch/branch.switchCase", "languageId": "java", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1023,7 +1023,7 @@ "name": "scopes/java/branch/branch.switchCase2", "languageId": "java", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -1904,15 +1904,15 @@ "name": "scopes/java/condition/condition.switchCase.iteration", "languageId": "java", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1920,7 +1920,7 @@ "name": "scopes/java/condition/condition.switchCase", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -1937,7 +1937,7 @@ "name": "scopes/java/condition/condition.switchCase2", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1: break;\n}", + "code": "switch (value) {\n case 0, 1: break;\n}", "scopes": [ { "targets": [ @@ -1954,7 +1954,7 @@ "name": "scopes/java/condition/condition.switchCase3", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0 -> 0;\n}", + "code": "switch (value) {\n case 0 -> 0;\n}", "scopes": [ { "targets": [ @@ -1971,7 +1971,7 @@ "name": "scopes/java/condition/condition.switchCase4", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1 -> 0;\n}", + "code": "switch (value) {\n case 0, 1 -> 0;\n}", "scopes": [ { "targets": [ @@ -2022,7 +2022,7 @@ "name": "scopes/java/disqualifyDelimiter", "languageId": "java", "facet": "disqualifyDelimiter", - "code": "1 < 2;\n1 > 2;\n1 <= 2;\n1 >= 2;\na << 2;\na >> 2;\na <<= 2;\na >>= 2;\na >>> 2;\na >>>= 2;\n() -> 2;\nswitch (foo) {\n case a -> 2\n}", + "code": "1 < 2;\n1 > 2;\n1 <= 2;\n1 >= 2;\na << 2;\na >> 2;\na <<= 2;\na >>= 2;\na >>> 2;\na >>>= 2;\n() -> 2;\nswitch (value) {\n case a -> 2\n}", "scopes": [ { "targets": [ @@ -2619,16 +2619,16 @@ "name": "scopes/java/interior/interior.switchCase", "languageId": "java", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2654,16 +2654,16 @@ "name": "scopes/java/interior/interior.switchCase2", "languageId": "java", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -2986,7 +2986,7 @@ "name": "scopes/java/name/name.assignment.compound", "languageId": "java", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -3836,7 +3836,7 @@ "name": "scopes/java/statement/statement.assignment.compound", "languageId": "java", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4739,16 +4739,16 @@ "name": "scopes/java/statement/statement.switch", "languageId": "java", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -4875,7 +4875,7 @@ "name": "scopes/java/statement/statement.yield", "languageId": "java", "facet": "statement.yield", - "code": "switch (foo) {\n case 0:\n yield 0;\n}", + "code": "switch (value) {\n case 0:\n yield 0;\n}", "scopes": [ { "targets": [ @@ -5823,7 +5823,7 @@ "name": "scopes/java/value/value.assignment.compound", "languageId": "java", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5857,7 +5857,7 @@ "name": "scopes/java/value/value.assignment2", "languageId": "java", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6245,13 +6245,13 @@ "name": "scopes/java/value/value.yield", "languageId": "java", "facet": "value.yield", - "code": "switch (foo) {\n case 0:\n yield 0;\n}", + "code": "switch (value) {\n case 0:\n yield 0;\n}", "scopes": [ { "targets": [ { - "content": "0:8-0:11", - "removal": "0:8-0:11" + "content": "0:8-0:13", + "removal": "0:8-0:13" } ], "domain": "0:0-3:1" diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/javascript.json b/packages/app-web-docs/src/docs/user/languages/fixtures/javascript.json index 4bc83d8946..dfd0907246 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/javascript.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/javascript.json @@ -1801,15 +1801,15 @@ "name": "scopes/javascript.core/branch/branch.switchCase.iteration", "languageId": "javascript.core", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1817,7 +1817,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1834,7 +1834,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase2", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -2217,15 +2217,15 @@ "name": "scopes/javascript.core/condition/condition.switchCase.iteration", "languageId": "javascript.core", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -2233,7 +2233,7 @@ "name": "scopes/javascript.core/condition/condition.switchCase", "languageId": "javascript.core", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -2789,16 +2789,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2824,16 +2824,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase2", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -3350,7 +3350,7 @@ "name": "scopes/javascript.core/name/name.assignment.compound", "languageId": "javascript.core", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4696,7 +4696,7 @@ "name": "scopes/javascript.core/statement/statement.assignment.compound", "languageId": "javascript.core", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5703,16 +5703,16 @@ "name": "scopes/javascript.core/statement/statement.switch", "languageId": "javascript.core", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -6243,7 +6243,7 @@ "name": "scopes/javascript.core/value/value.assignment.compound", "languageId": "javascript.core", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6294,7 +6294,7 @@ "name": "scopes/javascript.core/value/value.assignment2", "languageId": "javascript.core", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/javascriptreact.json b/packages/app-web-docs/src/docs/user/languages/fixtures/javascriptreact.json index 4bc83d8946..dfd0907246 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/javascriptreact.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/javascriptreact.json @@ -1801,15 +1801,15 @@ "name": "scopes/javascript.core/branch/branch.switchCase.iteration", "languageId": "javascript.core", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1817,7 +1817,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1834,7 +1834,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase2", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -2217,15 +2217,15 @@ "name": "scopes/javascript.core/condition/condition.switchCase.iteration", "languageId": "javascript.core", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -2233,7 +2233,7 @@ "name": "scopes/javascript.core/condition/condition.switchCase", "languageId": "javascript.core", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -2789,16 +2789,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2824,16 +2824,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase2", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -3350,7 +3350,7 @@ "name": "scopes/javascript.core/name/name.assignment.compound", "languageId": "javascript.core", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4696,7 +4696,7 @@ "name": "scopes/javascript.core/statement/statement.assignment.compound", "languageId": "javascript.core", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5703,16 +5703,16 @@ "name": "scopes/javascript.core/statement/statement.switch", "languageId": "javascript.core", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -6243,7 +6243,7 @@ "name": "scopes/javascript.core/value/value.assignment.compound", "languageId": "javascript.core", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6294,7 +6294,7 @@ "name": "scopes/javascript.core/value/value.assignment2", "languageId": "javascript.core", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/kotlin.json b/packages/app-web-docs/src/docs/user/languages/fixtures/kotlin.json index e058dc5fdf..fcb34b8abb 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/kotlin.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/kotlin.json @@ -3338,7 +3338,7 @@ "name": "scopes/kotlin/name/name.assignment.compound", "languageId": "kotlin", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -4152,7 +4152,7 @@ "name": "scopes/kotlin/statement/statement.assignment.compound", "languageId": "kotlin", "facet": "statement.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -6599,7 +6599,7 @@ "name": "scopes/kotlin/value/value.assignment.compound", "languageId": "kotlin", "facet": "value.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/php.json b/packages/app-web-docs/src/docs/user/languages/fixtures/php.json index 56cc96c04e..c731726c54 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/php.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/php.json @@ -1032,15 +1032,15 @@ "name": "scopes/php/branch/branch.switchCase.iteration", "languageId": "php", "facet": "branch.switchCase.iteration", - "code": " \"0\",\n}", + "code": "match value {\n 0 => \"0\",\n}", "scopes": [ { "targets": [ @@ -964,7 +964,7 @@ "name": "scopes/rust/branch/branch.switchCase2", "languageId": "rust", "facet": "branch.switchCase", - "code": "match foo {\n _ => \"_\",\n}", + "code": "match value {\n _ => \"_\",\n}", "scopes": [ { "targets": [ @@ -1074,15 +1074,15 @@ "name": "scopes/rust/condition.switchCase.iteration", "languageId": "rust", "facet": "condition.switchCase.iteration", - "code": "match foo { }", + "code": "match value { }", "scopes": [ { "targets": [ { - "content": "0:11-0:12" + "content": "0:13-0:14" } ], - "domain": "0:11-0:12" + "domain": "0:13-0:14" } ] }, @@ -1090,7 +1090,7 @@ "name": "scopes/rust/condition.switchCase", "languageId": "rust", "facet": "condition.switchCase", - "code": "match foo {\n 0 => 0\n}", + "code": "match value {\n 0 => 0\n}", "scopes": [ { "targets": [ @@ -1107,7 +1107,7 @@ "name": "scopes/rust/condition.switchCase2", "languageId": "rust", "facet": "condition.switchCase", - "code": "match foo {\n _ => 0\n}", + "code": "match value {\n _ => 0\n}", "scopes": [ { "targets": [ @@ -1628,16 +1628,16 @@ "name": "scopes/rust/interior/interior.switch", "languageId": "rust", "facet": "interior.switch", - "code": "match foo { }", + "code": "match value { }", "scopes": [ { "targets": [ { - "content": "0:11-0:12", - "removal": "0:11-0:12" + "content": "0:13-0:14", + "removal": "0:13-0:14" } ], - "domain": "0:11-0:12" + "domain": "0:13-0:14" } ] }, @@ -1645,16 +1645,16 @@ "name": "scopes/rust/interior/interior.switchCase", "languageId": "rust", "facet": "interior.switchCase", - "code": "match foo {\n 0 => bar\n _ => bar\n}", + "code": "match value {\n 0 => bar\n _ => bar\n}", "scopes": [ { "targets": [ { "content": "1:4-2:12", - "removal": "0:11-3:0" + "removal": "0:13-3:0" } ], - "domain": "0:11-3:0" + "domain": "0:13-3:0" }, { "targets": [ @@ -1680,16 +1680,16 @@ "name": "scopes/rust/interior/interior.switchCase2", "languageId": "rust", "facet": "interior.switchCase", - "code": "match foo {\n 0 => { }\n _ => { }\n}", + "code": "match value {\n 0 => { }\n _ => { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:12", - "removal": "0:11-3:0" + "removal": "0:13-3:0" } ], - "domain": "0:11-3:0" + "domain": "0:13-3:0" }, { "targets": [ @@ -2010,7 +2010,7 @@ "name": "scopes/rust/name/name.assignment.compound", "languageId": "rust", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2617,7 +2617,7 @@ "name": "scopes/rust/statement/statement.assignment.compound", "languageId": "rust", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -3144,16 +3144,16 @@ "name": "scopes/rust/statement/statement.switch", "languageId": "rust", "facet": "statement.switch", - "code": "match foo {}", + "code": "match value {}", "scopes": [ { "targets": [ { - "content": "0:0-0:12", - "removal": "0:0-0:12" + "content": "0:0-0:14", + "removal": "0:0-0:14" } ], - "domain": "0:0-0:12" + "domain": "0:0-0:14" } ] }, @@ -4101,7 +4101,7 @@ "name": "scopes/rust/value/value.assignment.compound", "languageId": "rust", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4439,16 +4439,16 @@ "name": "scopes/rust/value/value.switch", "languageId": "rust", "facet": "value.switch", - "code": "match foo {}", + "code": "match value {}", "scopes": [ { "targets": [ { - "content": "0:6-0:9", - "removal": "0:6-0:10" + "content": "0:6-0:11", + "removal": "0:6-0:12" } ], - "domain": "0:0-0:12" + "domain": "0:0-0:14" } ] }, diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/scala.json b/packages/app-web-docs/src/docs/user/languages/fixtures/scala.json index 2f61c48bc5..789c42314f 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/scala.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/scala.json @@ -2430,7 +2430,7 @@ "name": "scopes/scala/name/name.assignment.compound", "languageId": "scala", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -3089,7 +3089,7 @@ "name": "scopes/scala/statement/statement.assignment.compound", "languageId": "scala", "facet": "statement.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -4856,7 +4856,7 @@ "name": "scopes/scala/value/value.assignment.compound", "languageId": "scala", "facet": "value.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/swift.json b/packages/app-web-docs/src/docs/user/languages/fixtures/swift.json index a1dee08496..d2173b7367 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/swift.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/swift.json @@ -2422,7 +2422,7 @@ "name": "scopes/swift/name/name.assignment.compound", "languageId": "swift", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -3133,7 +3133,7 @@ "name": "scopes/swift/statement/statement.assignment.compound", "languageId": "swift", "facet": "statement.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -5080,7 +5080,7 @@ "name": "scopes/swift/value/value.assignment.compound", "languageId": "swift", "facet": "value.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/typescript.json b/packages/app-web-docs/src/docs/user/languages/fixtures/typescript.json index e661ee433d..f54e8a7f24 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/typescript.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/typescript.json @@ -1801,15 +1801,15 @@ "name": "scopes/javascript.core/branch/branch.switchCase.iteration", "languageId": "javascript.core", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1817,7 +1817,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1834,7 +1834,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase2", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -2217,15 +2217,15 @@ "name": "scopes/javascript.core/condition/condition.switchCase.iteration", "languageId": "javascript.core", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -2233,7 +2233,7 @@ "name": "scopes/javascript.core/condition/condition.switchCase", "languageId": "javascript.core", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -2789,16 +2789,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2824,16 +2824,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase2", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -3350,7 +3350,7 @@ "name": "scopes/javascript.core/name/name.assignment.compound", "languageId": "javascript.core", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4696,7 +4696,7 @@ "name": "scopes/javascript.core/statement/statement.assignment.compound", "languageId": "javascript.core", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5703,16 +5703,16 @@ "name": "scopes/javascript.core/statement/statement.switch", "languageId": "javascript.core", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -6243,7 +6243,7 @@ "name": "scopes/javascript.core/value/value.assignment.compound", "languageId": "javascript.core", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6294,7 +6294,7 @@ "name": "scopes/javascript.core/value/value.assignment2", "languageId": "javascript.core", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/languages/fixtures/typescriptreact.json b/packages/app-web-docs/src/docs/user/languages/fixtures/typescriptreact.json index 2fddb763f6..54231a45c3 100644 --- a/packages/app-web-docs/src/docs/user/languages/fixtures/typescriptreact.json +++ b/packages/app-web-docs/src/docs/user/languages/fixtures/typescriptreact.json @@ -1801,15 +1801,15 @@ "name": "scopes/javascript.core/branch/branch.switchCase.iteration", "languageId": "javascript.core", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1817,7 +1817,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1834,7 +1834,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase2", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -2217,15 +2217,15 @@ "name": "scopes/javascript.core/condition/condition.switchCase.iteration", "languageId": "javascript.core", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -2233,7 +2233,7 @@ "name": "scopes/javascript.core/condition/condition.switchCase", "languageId": "javascript.core", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -2789,16 +2789,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2824,16 +2824,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase2", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -3350,7 +3350,7 @@ "name": "scopes/javascript.core/name/name.assignment.compound", "languageId": "javascript.core", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -4696,7 +4696,7 @@ "name": "scopes/javascript.core/statement/statement.assignment.compound", "languageId": "javascript.core", "facet": "statement.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -5703,16 +5703,16 @@ "name": "scopes/javascript.core/statement/statement.switch", "languageId": "javascript.core", "facet": "statement.switch", - "code": "switch (foo) {}", + "code": "switch (value) {}", "scopes": [ { "targets": [ { - "content": "0:0-0:15", - "removal": "0:0-0:15" + "content": "0:0-0:17", + "removal": "0:0-0:17" } ], - "domain": "0:0-0:15" + "domain": "0:0-0:17" } ] }, @@ -6243,7 +6243,7 @@ "name": "scopes/javascript.core/value/value.assignment.compound", "languageId": "javascript.core", "facet": "value.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6294,7 +6294,7 @@ "name": "scopes/javascript.core/value/value.assignment2", "languageId": "javascript.core", "facet": "value.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/scopes/fixtures/branch.json b/packages/app-web-docs/src/docs/user/scopes/fixtures/branch.json index 14c6afa2c9..7cedd7a1e4 100644 --- a/packages/app-web-docs/src/docs/user/scopes/fixtures/branch.json +++ b/packages/app-web-docs/src/docs/user/scopes/fixtures/branch.json @@ -97,15 +97,15 @@ "name": "scopes/c/branch/branch.switchCase.iteration", "languageId": "c", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -113,7 +113,7 @@ "name": "scopes/c/branch/branch.switchCase", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -130,7 +130,7 @@ "name": "scopes/c/branch/branch.switchCase2", "languageId": "c", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -325,15 +325,15 @@ "name": "scopes/csharp/branch/branch.switchCase.iteration", "languageId": "csharp", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -341,7 +341,7 @@ "name": "scopes/csharp/branch/branch.switchCase", "languageId": "csharp", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -358,7 +358,7 @@ "name": "scopes/csharp/branch/branch.switchCase2", "languageId": "csharp", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -562,15 +562,15 @@ "name": "scopes/dart/branch/branch.switchCase.iteration", "languageId": "dart", "facet": "branch.switchCase.iteration", - "code": "void main() {\n switch (foo) { }\n}", + "code": "void main() {\n switch (value) { }\n}", "scopes": [ { "targets": [ { - "content": "1:18-1:19" + "content": "1:20-1:21" } ], - "domain": "1:18-1:19" + "domain": "1:20-1:21" } ] }, @@ -578,7 +578,7 @@ "name": "scopes/dart/branch/branch.switchCase", "languageId": "dart", "facet": "branch.switchCase", - "code": "void main() {\n switch (foo) {\n case 0:\n break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0:\n break;\n }\n}", "scopes": [ { "targets": [ @@ -595,7 +595,7 @@ "name": "scopes/dart/branch/branch.switchCase2", "languageId": "dart", "facet": "branch.switchCase", - "code": "void main() {\n switch (foo) {\n default: {}\n }\n}", + "code": "void main() {\n switch (value) {\n default: {}\n }\n}", "scopes": [ { "targets": [ @@ -799,15 +799,15 @@ "name": "scopes/go/branch/branch.switchCase.iteration", "languageId": "go", "facet": "branch.switchCase.iteration", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13" + "content": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -831,7 +831,7 @@ "name": "scopes/go/branch/branch.switchCase", "languageId": "go", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break\n}", + "code": "switch (value) {\n case 0:\n break\n}", "scopes": [ { "targets": [ @@ -848,7 +848,7 @@ "name": "scopes/go/branch/branch.switchCase2", "languageId": "go", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -959,15 +959,15 @@ "name": "scopes/java/branch/branch.switchCase.iteration", "languageId": "java", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -975,7 +975,7 @@ "name": "scopes/java/branch/branch.switchCase", "languageId": "java", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -992,7 +992,7 @@ "name": "scopes/java/branch/branch.switchCase2", "languageId": "java", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -1196,15 +1196,15 @@ "name": "scopes/javascript.core/branch/branch.switchCase.iteration", "languageId": "javascript.core", "facet": "branch.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -1212,7 +1212,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n case 0:\n break;\n}", + "code": "switch (value) {\n case 0:\n break;\n}", "scopes": [ { "targets": [ @@ -1229,7 +1229,7 @@ "name": "scopes/javascript.core/branch/branch.switchCase2", "languageId": "javascript.core", "facet": "branch.switchCase", - "code": "switch (foo) {\n default: {}\n}", + "code": "switch (value) {\n default: {}\n}", "scopes": [ { "targets": [ @@ -1764,15 +1764,15 @@ "name": "scopes/php/branch/branch.switchCase.iteration", "languageId": "php", "facet": "branch.switchCase.iteration", - "code": " \"0\",\n}", + "code": "match value {\n 0 => \"0\",\n}", "scopes": [ { "targets": [ @@ -2872,7 +2872,7 @@ "name": "scopes/rust/branch/branch.switchCase2", "languageId": "rust", "facet": "branch.switchCase", - "code": "match foo {\n _ => \"_\",\n}", + "code": "match value {\n _ => \"_\",\n}", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/scopes/fixtures/condition.json b/packages/app-web-docs/src/docs/user/scopes/fixtures/condition.json index 3930d6ddba..5613d51132 100644 --- a/packages/app-web-docs/src/docs/user/scopes/fixtures/condition.json +++ b/packages/app-web-docs/src/docs/user/scopes/fixtures/condition.json @@ -63,15 +63,15 @@ "name": "scopes/c/condition/condition.switchCase.iteration", "languageId": "c", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -79,7 +79,7 @@ "name": "scopes/c/condition/condition.switchCase", "languageId": "c", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -207,15 +207,15 @@ "name": "scopes/csharp/condition/condition.switchCase.iteration", "languageId": "csharp", "facet": "condition.switchCase.iteration", - "code": "switch(foo) { }", + "code": "switch(value) { }", "scopes": [ { "targets": [ { - "content": "0:13-0:14" + "content": "0:15-0:16" } ], - "domain": "0:13-0:14" + "domain": "0:15-0:16" } ] }, @@ -223,7 +223,7 @@ "name": "scopes/csharp/condition/condition.switchCase", "languageId": "csharp", "facet": "condition.switchCase", - "code": "switch(foo) {\n case 0: break;\n}", + "code": "switch(value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -334,15 +334,15 @@ "name": "scopes/dart/condition/condition.switchCase.iteration", "languageId": "dart", "facet": "condition.switchCase.iteration", - "code": "void main() {\n switch (foo) { }\n}", + "code": "void main() {\n switch (value) { }\n}", "scopes": [ { "targets": [ { - "content": "1:18-1:19" + "content": "1:20-1:21" } ], - "domain": "1:18-1:19" + "domain": "1:20-1:21" } ] }, @@ -350,7 +350,7 @@ "name": "scopes/dart/condition/condition.switchCase", "languageId": "dart", "facet": "condition.switchCase", - "code": "void main() {\n switch (foo) {\n case 0: break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0: break;\n }\n}", "scopes": [ { "targets": [ @@ -444,15 +444,15 @@ "name": "scopes/go/condition/condition.switchCase.iteration", "languageId": "go", "facet": "condition.switchCase.iteration", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13" + "content": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -476,7 +476,7 @@ "name": "scopes/go/condition/condition.switchCase", "languageId": "go", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break\n}", + "code": "switch (value) {\n case 0: break\n}", "scopes": [ { "targets": [ @@ -493,7 +493,7 @@ "name": "scopes/go/condition/condition.switchCase2", "languageId": "go", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1: break\n}", + "code": "switch (value) {\n case 0, 1: break\n}", "scopes": [ { "targets": [ @@ -570,15 +570,15 @@ "name": "scopes/java/condition/condition.switchCase.iteration", "languageId": "java", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -586,7 +586,7 @@ "name": "scopes/java/condition/condition.switchCase", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -603,7 +603,7 @@ "name": "scopes/java/condition/condition.switchCase2", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1: break;\n}", + "code": "switch (value) {\n case 0, 1: break;\n}", "scopes": [ { "targets": [ @@ -620,7 +620,7 @@ "name": "scopes/java/condition/condition.switchCase3", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0 -> 0;\n}", + "code": "switch (value) {\n case 0 -> 0;\n}", "scopes": [ { "targets": [ @@ -637,7 +637,7 @@ "name": "scopes/java/condition/condition.switchCase4", "languageId": "java", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0, 1 -> 0;\n}", + "code": "switch (value) {\n case 0, 1 -> 0;\n}", "scopes": [ { "targets": [ @@ -748,15 +748,15 @@ "name": "scopes/javascript.core/condition/condition.switchCase.iteration", "languageId": "javascript.core", "facet": "condition.switchCase.iteration", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15" + "content": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -764,7 +764,7 @@ "name": "scopes/javascript.core/condition/condition.switchCase", "languageId": "javascript.core", "facet": "condition.switchCase", - "code": "switch (foo) {\n case 0: break;\n}", + "code": "switch (value) {\n case 0: break;\n}", "scopes": [ { "targets": [ @@ -1079,15 +1079,15 @@ "name": "scopes/php/condition/condition.switchCase.iteration", "languageId": "php", "facet": "condition.switchCase.iteration", - "code": " 0\n}", + "code": "match value {\n 0 => 0\n}", "scopes": [ { "targets": [ @@ -1551,7 +1551,7 @@ "name": "scopes/rust/condition.switchCase2", "languageId": "rust", "facet": "condition.switchCase", - "code": "match foo {\n _ => 0\n}", + "code": "match value {\n _ => 0\n}", "scopes": [ { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json b/packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json index 714483c745..f3fcbdbba1 100644 --- a/packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json +++ b/packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json @@ -208,16 +208,16 @@ "name": "scopes/c/interior/interior.switch", "languageId": "c", "facet": "interior.switch", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15", - "removal": "0:14-0:15" + "content": "0:16-0:17", + "removal": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -225,16 +225,16 @@ "name": "scopes/c/interior/interior.switchCase", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -260,16 +260,16 @@ "name": "scopes/c/interior/interior.switchCase2", "languageId": "c", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -732,16 +732,16 @@ "name": "scopes/csharp/interior/interior.switch", "languageId": "csharp", "facet": "interior.switch", - "code": "switch (foo) { }", + "code": "switch (value) { }", "scopes": [ { "targets": [ { - "content": "0:14-0:15", - "removal": "0:14-0:15" + "content": "0:16-0:17", + "removal": "0:16-0:17" } ], - "domain": "0:14-0:15" + "domain": "0:16-0:17" } ] }, @@ -749,16 +749,16 @@ "name": "scopes/csharp/interior/interior.switchCase", "languageId": "csharp", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -784,16 +784,16 @@ "name": "scopes/csharp/interior/interior.switchCase2", "languageId": "csharp", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -1148,7 +1148,7 @@ "name": "scopes/dart/interior/interior.switchCase", "languageId": "dart", "facet": "interior.switchCase", - "code": "void main() {\n switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n }\n}", + "code": "void main() {\n switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n }\n}", "scopes": [ { "targets": [ @@ -1163,10 +1163,10 @@ "targets": [ { "content": "2:8-7:18", - "removal": "1:18-8:4" + "removal": "1:20-8:4" } ], - "domain": "1:18-8:4" + "domain": "1:20-8:4" }, { "targets": [ @@ -1192,7 +1192,7 @@ "name": "scopes/dart/interior/interior.switchCase2", "languageId": "dart", "facet": "interior.switchCase", - "code": "void main() {\n switch (foo) {\n case 0: { }\n default: { }\n }\n}", + "code": "void main() {\n switch (value) {\n case 0: { }\n default: { }\n }\n}", "scopes": [ { "targets": [ @@ -1207,10 +1207,10 @@ "targets": [ { "content": "2:8-3:20", - "removal": "1:18-4:4" + "removal": "1:20-4:4" } ], - "domain": "1:18-4:4" + "domain": "1:20-4:4" }, { "targets": [ @@ -1460,16 +1460,16 @@ "name": "scopes/go/interior/interior.switch", "languageId": "go", "facet": "interior.switch", - "code": "switch foo { }", + "code": "switch value { }", "scopes": [ { "targets": [ { - "content": "0:12-0:13", - "removal": "0:12-0:13" + "content": "0:14-0:15", + "removal": "0:14-0:15" } ], - "domain": "0:12-0:13" + "domain": "0:14-0:15" } ] }, @@ -1494,16 +1494,16 @@ "name": "scopes/go/interior/interior.switchCase", "languageId": "go", "facet": "interior.switchCase", - "code": "switch foo {\n case 0:\n bar;\n break\n default:\n bar;\n break\n}", + "code": "switch value {\n case 0:\n bar;\n break\n default:\n bar;\n break\n}", "scopes": [ { "targets": [ { "content": "1:4-6:13", - "removal": "0:12-7:0" + "removal": "0:14-7:0" } ], - "domain": "0:12-7:0" + "domain": "0:14-7:0" }, { "targets": [ @@ -1529,16 +1529,16 @@ "name": "scopes/go/interior/interior.switchCase2", "languageId": "go", "facet": "interior.switchCase", - "code": "switch foo {\n case 0: { }\n default: { }\n}", + "code": "switch value {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:12-3:0" + "removal": "0:14-3:0" } ], - "domain": "0:12-3:0" + "domain": "0:14-3:0" }, { "targets": [ @@ -1847,16 +1847,16 @@ "name": "scopes/java/interior/interior.switchCase", "languageId": "java", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -1882,16 +1882,16 @@ "name": "scopes/java/interior/interior.switchCase2", "languageId": "java", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -2218,16 +2218,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", + "code": "switch (value) {\n case 0:\n bar;\n break;\n default:\n bar;\n break;\n}", "scopes": [ { "targets": [ { "content": "1:4-6:14", - "removal": "0:14-7:0" + "removal": "0:16-7:0" } ], - "domain": "0:14-7:0" + "domain": "0:16-7:0" }, { "targets": [ @@ -2253,16 +2253,16 @@ "name": "scopes/javascript.core/interior/interior.switchCase2", "languageId": "javascript.core", "facet": "interior.switchCase", - "code": "switch (foo) {\n case 0: { }\n default: { }\n}", + "code": "switch (value) {\n case 0: { }\n default: { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:16", - "removal": "0:14-3:0" + "removal": "0:16-3:0" } ], - "domain": "0:14-3:0" + "domain": "0:16-3:0" }, { "targets": [ @@ -3190,16 +3190,16 @@ "name": "scopes/php/interior/interior.switch", "languageId": "php", "facet": "interior.switch", - "code": " bar\n _ => bar\n}", + "code": "match value {\n 0 => bar\n _ => bar\n}", "scopes": [ { "targets": [ { "content": "1:4-2:12", - "removal": "0:11-3:0" + "removal": "0:13-3:0" } ], - "domain": "0:11-3:0" + "domain": "0:13-3:0" }, { "targets": [ @@ -4432,16 +4432,16 @@ "name": "scopes/rust/interior/interior.switchCase2", "languageId": "rust", "facet": "interior.switchCase", - "code": "match foo {\n 0 => { }\n _ => { }\n}", + "code": "match value {\n 0 => { }\n _ => { }\n}", "scopes": [ { "targets": [ { "content": "1:4-2:12", - "removal": "0:11-3:0" + "removal": "0:13-3:0" } ], - "domain": "0:11-3:0" + "domain": "0:13-3:0" }, { "targets": [ diff --git a/packages/app-web-docs/src/docs/user/scopes/fixtures/name.json b/packages/app-web-docs/src/docs/user/scopes/fixtures/name.json index db1196d606..40ba5524ed 100644 --- a/packages/app-web-docs/src/docs/user/scopes/fixtures/name.json +++ b/packages/app-web-docs/src/docs/user/scopes/fixtures/name.json @@ -121,7 +121,7 @@ "name": "scopes/c/name/name.assignment.compound", "languageId": "c", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -155,7 +155,7 @@ "name": "scopes/c/name/name.assignment2", "languageId": "c", "facet": "name.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -1703,7 +1703,7 @@ "name": "scopes/csharp/name/name.assignment.compound", "languageId": "csharp", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -1737,7 +1737,7 @@ "name": "scopes/csharp/name/name.assignment2", "languageId": "csharp", "facet": "name.assignment", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -2805,7 +2805,7 @@ "name": "scopes/dart/name/name.assignment.compound", "languageId": "dart", "facet": "name.assignment.compound", - "code": "void main() {\n foo += 0;\n}", + "code": "void main() {\n foo += 1;\n}", "scopes": [ { "targets": [ @@ -3510,7 +3510,7 @@ "name": "scopes/go/name/name.assignment.compound", "languageId": "go", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -4139,7 +4139,7 @@ "name": "scopes/java/name/name.assignment.compound", "languageId": "java", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -5159,7 +5159,7 @@ "name": "scopes/javascript.core/name/name.assignment.compound", "languageId": "javascript.core", "facet": "name.assignment.compound", - "code": "foo += 0;", + "code": "foo += 1;", "scopes": [ { "targets": [ @@ -6603,7 +6603,7 @@ "name": "scopes/kotlin/name/name.assignment.compound", "languageId": "kotlin", "facet": "name.assignment.compound", - "code": "foo += 0", + "code": "foo += 1", "scopes": [ { "targets": [ @@ -8013,7 +8013,7 @@ "name": "scopes/php/name/name.assignment.compound", "languageId": "php", "facet": "name.assignment.compound", - "code": "-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/c/branch/branch.switchCase.scope b/resources/fixtures/scopes/c/branch/branch.switchCase.scope index 3588e59aa8..2a144345cb 100644 --- a/resources/fixtures/scopes/c/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/c/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } diff --git a/resources/fixtures/scopes/c/branch/branch.switchCase2.scope b/resources/fixtures/scopes/c/branch/branch.switchCase2.scope index 7a0666b69a..c94fbb0962 100644 --- a/resources/fixtures/scopes/c/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/c/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { default: {} } --- diff --git a/resources/fixtures/scopes/c/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/c/condition/condition.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/c/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/c/condition/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/c/condition/condition.switchCase.scope b/resources/fixtures/scopes/c/condition/condition.switchCase.scope index de92f6d536..2deadb4a4b 100644 --- a/resources/fixtures/scopes/c/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/c/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } --- diff --git a/resources/fixtures/scopes/c/interior/interior.switch.scope b/resources/fixtures/scopes/c/interior/interior.switch.scope index 92f10c6415..516c60576b 100644 --- a/resources/fixtures/scopes/c/interior/interior.switch.scope +++ b/resources/fixtures/scopes/c/interior/interior.switch.scope @@ -1,10 +1,10 @@ -switch (foo) { } +switch (value) { } --- [Content] = [Removal] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/c/interior/interior.switchCase.scope b/resources/fixtures/scopes/c/interior/interior.switchCase.scope index a4d31bfb69..b0c6880a56 100644 --- a/resources/fixtures/scopes/c/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/c/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: bar; break; @@ -19,9 +19,9 @@ switch (foo) { --------------< [#1 Removal] = -[#1 Domain] = 0:14-7:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-7:0 + > +0| switch (value) { 1| case 0: 2| bar; 3| break; diff --git a/resources/fixtures/scopes/c/interior/interior.switchCase2.scope b/resources/fixtures/scopes/c/interior/interior.switchCase2.scope index 7380c0cc2a..ae3ebba38e 100644 --- a/resources/fixtures/scopes/c/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/c/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: { } default: { } } @@ -11,9 +11,9 @@ switch (foo) { ----------------< [#1 Removal] = -[#1 Domain] = 0:14-3:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-3:0 + > +0| switch (value) { 1| case 0: { } 2| default: { } 3| } diff --git a/resources/fixtures/scopes/c/name/name.assignment.compound.scope b/resources/fixtures/scopes/c/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/c/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/c/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/c/name/name.assignment2.scope b/resources/fixtures/scopes/c/name/name.assignment2.scope index a3321e2022..5529f2ceb7 100644 --- a/resources/fixtures/scopes/c/name/name.assignment2.scope +++ b/resources/fixtures/scopes/c/name/name.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:0-0:3 >---< -0| foo += 0; +0| foo += 1; [Removal] = 0:0-0:7 >-------< -0| foo += 0; +0| foo += 1; [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/c/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/c/statement/statement.assignment.compound.scope index 39dd087400..22279b229f 100644 --- a/resources/fixtures/scopes/c/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/c/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0; +foo += 1; --- [Content] = [Removal] = [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/c/statement/statement.switch.scope b/resources/fixtures/scopes/c/statement/statement.switch.scope index bcd2bb4acb..a44440c796 100644 --- a/resources/fixtures/scopes/c/statement/statement.switch.scope +++ b/resources/fixtures/scopes/c/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch (foo) {} +switch (value) {} --- [Content] = [Removal] = -[Domain] = 0:0-0:15 - >---------------< -0| switch (foo) {} +[Domain] = 0:0-0:17 + >-----------------< +0| switch (value) {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/c/value/value.assignment.compound.scope b/resources/fixtures/scopes/c/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/c/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/c/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/c/value/value.assignment2.scope b/resources/fixtures/scopes/c/value/value.assignment2.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/c/value/value.assignment2.scope +++ b/resources/fixtures/scopes/c/value/value.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/c/value/value.switch.scope b/resources/fixtures/scopes/c/value/value.switch.scope index 16325fcb1f..67688ae8d0 100644 --- a/resources/fixtures/scopes/c/value/value.switch.scope +++ b/resources/fixtures/scopes/c/value/value.switch.scope @@ -1,13 +1,13 @@ -switch (foo) {} +switch (value) {} --- [Content] = -[Removal] = 0:8-0:11 - >---< -0| switch (foo) {} +[Removal] = 0:8-0:13 + >-----< +0| switch (value) {} -[Domain] = 0:0-0:15 - >---------------< -0| switch (foo) {} +[Domain] = 0:0-0:17 + >-----------------< +0| switch (value) {} [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/cpp/value/value.assignment.compound.scope b/resources/fixtures/scopes/cpp/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/cpp/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/cpp/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/csharp/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/csharp/branch/branch.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/csharp/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/csharp/branch/branch.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/csharp/branch/branch.switchCase.scope b/resources/fixtures/scopes/csharp/branch/branch.switchCase.scope index 3588e59aa8..2a144345cb 100644 --- a/resources/fixtures/scopes/csharp/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/csharp/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } diff --git a/resources/fixtures/scopes/csharp/branch/branch.switchCase2.scope b/resources/fixtures/scopes/csharp/branch/branch.switchCase2.scope index 7a0666b69a..c94fbb0962 100644 --- a/resources/fixtures/scopes/csharp/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/csharp/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { default: {} } --- diff --git a/resources/fixtures/scopes/csharp/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/csharp/condition/condition.switchCase.iteration.scope index bc1baaf399..a2c6cefe68 100644 --- a/resources/fixtures/scopes/csharp/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/csharp/condition/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch(foo) { } +switch(value) { } --- [Content] = -[Domain] = 0:13-0:14 - >-< -0| switch(foo) { } +[Domain] = 0:15-0:16 + >-< +0| switch(value) { } diff --git a/resources/fixtures/scopes/csharp/condition/condition.switchCase.scope b/resources/fixtures/scopes/csharp/condition/condition.switchCase.scope index b109c4351e..7c1f26c9bf 100644 --- a/resources/fixtures/scopes/csharp/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/csharp/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch(foo) { +switch(value) { case 0: break; } --- diff --git a/resources/fixtures/scopes/csharp/interior/interior.switch.scope b/resources/fixtures/scopes/csharp/interior/interior.switch.scope index 92f10c6415..516c60576b 100644 --- a/resources/fixtures/scopes/csharp/interior/interior.switch.scope +++ b/resources/fixtures/scopes/csharp/interior/interior.switch.scope @@ -1,10 +1,10 @@ -switch (foo) { } +switch (value) { } --- [Content] = [Removal] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/csharp/interior/interior.switchCase.scope b/resources/fixtures/scopes/csharp/interior/interior.switchCase.scope index a4d31bfb69..b0c6880a56 100644 --- a/resources/fixtures/scopes/csharp/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/csharp/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: bar; break; @@ -19,9 +19,9 @@ switch (foo) { --------------< [#1 Removal] = -[#1 Domain] = 0:14-7:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-7:0 + > +0| switch (value) { 1| case 0: 2| bar; 3| break; diff --git a/resources/fixtures/scopes/csharp/interior/interior.switchCase2.scope b/resources/fixtures/scopes/csharp/interior/interior.switchCase2.scope index 7380c0cc2a..ae3ebba38e 100644 --- a/resources/fixtures/scopes/csharp/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/csharp/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: { } default: { } } @@ -11,9 +11,9 @@ switch (foo) { ----------------< [#1 Removal] = -[#1 Domain] = 0:14-3:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-3:0 + > +0| switch (value) { 1| case 0: { } 2| default: { } 3| } diff --git a/resources/fixtures/scopes/csharp/name/name.assignment.compound.scope b/resources/fixtures/scopes/csharp/name/name.assignment.compound.scope index a3321e2022..5529f2ceb7 100644 --- a/resources/fixtures/scopes/csharp/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/csharp/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:0-0:3 >---< -0| foo += 0; +0| foo += 1; [Removal] = 0:0-0:7 >-------< -0| foo += 0; +0| foo += 1; [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/csharp/name/name.assignment2.scope b/resources/fixtures/scopes/csharp/name/name.assignment2.scope index a3321e2022..5529f2ceb7 100644 --- a/resources/fixtures/scopes/csharp/name/name.assignment2.scope +++ b/resources/fixtures/scopes/csharp/name/name.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:0-0:3 >---< -0| foo += 0; +0| foo += 1; [Removal] = 0:0-0:7 >-------< -0| foo += 0; +0| foo += 1; [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/csharp/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/csharp/statement/statement.assignment.compound.scope index 39dd087400..22279b229f 100644 --- a/resources/fixtures/scopes/csharp/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/csharp/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0; +foo += 1; --- [Content] = [Removal] = [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/csharp/statement/statement.switch.scope b/resources/fixtures/scopes/csharp/statement/statement.switch.scope index bcd2bb4acb..a44440c796 100644 --- a/resources/fixtures/scopes/csharp/statement/statement.switch.scope +++ b/resources/fixtures/scopes/csharp/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch (foo) {} +switch (value) {} --- [Content] = [Removal] = -[Domain] = 0:0-0:15 - >---------------< -0| switch (foo) {} +[Domain] = 0:0-0:17 + >-----------------< +0| switch (value) {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/csharp/value/value.assignment.compound.scope b/resources/fixtures/scopes/csharp/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/csharp/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/csharp/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/csharp/value/value.assignment2.scope b/resources/fixtures/scopes/csharp/value/value.assignment2.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/csharp/value/value.assignment2.scope +++ b/resources/fixtures/scopes/csharp/value/value.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/dart/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/dart/branch/branch.switchCase.iteration.scope index 0dc65caa10..13cfcd4464 100644 --- a/resources/fixtures/scopes/dart/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/dart/branch/branch.switchCase.iteration.scope @@ -1,9 +1,9 @@ void main() { - switch (foo) { } + switch (value) { } } --- [Content] = -[Domain] = 1:18-1:19 - >-< -1| switch (foo) { } +[Domain] = 1:20-1:21 + >-< +1| switch (value) { } diff --git a/resources/fixtures/scopes/dart/branch/branch.switchCase.scope b/resources/fixtures/scopes/dart/branch/branch.switchCase.scope index 413f68bc0e..f9df82b2ce 100644 --- a/resources/fixtures/scopes/dart/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/dart/branch/branch.switchCase.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) { + switch (value) { case 0: break; } diff --git a/resources/fixtures/scopes/dart/branch/branch.switchCase2.scope b/resources/fixtures/scopes/dart/branch/branch.switchCase2.scope index 8250be9d93..cc4ff0c1e9 100644 --- a/resources/fixtures/scopes/dart/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/dart/branch/branch.switchCase2.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) { + switch (value) { default: {} } } diff --git a/resources/fixtures/scopes/dart/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/dart/condition/condition.switchCase.iteration.scope index 0dc65caa10..13cfcd4464 100644 --- a/resources/fixtures/scopes/dart/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/dart/condition/condition.switchCase.iteration.scope @@ -1,9 +1,9 @@ void main() { - switch (foo) { } + switch (value) { } } --- [Content] = -[Domain] = 1:18-1:19 - >-< -1| switch (foo) { } +[Domain] = 1:20-1:21 + >-< +1| switch (value) { } diff --git a/resources/fixtures/scopes/dart/condition/condition.switchCase.scope b/resources/fixtures/scopes/dart/condition/condition.switchCase.scope index f661838de8..25b3c0d2e4 100644 --- a/resources/fixtures/scopes/dart/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/dart/condition/condition.switchCase.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) { + switch (value) { case 0: break; } } diff --git a/resources/fixtures/scopes/dart/interior/interior.switchCase.scope b/resources/fixtures/scopes/dart/interior/interior.switchCase.scope index cfe04f5d2d..9df7fe4a3d 100644 --- a/resources/fixtures/scopes/dart/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/dart/interior/interior.switchCase.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) { + switch (value) { case 0: bar; break; @@ -11,8 +11,8 @@ void main() { --- [#1 Content] = 1:4-8:5 - >-------------- -1| switch (foo) { + >---------------- +1| switch (value) { 2| case 0: 3| bar; 4| break; @@ -26,7 +26,7 @@ void main() { [#1 Domain] = 0:13-9:0 > 0| void main() { -1| switch (foo) { +1| switch (value) { 2| case 0: 3| bar; 4| break; @@ -51,9 +51,9 @@ void main() { ------------------< [#2 Removal] = -[#2 Domain] = 1:18-8:4 - > -1| switch (foo) { +[#2 Domain] = 1:20-8:4 + > +1| switch (value) { 2| case 0: 3| bar; 4| break; diff --git a/resources/fixtures/scopes/dart/interior/interior.switchCase2.scope b/resources/fixtures/scopes/dart/interior/interior.switchCase2.scope index 70aa693e11..b73e51eafb 100644 --- a/resources/fixtures/scopes/dart/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/dart/interior/interior.switchCase2.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) { + switch (value) { case 0: { } default: { } } @@ -7,8 +7,8 @@ void main() { --- [#1 Content] = 1:4-4:5 - >-------------- -1| switch (foo) { + >---------------- +1| switch (value) { 2| case 0: { } 3| default: { } 4| } @@ -18,7 +18,7 @@ void main() { [#1 Domain] = 0:13-5:0 > 0| void main() { -1| switch (foo) { +1| switch (value) { 2| case 0: { } 3| default: { } 4| } @@ -35,9 +35,9 @@ void main() { --------------------< [#2 Removal] = -[#2 Domain] = 1:18-4:4 - > -1| switch (foo) { +[#2 Domain] = 1:20-4:4 + > +1| switch (value) { 2| case 0: { } 3| default: { } 4| } diff --git a/resources/fixtures/scopes/dart/name/name.assignment.compound.scope b/resources/fixtures/scopes/dart/name/name.assignment.compound.scope index 42ac3a07fe..fedf1db8eb 100644 --- a/resources/fixtures/scopes/dart/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/dart/name/name.assignment.compound.scope @@ -1,5 +1,5 @@ void main() { - foo += 0; + foo += 1; } --- @@ -15,7 +15,7 @@ void main() { [#1 Domain] = 0:0-2:1 >------------- 0| void main() { -1| foo += 0; +1| foo += 1; 2| } -< @@ -24,18 +24,18 @@ void main() { [#2 Content] = 1:4-1:7 >---< -1| foo += 0; +1| foo += 1; [#2 Removal] = 1:4-1:11 >-------< -1| foo += 0; +1| foo += 1; [#2 Trailing delimiter] = 1:7-1:11 >----< -1| foo += 0; +1| foo += 1; [#2 Domain] = 1:4-1:13 >---------< -1| foo += 0; +1| foo += 1; [#2 Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/dart/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/dart/statement/statement.assignment.compound.scope index 5116ead019..b7f45295e5 100644 --- a/resources/fixtures/scopes/dart/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/dart/statement/statement.assignment.compound.scope @@ -1,5 +1,5 @@ void main() { - foo += 0; + foo += 1; } --- @@ -8,7 +8,7 @@ void main() { [#1 Domain] = 0:0-2:1 >------------- 0| void main() { -1| foo += 0; +1| foo += 1; 2| } -< @@ -18,16 +18,16 @@ void main() { [#2 Content] = [#2 Domain] = 1:4-1:13 >---------< -1| foo += 0; +1| foo += 1; [#2 Removal] = 1:0-2:0 >------------- -1| foo += 0; +1| foo += 1; 2| } < [#2 Leading delimiter] = 1:0-1:4 >----< -1| foo += 0; +1| foo += 1; [#2 Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/dart/statement/statement.switch.scope b/resources/fixtures/scopes/dart/statement/statement.switch.scope index 64f49d00cb..ac751c24fd 100644 --- a/resources/fixtures/scopes/dart/statement/statement.switch.scope +++ b/resources/fixtures/scopes/dart/statement/statement.switch.scope @@ -1,5 +1,5 @@ void main() { - switch (foo) {} + switch (value) {} } --- @@ -8,7 +8,7 @@ void main() { [#1 Domain] = 0:0-2:1 >------------- 0| void main() { -1| switch (foo) {} +1| switch (value) {} 2| } -< @@ -16,18 +16,18 @@ void main() { [#2 Content] = -[#2 Domain] = 1:4-1:19 - >---------------< -1| switch (foo) {} +[#2 Domain] = 1:4-1:21 + >-----------------< +1| switch (value) {} [#2 Removal] = 1:0-2:0 - >------------------- -1| switch (foo) {} + >--------------------- +1| switch (value) {} 2| } < [#2 Leading delimiter] = 1:0-1:4 >----< -1| switch (foo) {} +1| switch (value) {} [#2 Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/dart/value/value.assignment.compound.scope b/resources/fixtures/scopes/dart/value/value.assignment.compound.scope index c48e167ae9..3c0df65ebc 100644 --- a/resources/fixtures/scopes/dart/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/dart/value/value.assignment.compound.scope @@ -1,22 +1,22 @@ void main() { - foo += 0; + foo += 1; } --- [Content] = 1:11-1:12 >-< -1| foo += 0; +1| foo += 1; [Removal] = 1:7-1:12 >-----< -1| foo += 0; +1| foo += 1; [Leading delimiter] = 1:7-1:11 >----< -1| foo += 0; +1| foo += 1; [Domain] = 1:4-1:13 >---------< -1| foo += 0; +1| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/dart/value/value.switch.scope b/resources/fixtures/scopes/dart/value/value.switch.scope index 2b25bd43a0..c52b23442f 100644 --- a/resources/fixtures/scopes/dart/value/value.switch.scope +++ b/resources/fixtures/scopes/dart/value/value.switch.scope @@ -1,15 +1,15 @@ void main() { - switch (foo) {} + switch (value) {} } --- [Content] = -[Removal] = 1:12-1:15 - >---< -1| switch (foo) {} +[Removal] = 1:12-1:17 + >-----< +1| switch (value) {} -[Domain] = 1:4-1:19 - >---------------< -1| switch (foo) {} +[Domain] = 1:4-1:21 + >-----------------< +1| switch (value) {} [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/go/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/go/branch/branch.switchCase.iteration.scope index 82cc8a4e12..d3a9cac808 100644 --- a/resources/fixtures/scopes/go/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/go/branch/branch.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch foo { } +switch value { } --- [Content] = -[Domain] = 0:12-0:13 - >-< -0| switch foo { } +[Domain] = 0:14-0:15 + >-< +0| switch value { } diff --git a/resources/fixtures/scopes/go/branch/branch.switchCase.scope b/resources/fixtures/scopes/go/branch/branch.switchCase.scope index 473af1374e..59c5b3d0c8 100644 --- a/resources/fixtures/scopes/go/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/go/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break } diff --git a/resources/fixtures/scopes/go/branch/branch.switchCase2.scope b/resources/fixtures/scopes/go/branch/branch.switchCase2.scope index 7a0666b69a..c94fbb0962 100644 --- a/resources/fixtures/scopes/go/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/go/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { default: {} } --- diff --git a/resources/fixtures/scopes/go/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/go/condition/condition.switchCase.iteration.scope index 82cc8a4e12..d3a9cac808 100644 --- a/resources/fixtures/scopes/go/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/go/condition/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch foo { } +switch value { } --- [Content] = -[Domain] = 0:12-0:13 - >-< -0| switch foo { } +[Domain] = 0:14-0:15 + >-< +0| switch value { } diff --git a/resources/fixtures/scopes/go/condition/condition.switchCase.scope b/resources/fixtures/scopes/go/condition/condition.switchCase.scope index f8ebcad8cd..5334db4094 100644 --- a/resources/fixtures/scopes/go/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/go/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break } --- diff --git a/resources/fixtures/scopes/go/condition/condition.switchCase2.scope b/resources/fixtures/scopes/go/condition/condition.switchCase2.scope index 3ee3a8692c..33582f4cd3 100644 --- a/resources/fixtures/scopes/go/condition/condition.switchCase2.scope +++ b/resources/fixtures/scopes/go/condition/condition.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0, 1: break } --- diff --git a/resources/fixtures/scopes/go/interior/interior.switch.scope b/resources/fixtures/scopes/go/interior/interior.switch.scope index 5e37bb02c8..5cabb1a765 100644 --- a/resources/fixtures/scopes/go/interior/interior.switch.scope +++ b/resources/fixtures/scopes/go/interior/interior.switch.scope @@ -1,10 +1,10 @@ -switch foo { } +switch value { } --- [Content] = [Removal] = -[Domain] = 0:12-0:13 - >-< -0| switch foo { } +[Domain] = 0:14-0:15 + >-< +0| switch value { } [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/go/interior/interior.switchCase.scope b/resources/fixtures/scopes/go/interior/interior.switchCase.scope index 446c31b18e..9ad70e5df7 100644 --- a/resources/fixtures/scopes/go/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/go/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch foo { +switch value { case 0: bar; break @@ -19,9 +19,9 @@ switch foo { -------------< [#1 Removal] = -[#1 Domain] = 0:12-7:0 - > -0| switch foo { +[#1 Domain] = 0:14-7:0 + > +0| switch value { 1| case 0: 2| bar; 3| break diff --git a/resources/fixtures/scopes/go/interior/interior.switchCase2.scope b/resources/fixtures/scopes/go/interior/interior.switchCase2.scope index 92b45b80bf..8cb8b9fdb9 100644 --- a/resources/fixtures/scopes/go/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/go/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch foo { +switch value { case 0: { } default: { } } @@ -11,9 +11,9 @@ switch foo { ----------------< [#1 Removal] = -[#1 Domain] = 0:12-3:0 - > -0| switch foo { +[#1 Domain] = 0:14-3:0 + > +0| switch value { 1| case 0: { } 2| default: { } 3| } diff --git a/resources/fixtures/scopes/go/name/name.assignment.compound.scope b/resources/fixtures/scopes/go/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/go/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/go/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/go/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/go/statement/statement.assignment.compound.scope index b8bce690bc..6ac89fbea1 100644 --- a/resources/fixtures/scopes/go/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/go/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0 +foo += 1 --- [Content] = [Removal] = [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/go/statement/statement.switch.scope b/resources/fixtures/scopes/go/statement/statement.switch.scope index 6a32cbcf3f..88ba119033 100644 --- a/resources/fixtures/scopes/go/statement/statement.switch.scope +++ b/resources/fixtures/scopes/go/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch foo {} +switch value {} --- [Content] = [Removal] = -[Domain] = 0:0-0:13 - >-------------< -0| switch foo {} +[Domain] = 0:0-0:15 + >---------------< +0| switch value {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/go/value/value.assignment.compound.scope b/resources/fixtures/scopes/go/value/value.assignment.compound.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/go/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/go/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/go/value/value.switch.scope b/resources/fixtures/scopes/go/value/value.switch.scope index b27bac7781..b1f072b5c8 100644 --- a/resources/fixtures/scopes/go/value/value.switch.scope +++ b/resources/fixtures/scopes/go/value/value.switch.scope @@ -1,24 +1,24 @@ -switch foo {} +switch value {} --- -[Content] = 0:7-0:10 - >---< -0| switch foo {} +[Content] = 0:7-0:12 + >-----< +0| switch value {} -[Removal] = 0:7-0:11 - >----< -0| switch foo {} +[Removal] = 0:7-0:13 + >------< +0| switch value {} [Leading delimiter] = 0:6-0:7 >-< -0| switch foo {} +0| switch value {} -[Trailing delimiter] = 0:10-0:11 - >-< -0| switch foo {} +[Trailing delimiter] = 0:12-0:13 + >-< +0| switch value {} -[Domain] = 0:0-0:13 - >-------------< -0| switch foo {} +[Domain] = 0:0-0:15 + >---------------< +0| switch value {} [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/java/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/java/branch/branch.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/java/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/java/branch/branch.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/java/branch/branch.switchCase.scope b/resources/fixtures/scopes/java/branch/branch.switchCase.scope index 3588e59aa8..2a144345cb 100644 --- a/resources/fixtures/scopes/java/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/java/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } diff --git a/resources/fixtures/scopes/java/branch/branch.switchCase2.scope b/resources/fixtures/scopes/java/branch/branch.switchCase2.scope index 7a0666b69a..c94fbb0962 100644 --- a/resources/fixtures/scopes/java/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/java/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { default: {} } --- diff --git a/resources/fixtures/scopes/java/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/java/condition/condition.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/java/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/java/condition/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/java/condition/condition.switchCase.scope b/resources/fixtures/scopes/java/condition/condition.switchCase.scope index de92f6d536..2deadb4a4b 100644 --- a/resources/fixtures/scopes/java/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/java/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } --- diff --git a/resources/fixtures/scopes/java/condition/condition.switchCase2.scope b/resources/fixtures/scopes/java/condition/condition.switchCase2.scope index f0351492ab..a41db6313e 100644 --- a/resources/fixtures/scopes/java/condition/condition.switchCase2.scope +++ b/resources/fixtures/scopes/java/condition/condition.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0, 1: break; } --- diff --git a/resources/fixtures/scopes/java/condition/condition.switchCase3.scope b/resources/fixtures/scopes/java/condition/condition.switchCase3.scope index 504ee7d5f8..a1d21d3b9a 100644 --- a/resources/fixtures/scopes/java/condition/condition.switchCase3.scope +++ b/resources/fixtures/scopes/java/condition/condition.switchCase3.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0 -> 0; } --- diff --git a/resources/fixtures/scopes/java/condition/condition.switchCase4.scope b/resources/fixtures/scopes/java/condition/condition.switchCase4.scope index a4f1bf8b76..b5c4e660fc 100644 --- a/resources/fixtures/scopes/java/condition/condition.switchCase4.scope +++ b/resources/fixtures/scopes/java/condition/condition.switchCase4.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0, 1 -> 0; } --- diff --git a/resources/fixtures/scopes/java/disqualifyDelimiter.scope b/resources/fixtures/scopes/java/disqualifyDelimiter.scope index 5987f9b986..3743193a5b 100644 --- a/resources/fixtures/scopes/java/disqualifyDelimiter.scope +++ b/resources/fixtures/scopes/java/disqualifyDelimiter.scope @@ -9,7 +9,7 @@ a >>= 2; a >>> 2; a >>>= 2; () -> 2; -switch (foo) { +switch (value) { case a -> 2 } --- diff --git a/resources/fixtures/scopes/java/interior/interior.switchCase.scope b/resources/fixtures/scopes/java/interior/interior.switchCase.scope index a4d31bfb69..b0c6880a56 100644 --- a/resources/fixtures/scopes/java/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/java/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: bar; break; @@ -19,9 +19,9 @@ switch (foo) { --------------< [#1 Removal] = -[#1 Domain] = 0:14-7:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-7:0 + > +0| switch (value) { 1| case 0: 2| bar; 3| break; diff --git a/resources/fixtures/scopes/java/interior/interior.switchCase2.scope b/resources/fixtures/scopes/java/interior/interior.switchCase2.scope index 7380c0cc2a..ae3ebba38e 100644 --- a/resources/fixtures/scopes/java/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/java/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: { } default: { } } @@ -11,9 +11,9 @@ switch (foo) { ----------------< [#1 Removal] = -[#1 Domain] = 0:14-3:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-3:0 + > +0| switch (value) { 1| case 0: { } 2| default: { } 3| } diff --git a/resources/fixtures/scopes/java/name/name.assignment.compound.scope b/resources/fixtures/scopes/java/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/java/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/java/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/java/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/java/statement/statement.assignment.compound.scope index 39dd087400..22279b229f 100644 --- a/resources/fixtures/scopes/java/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/java/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0; +foo += 1; --- [Content] = [Removal] = [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/java/statement/statement.switch.scope b/resources/fixtures/scopes/java/statement/statement.switch.scope index bcd2bb4acb..a44440c796 100644 --- a/resources/fixtures/scopes/java/statement/statement.switch.scope +++ b/resources/fixtures/scopes/java/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch (foo) {} +switch (value) {} --- [Content] = [Removal] = -[Domain] = 0:0-0:15 - >---------------< -0| switch (foo) {} +[Domain] = 0:0-0:17 + >-----------------< +0| switch (value) {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/java/statement/statement.yield.scope b/resources/fixtures/scopes/java/statement/statement.yield.scope index 595607012d..992b1b19f6 100644 --- a/resources/fixtures/scopes/java/statement/statement.yield.scope +++ b/resources/fixtures/scopes/java/statement/statement.yield.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: yield 0; } @@ -7,8 +7,8 @@ switch (foo) { [#1 Content] = [#1 Removal] = [#1 Domain] = 0:0-3:1 - >-------------- -0| switch (foo) { + >---------------- +0| switch (value) { 1| case 0: 2| yield 0; 3| } diff --git a/resources/fixtures/scopes/java/value/value.assignment.compound.scope b/resources/fixtures/scopes/java/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/java/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/java/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/java/value/value.assignment2.scope b/resources/fixtures/scopes/java/value/value.assignment2.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/java/value/value.assignment2.scope +++ b/resources/fixtures/scopes/java/value/value.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/java/value/value.yield.scope b/resources/fixtures/scopes/java/value/value.yield.scope index 4384e3ef92..f0e44d9d6f 100644 --- a/resources/fixtures/scopes/java/value/value.yield.scope +++ b/resources/fixtures/scopes/java/value/value.yield.scope @@ -1,17 +1,17 @@ -switch (foo) { +switch (value) { case 0: yield 0; } --- [#1 Content] = -[#1 Removal] = 0:8-0:11 - >---< -0| switch (foo) { +[#1 Removal] = 0:8-0:13 + >-----< +0| switch (value) { [#1 Domain] = 0:0-3:1 - >-------------- -0| switch (foo) { + >---------------- +0| switch (value) { 1| case 0: 2| yield 0; 3| } diff --git a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.scope b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.scope index 3588e59aa8..2a144345cb 100644 --- a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } diff --git a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase2.scope b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase2.scope index 7a0666b69a..c94fbb0962 100644 --- a/resources/fixtures/scopes/javascript.core/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/javascript.core/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { default: {} } --- diff --git a/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.iteration.scope index dba585043f..9e60a498fd 100644 --- a/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -switch (foo) { } +switch (value) { } --- [Content] = -[Domain] = 0:14-0:15 - >-< -0| switch (foo) { } +[Domain] = 0:16-0:17 + >-< +0| switch (value) { } diff --git a/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.scope b/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.scope index de92f6d536..2deadb4a4b 100644 --- a/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/javascript.core/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: break; } --- diff --git a/resources/fixtures/scopes/javascript.core/interior/interior.switchCase.scope b/resources/fixtures/scopes/javascript.core/interior/interior.switchCase.scope index a4d31bfb69..b0c6880a56 100644 --- a/resources/fixtures/scopes/javascript.core/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/javascript.core/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: bar; break; @@ -19,9 +19,9 @@ switch (foo) { --------------< [#1 Removal] = -[#1 Domain] = 0:14-7:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-7:0 + > +0| switch (value) { 1| case 0: 2| bar; 3| break; diff --git a/resources/fixtures/scopes/javascript.core/interior/interior.switchCase2.scope b/resources/fixtures/scopes/javascript.core/interior/interior.switchCase2.scope index 7380c0cc2a..ae3ebba38e 100644 --- a/resources/fixtures/scopes/javascript.core/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/javascript.core/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch (foo) { +switch (value) { case 0: { } default: { } } @@ -11,9 +11,9 @@ switch (foo) { ----------------< [#1 Removal] = -[#1 Domain] = 0:14-3:0 - > -0| switch (foo) { +[#1 Domain] = 0:16-3:0 + > +0| switch (value) { 1| case 0: { } 2| default: { } 3| } diff --git a/resources/fixtures/scopes/javascript.core/name/name.assignment.compound.scope b/resources/fixtures/scopes/javascript.core/name/name.assignment.compound.scope index a3321e2022..5529f2ceb7 100644 --- a/resources/fixtures/scopes/javascript.core/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/javascript.core/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:0-0:3 >---< -0| foo += 0; +0| foo += 1; [Removal] = 0:0-0:7 >-------< -0| foo += 0; +0| foo += 1; [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/javascript.core/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/javascript.core/statement/statement.assignment.compound.scope index 39dd087400..22279b229f 100644 --- a/resources/fixtures/scopes/javascript.core/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/javascript.core/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0; +foo += 1; --- [Content] = [Removal] = [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/javascript.core/statement/statement.switch.scope b/resources/fixtures/scopes/javascript.core/statement/statement.switch.scope index bcd2bb4acb..a44440c796 100644 --- a/resources/fixtures/scopes/javascript.core/statement/statement.switch.scope +++ b/resources/fixtures/scopes/javascript.core/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch (foo) {} +switch (value) {} --- [Content] = [Removal] = -[Domain] = 0:0-0:15 - >---------------< -0| switch (foo) {} +[Domain] = 0:0-0:17 + >-----------------< +0| switch (value) {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/javascript.core/value/value.assignment.compound.scope b/resources/fixtures/scopes/javascript.core/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/javascript.core/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/javascript.core/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/javascript.core/value/value.assignment2.scope b/resources/fixtures/scopes/javascript.core/value/value.assignment2.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/javascript.core/value/value.assignment2.scope +++ b/resources/fixtures/scopes/javascript.core/value/value.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/kotlin/name/name.assignment.compound.scope b/resources/fixtures/scopes/kotlin/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/kotlin/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/kotlin/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/kotlin/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/kotlin/statement/statement.assignment.compound.scope index b8bce690bc..6ac89fbea1 100644 --- a/resources/fixtures/scopes/kotlin/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/kotlin/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0 +foo += 1 --- [Content] = [Removal] = [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/kotlin/value/value.assignment.compound.scope b/resources/fixtures/scopes/kotlin/value/value.assignment.compound.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/kotlin/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/kotlin/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/php/branch/branch.switchCase.iteration.scope index db996238f9..d3e6a79864 100644 --- a/resources/fixtures/scopes/php/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/php/branch/branch.switchCase.iteration.scope @@ -1,8 +1,8 @@ -< -1| switch ($foo) { } +[Domain] = 1:17-1:18 + >-< +1| switch ($value) { } diff --git a/resources/fixtures/scopes/php/branch/branch.switchCase.scope b/resources/fixtures/scopes/php/branch/branch.switchCase.scope index 07b32abfe0..71cda45684 100644 --- a/resources/fixtures/scopes/php/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/php/branch/branch.switchCase.scope @@ -1,5 +1,5 @@ -< -1| switch ($foo) { } +[Domain] = 1:17-1:18 + >-< +1| switch ($value) { } diff --git a/resources/fixtures/scopes/php/condition/condition.switchCase.scope b/resources/fixtures/scopes/php/condition/condition.switchCase.scope index 385845c9a3..ae676644cf 100644 --- a/resources/fixtures/scopes/php/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/php/condition/condition.switchCase.scope @@ -1,5 +1,5 @@ -< -1| switch ($foo) { } +[Domain] = 1:17-1:18 + >-< +1| switch ($value) { } [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/interior/interior.switchCase.scope b/resources/fixtures/scopes/php/interior/interior.switchCase.scope index 404fe2ad9c..35ab6f5dfe 100644 --- a/resources/fixtures/scopes/php/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/php/interior/interior.switchCase.scope @@ -1,5 +1,5 @@ -1| switch ($foo) { +[#1 Domain] = 1:17-8:0 + > +1| switch ($value) { 2| case 0: 3| bar; 4| break; diff --git a/resources/fixtures/scopes/php/interior/interior.switchCase2.scope b/resources/fixtures/scopes/php/interior/interior.switchCase2.scope index f2a518ba6e..5f36174f07 100644 --- a/resources/fixtures/scopes/php/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/php/interior/interior.switchCase2.scope @@ -1,5 +1,5 @@ -1| switch ($foo) { +[#1 Domain] = 1:17-4:0 + > +1| switch ($value) { 2| case 0: { } 3| default: { } 4| } diff --git a/resources/fixtures/scopes/php/name/name.assignment.compound.scope b/resources/fixtures/scopes/php/name/name.assignment.compound.scope index 944388ef15..ad8bd75ee8 100644 --- a/resources/fixtures/scopes/php/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/php/name/name.assignment.compound.scope @@ -1,21 +1,21 @@ ----< -1| $foo += 0; +1| $foo += 1; [Removal] = 1:0-1:8 >--------< -1| $foo += 0; +1| $foo += 1; [Trailing delimiter] = 1:4-1:8 >----< -1| $foo += 0; +1| $foo += 1; [Domain] = 1:0-1:10 >----------< -1| $foo += 0; +1| $foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/name/name.assignment2.scope b/resources/fixtures/scopes/php/name/name.assignment2.scope index 944388ef15..ad8bd75ee8 100644 --- a/resources/fixtures/scopes/php/name/name.assignment2.scope +++ b/resources/fixtures/scopes/php/name/name.assignment2.scope @@ -1,21 +1,21 @@ ----< -1| $foo += 0; +1| $foo += 1; [Removal] = 1:0-1:8 >--------< -1| $foo += 0; +1| $foo += 1; [Trailing delimiter] = 1:4-1:8 >----< -1| $foo += 0; +1| $foo += 1; [Domain] = 1:0-1:10 >----------< -1| $foo += 0; +1| $foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/php/statement/statement.assignment.compound.scope index 80073a0c08..87c0e9e8da 100644 --- a/resources/fixtures/scopes/php/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/php/statement/statement.assignment.compound.scope @@ -1,16 +1,16 @@ ----------< -1| $foo += 0; +1| $foo += 1; [Removal] = 0:5-1:10 > 0| ----------------< -1| switch ($foo) {} +[Domain] = 1:0-1:18 + >------------------< +1| switch ($value) {} -[Removal] = 0:5-1:16 +[Removal] = 0:5-1:18 > 0| -< -1| $foo += 0; +1| $foo += 1; [Removal] = 1:4-1:9 >-----< -1| $foo += 0; +1| $foo += 1; [Leading delimiter] = 1:4-1:8 >----< -1| $foo += 0; +1| $foo += 1; [Domain] = 1:0-1:10 >----------< -1| $foo += 0; +1| $foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/value/value.assignment2.scope b/resources/fixtures/scopes/php/value/value.assignment2.scope index ec8bd19c14..a2504f74da 100644 --- a/resources/fixtures/scopes/php/value/value.assignment2.scope +++ b/resources/fixtures/scopes/php/value/value.assignment2.scope @@ -1,21 +1,21 @@ -< -1| $foo += 0; +1| $foo += 1; [Removal] = 1:4-1:9 >-----< -1| $foo += 0; +1| $foo += 1; [Leading delimiter] = 1:4-1:8 >----< -1| $foo += 0; +1| $foo += 1; [Domain] = 1:0-1:10 >----------< -1| $foo += 0; +1| $foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/php/value/value.switch.scope b/resources/fixtures/scopes/php/value/value.switch.scope index 37cfe5982a..4d2abe3bc0 100644 --- a/resources/fixtures/scopes/php/value/value.switch.scope +++ b/resources/fixtures/scopes/php/value/value.switch.scope @@ -1,14 +1,14 @@ ----< -1| switch ($foo) {} +[Removal] = 1:8-1:14 + >------< +1| switch ($value) {} -[Domain] = 1:0-1:16 - >----------------< -1| switch ($foo) {} +[Domain] = 1:0-1:18 + >------------------< +1| switch ($value) {} [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/python/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/python/branch/branch.switchCase.iteration.scope index d7054e659f..eae91963c5 100644 --- a/resources/fixtures/scopes/python/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/python/branch/branch.switchCase.iteration.scope @@ -1,10 +1,10 @@ -match foo: +match value: pass --- [Content] = -[Domain] = 0:10-1:8 - > -0| match foo: +[Domain] = 0:12-1:8 + > +0| match value: 1| pass --------< diff --git a/resources/fixtures/scopes/python/branch/branch.switchCase.scope b/resources/fixtures/scopes/python/branch/branch.switchCase.scope index 4fd1c6f272..6620035bf8 100644 --- a/resources/fixtures/scopes/python/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/python/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -match foo: +match value: case 0: pass --- @@ -10,9 +10,9 @@ match foo: 2| pass ------------< -[Removal] = 0:10-2:12 - > -0| match foo: +[Removal] = 0:12-2:12 + > +0| match value: 1| case 0: 2| pass ------------< diff --git a/resources/fixtures/scopes/python/branch/branch.switchCase2.scope b/resources/fixtures/scopes/python/branch/branch.switchCase2.scope index 5d92384f49..c5263e3618 100644 --- a/resources/fixtures/scopes/python/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/python/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -match foo: +match value: case _: pass --- @@ -10,9 +10,9 @@ match foo: 2| pass ------------< -[Removal] = 0:10-2:12 - > -0| match foo: +[Removal] = 0:12-2:12 + > +0| match value: 1| case _: 2| pass ------------< diff --git a/resources/fixtures/scopes/python/condition/condition.switchCase.iteration.scope b/resources/fixtures/scopes/python/condition/condition.switchCase.iteration.scope index d7054e659f..eae91963c5 100644 --- a/resources/fixtures/scopes/python/condition/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/python/condition/condition.switchCase.iteration.scope @@ -1,10 +1,10 @@ -match foo: +match value: pass --- [Content] = -[Domain] = 0:10-1:8 - > -0| match foo: +[Domain] = 0:12-1:8 + > +0| match value: 1| pass --------< diff --git a/resources/fixtures/scopes/python/condition/condition.switchCase.scope b/resources/fixtures/scopes/python/condition/condition.switchCase.scope index c0377e319a..3a039b43e8 100644 --- a/resources/fixtures/scopes/python/condition/condition.switchCase.scope +++ b/resources/fixtures/scopes/python/condition/condition.switchCase.scope @@ -1,4 +1,4 @@ -match foo: +match value: case 0: pass --- diff --git a/resources/fixtures/scopes/python/interior/interior.switchCase.scope b/resources/fixtures/scopes/python/interior/interior.switchCase.scope index c570ff9197..5809799b72 100644 --- a/resources/fixtures/scopes/python/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/python/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -match foo: +match value: case 0: bar baz @@ -18,9 +18,9 @@ match foo: -----------< [#1 Removal] = -[#1 Domain] = 0:10-6:11 - > -0| match foo: +[#1 Domain] = 0:12-6:11 + > +0| match value: 1| case 0: 2| bar 3| baz diff --git a/resources/fixtures/scopes/python/name/name.assignment.compound.scope b/resources/fixtures/scopes/python/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/python/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/python/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/python/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/python/statement/statement.assignment.compound.scope index b8bce690bc..6ac89fbea1 100644 --- a/resources/fixtures/scopes/python/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/python/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0 +foo += 1 --- [Content] = [Removal] = [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/python/statement/statement.switch.scope b/resources/fixtures/scopes/python/statement/statement.switch.scope index 0bbeb17605..4346a9b386 100644 --- a/resources/fixtures/scopes/python/statement/statement.switch.scope +++ b/resources/fixtures/scopes/python/statement/statement.switch.scope @@ -1,12 +1,12 @@ -match foo: +match value: pass --- [Content] = [Removal] = [Domain] = 0:0-1:8 - >---------- -0| match foo: + >------------ +0| match value: 1| pass --------< diff --git a/resources/fixtures/scopes/python/value/value.assignment.compound.scope b/resources/fixtures/scopes/python/value/value.assignment.compound.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/python/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/python/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/python/value/value.assignment2.scope b/resources/fixtures/scopes/python/value/value.assignment2.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/python/value/value.assignment2.scope +++ b/resources/fixtures/scopes/python/value/value.assignment2.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/r/branch/branch.switchCase.scope b/resources/fixtures/scopes/r/branch/branch.switchCase.scope index a1ea30e6dd..6e53eb53a3 100644 --- a/resources/fixtures/scopes/r/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/r/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, a = 0, ) --- diff --git a/resources/fixtures/scopes/r/branch/branch.switchCase2.scope b/resources/fixtures/scopes/r/branch/branch.switchCase2.scope index b95f6607d2..461053da88 100644 --- a/resources/fixtures/scopes/r/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/r/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, a = {}, ) --- diff --git a/resources/fixtures/scopes/r/branch/branch.switchCase3.scope b/resources/fixtures/scopes/r/branch/branch.switchCase3.scope index 8fc242c1c6..2bef587f6b 100644 --- a/resources/fixtures/scopes/r/branch/branch.switchCase3.scope +++ b/resources/fixtures/scopes/r/branch/branch.switchCase3.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, "_" ) --- diff --git a/resources/fixtures/scopes/r/condition.switchCase.scope b/resources/fixtures/scopes/r/condition.switchCase.scope index 760f7980b5..6286068ea5 100644 --- a/resources/fixtures/scopes/r/condition.switchCase.scope +++ b/resources/fixtures/scopes/r/condition.switchCase.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, a = 0 ) --- diff --git a/resources/fixtures/scopes/r/condition.switchCase2.scope b/resources/fixtures/scopes/r/condition.switchCase2.scope index a465b4a1a3..7feab21810 100644 --- a/resources/fixtures/scopes/r/condition.switchCase2.scope +++ b/resources/fixtures/scopes/r/condition.switchCase2.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, "_" ) --- diff --git a/resources/fixtures/scopes/r/interior/interior.switchCase.scope b/resources/fixtures/scopes/r/interior/interior.switchCase.scope index 3c002deee3..b2ea0fc8e8 100644 --- a/resources/fixtures/scopes/r/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/r/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, a = bar, "_" = bar ) diff --git a/resources/fixtures/scopes/r/interior/interior.switchCase2.scope b/resources/fixtures/scopes/r/interior/interior.switchCase2.scope index b66ce7ab51..22d6b2c408 100644 --- a/resources/fixtures/scopes/r/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/r/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -switch(foo, +switch(value, a = { }, "_" = { } ) diff --git a/resources/fixtures/scopes/r/statement/statement.switch.scope b/resources/fixtures/scopes/r/statement/statement.switch.scope index c71831bda3..f6ccd65285 100644 --- a/resources/fixtures/scopes/r/statement/statement.switch.scope +++ b/resources/fixtures/scopes/r/statement/statement.switch.scope @@ -1,10 +1,10 @@ -switch(foo) +switch(value) --- [Content] = [Removal] = -[Domain] = 0:0-0:11 - >-----------< -0| switch(foo) +[Domain] = 0:0-0:13 + >-------------< +0| switch(value) [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/r/value/value.switch.scope b/resources/fixtures/scopes/r/value/value.switch.scope index b728c6e2ec..f72ff113bb 100644 --- a/resources/fixtures/scopes/r/value/value.switch.scope +++ b/resources/fixtures/scopes/r/value/value.switch.scope @@ -1,13 +1,13 @@ -switch(foo) +switch(value) --- [Content] = -[Removal] = 0:7-0:10 - >---< -0| switch(foo) +[Removal] = 0:7-0:12 + >-----< +0| switch(value) -[Domain] = 0:0-0:11 - >-----------< -0| switch(foo) +[Domain] = 0:0-0:13 + >-------------< +0| switch(value) [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/rust/branch/branch.switchCase.iteration.scope b/resources/fixtures/scopes/rust/branch/branch.switchCase.iteration.scope index 61fdbbc926..2912ed3bd1 100644 --- a/resources/fixtures/scopes/rust/branch/branch.switchCase.iteration.scope +++ b/resources/fixtures/scopes/rust/branch/branch.switchCase.iteration.scope @@ -1,7 +1,7 @@ -match foo { } +match value { } --- [Content] = -[Domain] = 0:11-0:12 - >-< -0| match foo { } +[Domain] = 0:13-0:14 + >-< +0| match value { } diff --git a/resources/fixtures/scopes/rust/branch/branch.switchCase.scope b/resources/fixtures/scopes/rust/branch/branch.switchCase.scope index a40418f19c..de91a82e3b 100644 --- a/resources/fixtures/scopes/rust/branch/branch.switchCase.scope +++ b/resources/fixtures/scopes/rust/branch/branch.switchCase.scope @@ -1,4 +1,4 @@ -match foo { +match value { 0 => "0", } --- diff --git a/resources/fixtures/scopes/rust/branch/branch.switchCase2.scope b/resources/fixtures/scopes/rust/branch/branch.switchCase2.scope index 3cfac0b98f..f2142fb03e 100644 --- a/resources/fixtures/scopes/rust/branch/branch.switchCase2.scope +++ b/resources/fixtures/scopes/rust/branch/branch.switchCase2.scope @@ -1,4 +1,4 @@ -match foo { +match value { _ => "_", } --- diff --git a/resources/fixtures/scopes/rust/condition.switchCase.iteration.scope b/resources/fixtures/scopes/rust/condition.switchCase.iteration.scope index 61fdbbc926..2912ed3bd1 100644 --- a/resources/fixtures/scopes/rust/condition.switchCase.iteration.scope +++ b/resources/fixtures/scopes/rust/condition.switchCase.iteration.scope @@ -1,7 +1,7 @@ -match foo { } +match value { } --- [Content] = -[Domain] = 0:11-0:12 - >-< -0| match foo { } +[Domain] = 0:13-0:14 + >-< +0| match value { } diff --git a/resources/fixtures/scopes/rust/condition.switchCase.scope b/resources/fixtures/scopes/rust/condition.switchCase.scope index 271763b48f..742f634274 100644 --- a/resources/fixtures/scopes/rust/condition.switchCase.scope +++ b/resources/fixtures/scopes/rust/condition.switchCase.scope @@ -1,4 +1,4 @@ -match foo { +match value { 0 => 0 } --- diff --git a/resources/fixtures/scopes/rust/condition.switchCase2.scope b/resources/fixtures/scopes/rust/condition.switchCase2.scope index b7e1957619..eadd1c96ee 100644 --- a/resources/fixtures/scopes/rust/condition.switchCase2.scope +++ b/resources/fixtures/scopes/rust/condition.switchCase2.scope @@ -1,4 +1,4 @@ -match foo { +match value { _ => 0 } --- diff --git a/resources/fixtures/scopes/rust/interior/interior.switch.scope b/resources/fixtures/scopes/rust/interior/interior.switch.scope index 30aba7513d..69cb6a50a4 100644 --- a/resources/fixtures/scopes/rust/interior/interior.switch.scope +++ b/resources/fixtures/scopes/rust/interior/interior.switch.scope @@ -1,10 +1,10 @@ -match foo { } +match value { } --- [Content] = [Removal] = -[Domain] = 0:11-0:12 - >-< -0| match foo { } +[Domain] = 0:13-0:14 + >-< +0| match value { } [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/rust/interior/interior.switchCase.scope b/resources/fixtures/scopes/rust/interior/interior.switchCase.scope index 0574465a70..1ac7aa0da8 100644 --- a/resources/fixtures/scopes/rust/interior/interior.switchCase.scope +++ b/resources/fixtures/scopes/rust/interior/interior.switchCase.scope @@ -1,4 +1,4 @@ -match foo { +match value { 0 => bar _ => bar } @@ -11,9 +11,9 @@ match foo { ------------< [#1 Removal] = -[#1 Domain] = 0:11-3:0 - > -0| match foo { +[#1 Domain] = 0:13-3:0 + > +0| match value { 1| 0 => bar 2| _ => bar 3| } diff --git a/resources/fixtures/scopes/rust/interior/interior.switchCase2.scope b/resources/fixtures/scopes/rust/interior/interior.switchCase2.scope index c6f1e3ebd0..63f3b0c24d 100644 --- a/resources/fixtures/scopes/rust/interior/interior.switchCase2.scope +++ b/resources/fixtures/scopes/rust/interior/interior.switchCase2.scope @@ -1,4 +1,4 @@ -match foo { +match value { 0 => { } _ => { } } @@ -11,9 +11,9 @@ match foo { ------------< [#1 Removal] = -[#1 Domain] = 0:11-3:0 - > -0| match foo { +[#1 Domain] = 0:13-3:0 + > +0| match value { 1| 0 => { } 2| _ => { } 3| } diff --git a/resources/fixtures/scopes/rust/name/name.assignment.compound.scope b/resources/fixtures/scopes/rust/name/name.assignment.compound.scope index a3321e2022..5529f2ceb7 100644 --- a/resources/fixtures/scopes/rust/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/rust/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:0-0:3 >---< -0| foo += 0; +0| foo += 1; [Removal] = 0:0-0:7 >-------< -0| foo += 0; +0| foo += 1; [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/rust/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/rust/statement/statement.assignment.compound.scope index 39dd087400..22279b229f 100644 --- a/resources/fixtures/scopes/rust/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/rust/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0; +foo += 1; --- [Content] = [Removal] = [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/rust/statement/statement.switch.scope b/resources/fixtures/scopes/rust/statement/statement.switch.scope index 4514996a58..204e2797bb 100644 --- a/resources/fixtures/scopes/rust/statement/statement.switch.scope +++ b/resources/fixtures/scopes/rust/statement/statement.switch.scope @@ -1,10 +1,10 @@ -match foo {} +match value {} --- [Content] = [Removal] = -[Domain] = 0:0-0:12 - >------------< -0| match foo {} +[Domain] = 0:0-0:14 + >--------------< +0| match value {} [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/rust/value/value.assignment.compound.scope b/resources/fixtures/scopes/rust/value/value.assignment.compound.scope index 8dbdfaf55e..e57294d0f2 100644 --- a/resources/fixtures/scopes/rust/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/rust/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0; +foo += 1; --- [Content] = 0:7-0:8 >-< -0| foo += 0; +0| foo += 1; [Removal] = 0:3-0:8 >-----< -0| foo += 0; +0| foo += 1; [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0; +0| foo += 1; [Domain] = 0:0-0:9 >---------< -0| foo += 0; +0| foo += 1; [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/rust/value/value.switch.scope b/resources/fixtures/scopes/rust/value/value.switch.scope index 35a0e165ee..a1d5226dd6 100644 --- a/resources/fixtures/scopes/rust/value/value.switch.scope +++ b/resources/fixtures/scopes/rust/value/value.switch.scope @@ -1,24 +1,24 @@ -match foo {} +match value {} --- -[Content] = 0:6-0:9 - >---< -0| match foo {} +[Content] = 0:6-0:11 + >-----< +0| match value {} -[Removal] = 0:6-0:10 - >----< -0| match foo {} +[Removal] = 0:6-0:12 + >------< +0| match value {} [Leading delimiter] = 0:5-0:6 >-< -0| match foo {} +0| match value {} -[Trailing delimiter] = 0:9-0:10 - >-< -0| match foo {} +[Trailing delimiter] = 0:11-0:12 + >-< +0| match value {} -[Domain] = 0:0-0:12 - >------------< -0| match foo {} +[Domain] = 0:0-0:14 + >--------------< +0| match value {} [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/scala/name/name.assignment.compound.scope b/resources/fixtures/scopes/scala/name/name.assignment.compound.scope index c8cdaa4441..b4f0edf177 100644 --- a/resources/fixtures/scopes/scala/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/scala/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:7 >-------< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/scala/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/scala/statement/statement.assignment.compound.scope index b8bce690bc..6ac89fbea1 100644 --- a/resources/fixtures/scopes/scala/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/scala/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0 +foo += 1 --- [Content] = [Removal] = [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/scala/value/value.assignment.compound.scope b/resources/fixtures/scopes/scala/value/value.assignment.compound.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/scala/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/scala/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/swift/name/name.assignment.compound.scope b/resources/fixtures/scopes/swift/name/name.assignment.compound.scope index 443bb5b0a3..551ade6a94 100644 --- a/resources/fixtures/scopes/swift/name/name.assignment.compound.scope +++ b/resources/fixtures/scopes/swift/name/name.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:0-0:3 >---< -0| foo += 0 +0| foo += 1 [Removal] = 0:0-0:4 >----< -0| foo += 0 +0| foo += 1 [Trailing delimiter] = 0:3-0:4 >-< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/swift/statement/statement.assignment.compound.scope b/resources/fixtures/scopes/swift/statement/statement.assignment.compound.scope index b8bce690bc..6ac89fbea1 100644 --- a/resources/fixtures/scopes/swift/statement/statement.assignment.compound.scope +++ b/resources/fixtures/scopes/swift/statement/statement.assignment.compound.scope @@ -1,10 +1,10 @@ -foo += 0 +foo += 1 --- [Content] = [Removal] = [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = "\n" diff --git a/resources/fixtures/scopes/swift/value/value.assignment.compound.scope b/resources/fixtures/scopes/swift/value/value.assignment.compound.scope index 0e71d5ba22..8f2d4c646f 100644 --- a/resources/fixtures/scopes/swift/value/value.assignment.compound.scope +++ b/resources/fixtures/scopes/swift/value/value.assignment.compound.scope @@ -1,20 +1,20 @@ -foo += 0 +foo += 1 --- [Content] = 0:7-0:8 >-< -0| foo += 0 +0| foo += 1 [Removal] = 0:3-0:8 >-----< -0| foo += 0 +0| foo += 1 [Leading delimiter] = 0:3-0:7 >----< -0| foo += 0 +0| foo += 1 [Domain] = 0:0-0:8 >--------< -0| foo += 0 +0| foo += 1 [Insertion delimiter] = " " diff --git a/resources/queries/c.scm b/resources/queries/c.scm index d743183e57..7779f09771 100644 --- a/resources/queries/c.scm +++ b/resources/queries/c.scm @@ -359,7 +359,7 @@ "{" @G_branch_condition.iteration.start.endOf "}" @G_branch_condition.iteration.end.startOf ) -) @_.domain +) @value.domain ;;!! case 0: break; ;;! ^^^^^^^^^^^^^^ diff --git a/resources/queries/javascript.core.scm b/resources/queries/javascript.core.scm index d3860eb150..c3abf6c241 100644 --- a/resources/queries/javascript.core.scm +++ b/resources/queries/javascript.core.scm @@ -532,7 +532,7 @@ (object_pattern "{" @G_collectionKey_value.iteration.start.endOf "}" @G_collectionKey_value.iteration.end.startOf -) @_.domain +) ;;!! const {aaa: bbb} = ccc; ;;! ^^^ diff --git a/resources/queries/php.scm b/resources/queries/php.scm index e64d51b13e..b1db3b7487 100644 --- a/resources/queries/php.scm +++ b/resources/queries/php.scm @@ -522,7 +522,7 @@ (formal_parameters "(" @G_type_name_value.iteration.start.endOf ")" @G_type_name_value.iteration.end.startOf -) @_.domain +) ;;!! (int) $str; ;;! ^^^