diff --git a/data/fixtures/recorded/languages/lua/changeInsideList.yml b/data/fixtures/recorded/languages/lua/changeInsideList.yml deleted file mode 100644 index 06802e045d..0000000000 --- a/data/fixtures/recorded/languages/lua/changeInsideList.yml +++ /dev/null @@ -1,26 +0,0 @@ -languageId: lua -command: - version: 6 - spokenForm: change inside list - action: - name: clearAndSetSelection - target: - type: primitive - modifiers: - - {type: interiorOnly} - - type: containingScope - scopeType: {type: list} - usePrePhraseSnapshot: true -initialState: - documentContents: | - foo = {"a", "b", "c"}, - selections: - - anchor: {line: 0, character: 9} - active: {line: 0, character: 9} - marks: {} -finalState: - documentContents: | - foo = {}, - selections: - - anchor: {line: 0, character: 7} - active: {line: 0, character: 7} diff --git a/data/fixtures/recorded/modifiers/changeInsideValue.yml b/data/fixtures/recorded/modifiers/changeInsideValue.yml deleted file mode 100644 index 1510d7bce4..0000000000 --- a/data/fixtures/recorded/modifiers/changeInsideValue.yml +++ /dev/null @@ -1,30 +0,0 @@ -languageId: typescript -command: - version: 7 - spokenForm: change inside value - action: - name: clearAndSetSelection - target: - type: primitive - modifiers: - - {type: interiorOnly} - - type: containingScope - scopeType: {type: value} - usePrePhraseSnapshot: true -initialState: - documentContents: |- - const aaa = { - bbb: "ccc ddd" - } - selections: - - anchor: {line: 1, character: 4} - active: {line: 1, character: 4} - marks: {} -finalState: - documentContents: |- - const aaa = { - bbb: "" - } - selections: - - anchor: {line: 1, character: 10} - active: {line: 1, character: 10} diff --git a/data/fixtures/recorded/modifiers/changeInside.yml b/data/fixtures/recorded/modifiers/interior/changeInside5.yml similarity index 86% rename from data/fixtures/recorded/modifiers/changeInside.yml rename to data/fixtures/recorded/modifiers/interior/changeInside5.yml index 32454197af..8b325a1692 100644 --- a/data/fixtures/recorded/modifiers/changeInside.yml +++ b/data/fixtures/recorded/modifiers/interior/changeInside5.yml @@ -14,8 +14,8 @@ initialState: def testing(): pass selections: - - anchor: {line: 0, character: 0} - active: {line: 0, character: 0} + - anchor: {line: 1, character: 4} + active: {line: 1, character: 4} marks: {} finalState: documentContents: |- diff --git a/data/fixtures/recorded/modifiers/interior/changeInsideState.yml b/data/fixtures/recorded/modifiers/interior/changeInsideState.yml new file mode 100644 index 0000000000..221c88f0d4 --- /dev/null +++ b/data/fixtures/recorded/modifiers/interior/changeInsideState.yml @@ -0,0 +1,44 @@ +languageId: javascript +command: + version: 7 + spokenForm: change inside state + action: + name: clearAndSetSelection + target: + type: primitive + modifiers: + - {type: interiorOnly} + - type: containingScope + scopeType: {type: statement} + usePrePhraseSnapshot: false +initialState: + documentContents: |- + if (true) { + a; + } + else if (false) { + b; + } else { + c; + } + selections: + - anchor: {line: 0, character: 0} + active: {line: 0, character: 0} + marks: {} +finalState: + documentContents: |- + if (true) { + + } + else if (false) { + + } else { + + } + selections: + - anchor: {line: 1, character: 4} + active: {line: 1, character: 4} + - anchor: {line: 4, character: 4} + active: {line: 4, character: 4} + - anchor: {line: 6, character: 4} + active: {line: 6, character: 4} diff --git a/data/fixtures/recorded/selectionTypes/changeEveryPaintInsideParen2.yml b/data/fixtures/recorded/selectionTypes/changeEveryPaintInside.yml similarity index 66% rename from data/fixtures/recorded/selectionTypes/changeEveryPaintInsideParen2.yml rename to data/fixtures/recorded/selectionTypes/changeEveryPaintInside.yml index decbb40e90..56617ee2e5 100644 --- a/data/fixtures/recorded/selectionTypes/changeEveryPaintInsideParen2.yml +++ b/data/fixtures/recorded/selectionTypes/changeEveryPaintInside.yml @@ -1,7 +1,7 @@ languageId: plaintext command: version: 6 - spokenForm: change every paint inside paren + spokenForm: change every paint inside action: name: clearAndSetSelection target: @@ -10,17 +10,12 @@ command: - type: everyScope scopeType: {type: nonWhitespaceSequence} - {type: interiorOnly} - mark: {type: decoratedSymbol, symbolColor: default, character: (} usePrePhraseSnapshot: true initialState: documentContents: foo(aa|aa-().c_d bb|bb-().'') { return 1; } selections: - - anchor: {line: 0, character: 0} - active: {line: 0, character: 0} - marks: - default.(: - start: {line: 0, character: 3} - end: {line: 0, character: 4} + - anchor: {line: 0, character: 4} + active: {line: 0, character: 4} finalState: documentContents: " { return 1; }" selections: diff --git a/data/fixtures/recorded/selectionTypes/changeEveryShortPaintInsideParen.yml b/data/fixtures/recorded/selectionTypes/changeEveryShortPaintInside.yml similarity index 65% rename from data/fixtures/recorded/selectionTypes/changeEveryShortPaintInsideParen.yml rename to data/fixtures/recorded/selectionTypes/changeEveryShortPaintInside.yml index 96f413ee3e..d6a13f0ef8 100644 --- a/data/fixtures/recorded/selectionTypes/changeEveryShortPaintInsideParen.yml +++ b/data/fixtures/recorded/selectionTypes/changeEveryShortPaintInside.yml @@ -1,7 +1,7 @@ languageId: plaintext command: version: 6 - spokenForm: change every short paint inside paren + spokenForm: change every short paint inside action: name: clearAndSetSelection target: @@ -10,17 +10,12 @@ command: - type: everyScope scopeType: {type: boundedNonWhitespaceSequence} - {type: interiorOnly} - mark: {type: decoratedSymbol, symbolColor: default, character: (} usePrePhraseSnapshot: true initialState: documentContents: foo(aa|aa-().c_d bb|bb-().'') selections: - - anchor: {line: 0, character: 1} - active: {line: 0, character: 1} - marks: - default.(: - start: {line: 0, character: 3} - end: {line: 0, character: 4} + - anchor: {line: 0, character: 4} + active: {line: 0, character: 4} finalState: documentContents: foo( ) selections: diff --git a/data/fixtures/recorded/selectionTypes/clearCore.yml b/data/fixtures/recorded/selectionTypes/clearCore.yml index 9536406096..8b2d63a3ff 100644 --- a/data/fixtures/recorded/selectionTypes/clearCore.yml +++ b/data/fixtures/recorded/selectionTypes/clearCore.yml @@ -12,8 +12,8 @@ command: initialState: documentContents: ( ) selections: - - anchor: {line: 0, character: 0} - active: {line: 0, character: 0} + - anchor: {line: 0, character: 1} + active: {line: 0, character: 1} marks: {} finalState: documentContents: () diff --git a/data/fixtures/recorded/selectionTypes/clearCore2.yml b/data/fixtures/recorded/selectionTypes/clearCore2.yml index f7f85daf30..d808ff5589 100644 --- a/data/fixtures/recorded/selectionTypes/clearCore2.yml +++ b/data/fixtures/recorded/selectionTypes/clearCore2.yml @@ -12,8 +12,8 @@ command: initialState: documentContents: () selections: - - anchor: {line: 0, character: 0} - active: {line: 0, character: 0} + - anchor: {line: 0, character: 1} + active: {line: 0, character: 1} marks: {} finalState: documentContents: () diff --git a/data/fixtures/recorded/surroundingPair/parseTree/python/clearMatching10.yml b/data/fixtures/recorded/surroundingPair/parseTree/python/clearMatching10.yml index c3605886aa..efd27891a4 100644 --- a/data/fixtures/recorded/surroundingPair/parseTree/python/clearMatching10.yml +++ b/data/fixtures/recorded/surroundingPair/parseTree/python/clearMatching10.yml @@ -14,8 +14,8 @@ initialState: "'jlkjl' 'fsd'" selections: - - anchor: {line: 1, character: 8} - active: {line: 1, character: 8} + - anchor: {line: 1, character: 7} + active: {line: 1, character: 7} marks: {} finalState: documentContents: |- diff --git a/data/fixtures/scopes/c/interior/interior.class.scope b/data/fixtures/scopes/c/interior/interior.class.scope index 8c41d4852e..28c7613e2f 100644 --- a/data/fixtures/scopes/c/interior/interior.class.scope +++ b/data/fixtures/scopes/c/interior/interior.class.scope @@ -1,25 +1,10 @@ struct Foo { }; --- -[#1 Content] = -[#1 Removal] = 0:12-0:13 +[Content] = +[Removal] = +[Domain] = 0:12-0:13 >-< 0| struct Foo { }; -[#1 Domain] = 0:0-0:15 - >---------------< -0| struct Foo { }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:12-0:13 - >-< -0| struct Foo { }; - -[#2 Domain] = 0:11-0:14 - >---< -0| struct Foo { }; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.class2.scope b/data/fixtures/scopes/c/interior/interior.class2.scope index 26260af569..cadd9fe405 100644 --- a/data/fixtures/scopes/c/interior/interior.class2.scope +++ b/data/fixtures/scopes/c/interior/interior.class2.scope @@ -1,25 +1,10 @@ union Foo { }; --- -[#1 Content] = -[#1 Removal] = 0:11-0:12 +[Content] = +[Removal] = +[Domain] = 0:11-0:12 >-< 0| union Foo { }; -[#1 Domain] = 0:0-0:14 - >--------------< -0| union Foo { }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:11-0:12 - >-< -0| union Foo { }; - -[#2 Domain] = 0:10-0:13 - >---< -0| union Foo { }; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.class3.scope b/data/fixtures/scopes/c/interior/interior.class3.scope index eee3cb02c2..51f9da360c 100644 --- a/data/fixtures/scopes/c/interior/interior.class3.scope +++ b/data/fixtures/scopes/c/interior/interior.class3.scope @@ -1,25 +1,10 @@ typedef struct { } Foo; --- -[#1 Content] = -[#1 Removal] = 0:16-0:17 +[Content] = +[Removal] = +[Domain] = 0:16-0:17 >-< 0| typedef struct { } Foo; -[#1 Domain] = 0:0-0:23 - >-----------------------< -0| typedef struct { } Foo; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:16-0:17 - >-< -0| typedef struct { } Foo; - -[#2 Domain] = 0:15-0:18 - >---< -0| typedef struct { } Foo; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.class4.scope b/data/fixtures/scopes/c/interior/interior.class4.scope index 43c0d1f6de..d9fbefdaec 100644 --- a/data/fixtures/scopes/c/interior/interior.class4.scope +++ b/data/fixtures/scopes/c/interior/interior.class4.scope @@ -1,25 +1,10 @@ typedef union { } Foo; --- -[#1 Content] = -[#1 Removal] = 0:15-0:16 +[Content] = +[Removal] = +[Domain] = 0:15-0:16 >-< 0| typedef union { } Foo; -[#1 Domain] = 0:0-0:22 - >----------------------< -0| typedef union { } Foo; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:15-0:16 - >-< -0| typedef union { } Foo; - -[#2 Domain] = 0:14-0:17 - >---< -0| typedef union { } Foo; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.doWhile.scope b/data/fixtures/scopes/c/interior/interior.doWhile.scope index d1833e59d1..84fdbc5cc0 100644 --- a/data/fixtures/scopes/c/interior/interior.doWhile.scope +++ b/data/fixtures/scopes/c/interior/interior.doWhile.scope @@ -1,37 +1,10 @@ do { } while (true); --- -[#1 Content] = -[#1 Removal] = 0:4-0:5 +[Content] = +[Removal] = +[Domain] = 0:4-0:5 >-< 0| do { } while (true); -[#1 Domain] = 0:0-0:20 - >--------------------< -0| do { } while (true); - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:4-0:5 - >-< -0| do { } while (true); - -[#2 Domain] = 0:3-0:6 - >---< -0| do { } while (true); - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:18 - >----< -0| do { } while (true); - -[#3 Domain] = 0:13-0:19 - >------< -0| do { } while (true); - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.enum.scope b/data/fixtures/scopes/c/interior/interior.enum.scope index 235154efaf..da2d42970d 100644 --- a/data/fixtures/scopes/c/interior/interior.enum.scope +++ b/data/fixtures/scopes/c/interior/interior.enum.scope @@ -1,25 +1,10 @@ enum Foo { }; --- -[#1 Content] = -[#1 Removal] = 0:10-0:11 +[Content] = +[Removal] = +[Domain] = 0:10-0:11 >-< 0| enum Foo { }; -[#1 Domain] = 0:0-0:13 - >-------------< -0| enum Foo { }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:10-0:11 - >-< -0| enum Foo { }; - -[#2 Domain] = 0:9-0:12 - >---< -0| enum Foo { }; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.enum2.scope b/data/fixtures/scopes/c/interior/interior.enum2.scope index d939ad36f1..e3ae457086 100644 --- a/data/fixtures/scopes/c/interior/interior.enum2.scope +++ b/data/fixtures/scopes/c/interior/interior.enum2.scope @@ -1,25 +1,10 @@ typedef enum { } Foo; --- -[#1 Content] = -[#1 Removal] = 0:14-0:15 +[Content] = +[Removal] = +[Domain] = 0:14-0:15 >-< 0| typedef enum { } Foo; -[#1 Domain] = 0:0-0:21 - >---------------------< -0| typedef enum { } Foo; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:14-0:15 - >-< -0| typedef enum { } Foo; - -[#2 Domain] = 0:13-0:16 - >---< -0| typedef enum { } Foo; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.for.scope b/data/fixtures/scopes/c/interior/interior.for.scope index e1cf88df36..132becea8a 100644 --- a/data/fixtures/scopes/c/interior/interior.for.scope +++ b/data/fixtures/scopes/c/interior/interior.for.scope @@ -1,37 +1,10 @@ for (int i = 0; i < size; ++i) { } --- -[#1 Content] = -[#1 Removal] = 0:32-0:33 +[Content] = +[Removal] = +[Domain] = 0:32-0:33 >-< 0| for (int i = 0; i < size; ++i) { } -[#1 Domain] = 0:0-0:34 - >----------------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:5-0:29 - >------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#2 Domain] = 0:4-0:30 - >--------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:32-0:33 - >-< -0| for (int i = 0; i < size; ++i) { } - -[#3 Domain] = 0:31-0:34 - >---< -0| for (int i = 0; i < size; ++i) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.function.scope b/data/fixtures/scopes/c/interior/interior.function.scope index 55b8aa5f08..8a0c0bc456 100644 --- a/data/fixtures/scopes/c/interior/interior.function.scope +++ b/data/fixtures/scopes/c/interior/interior.function.scope @@ -1,37 +1,10 @@ void foo() { } --- -[#1 Content] = -[#1 Removal] = 0:12-0:13 +[Content] = +[Removal] = +[Domain] = 0:12-0:13 >-< 0| void foo() { } -[#1 Domain] = 0:0-0:14 - >--------------< -0| void foo() { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:9-0:9 - >< -0| void foo() { } - -[#2 Domain] = 0:8-0:10 - >--< -0| void foo() { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:12-0:13 - >-< -0| void foo() { } - -[#3 Domain] = 0:11-0:14 - >---< -0| void foo() { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.function2.scope b/data/fixtures/scopes/c/interior/interior.function2.scope index 17dba94f16..1c598f582d 100644 --- a/data/fixtures/scopes/c/interior/interior.function2.scope +++ b/data/fixtures/scopes/c/interior/interior.function2.scope @@ -1,37 +1,10 @@ void Foo::bar() { } --- -[#1 Content] = -[#1 Removal] = 0:17-0:18 +[Content] = +[Removal] = +[Domain] = 0:17-0:18 >-< 0| void Foo::bar() { } -[#1 Domain] = 0:0-0:19 - >-------------------< -0| void Foo::bar() { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:14-0:14 - >< -0| void Foo::bar() { } - -[#2 Domain] = 0:13-0:15 - >--< -0| void Foo::bar() { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:17-0:18 - >-< -0| void Foo::bar() { } - -[#3 Domain] = 0:16-0:19 - >---< -0| void Foo::bar() { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.if.scope b/data/fixtures/scopes/c/interior/interior.if.scope index 52ac91931a..407453929f 100644 --- a/data/fixtures/scopes/c/interior/interior.if.scope +++ b/data/fixtures/scopes/c/interior/interior.if.scope @@ -4,96 +4,27 @@ else { } --- [#1 Content] = -[#1 Removal] = 0:11-0:12 +[#1 Removal] = +[#1 Domain] = 0:11-0:12 >-< 0| if (true) { } -[#1 Domain] = 0:0-0:13 - >-------------< -0| if (true) { } - [#1 Insertion delimiter] = " " [#2 Content] = -[#2 Removal] = 0:4-0:8 - >----< -0| if (true) { } - -[#2 Domain] = 0:3-0:9 - >------< -0| if (true) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:11-0:12 - >-< -0| if (true) { } - -[#3 Domain] = 0:10-0:13 - >---< -0| if (true) { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:17-1:18 +[#2 Removal] = +[#2 Domain] = 1:17-1:18 >-< 1| else if (false) { } -[#4 Domain] = 1:0-1:19 - >-------------------< -1| else if (false) { } - -[#4 Insertion delimiter] = " " - - -[#5 Content] = -[#5 Removal] = 1:9-1:14 - >-----< -1| else if (false) { } - -[#5 Domain] = 1:8-1:15 - >-------< -1| else if (false) { } - -[#5 Insertion delimiter] = " " - - -[#6 Content] = -[#6 Removal] = 1:17-1:18 - >-< -1| else if (false) { } - -[#6 Domain] = 1:16-1:19 - >---< -1| else if (false) { } - -[#6 Insertion delimiter] = " " - - -[#7 Content] = -[#7 Removal] = 2:6-2:7 - >-< -2| else { } - -[#7 Domain] = 2:0-2:8 - >--------< -2| else { } - -[#7 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " -[#8 Content] = -[#8 Removal] = 2:6-2:7 +[#3 Content] = +[#3 Removal] = +[#3 Domain] = 2:6-2:7 >-< 2| else { } -[#8 Domain] = 2:5-2:8 - >---< -2| else { } - -[#8 Insertion delimiter] = " " +[#3 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.switch.scope b/data/fixtures/scopes/c/interior/interior.switch.scope index fce2f668fa..92f10c6415 100644 --- a/data/fixtures/scopes/c/interior/interior.switch.scope +++ b/data/fixtures/scopes/c/interior/interior.switch.scope @@ -1,37 +1,10 @@ switch (foo) { } --- -[#1 Content] = -[#1 Removal] = 0:14-0:15 +[Content] = +[Removal] = +[Domain] = 0:14-0:15 >-< 0| switch (foo) { } -[#1 Domain] = 0:0-0:16 - >----------------< -0| switch (foo) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:8-0:11 - >---< -0| switch (foo) { } - -[#2 Domain] = 0:7-0:12 - >-----< -0| switch (foo) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:15 - >-< -0| switch (foo) { } - -[#3 Domain] = 0:13-0:16 - >---< -0| switch (foo) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.switchCase.scope b/data/fixtures/scopes/c/interior/interior.switchCase.scope index 79eec9b526..1034635c48 100644 --- a/data/fixtures/scopes/c/interior/interior.switchCase.scope +++ b/data/fixtures/scopes/c/interior/interior.switchCase.scope @@ -36,8 +36,8 @@ switch (foo) { 9| } < -[#1 Domain] = 0:0-9:1 - >-------------- +[#1 Domain] = 0:14-9:0 + > 0| switch (foo) { 1| case 0: 2| bar; @@ -48,134 +48,69 @@ switch (foo) { 7| default: 8| break; 9| } - -< + < [#1 Insertion delimiter] = " " -[#2 Content] = -[#2 Removal] = 0:8-0:11 - >---< -0| switch (foo) { - -[#2 Domain] = 0:7-0:12 - >-----< -0| switch (foo) { - -[#2 Insertion delimiter] = " " - - -[#3 Content] = 1:4-8:14 - >------- -1| case 0: +[#2 Content] = 2:8-3:14 + >---- 2| bar; 3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; --------------< -[#3 Removal] = 0:14-9:0 - > -0| switch (foo) { -1| case 0: -2| bar; -3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; -9| } - < - -[#3 Domain] = 0:13-9:1 - >- -0| switch (foo) { +[#2 Removal] = 1:11-3:14 + > 1| case 0: 2| bar; -3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; -9| } - -< - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 2:8-3:14 - >---- -2| bar; 3| break; --------------< -[#4 Domain] = 1:4-3:14 - >------- +[#2 Domain] = 1:11-3:14 + > 1| case 0: 2| bar; 3| break; --------------< -[#4 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " -[#5 Content] = 5:8-5:14 +[#3 Content] = 5:8-5:14 >------< 5| break; -[#5 Removal] = 4:13-6:4 +[#3 Removal] = 4:13-6:4 > 4| case 1: { 5| break; 6| } ----< -[#5 Domain] = 4:4-6:5 - >--------- -4| case 1: { -5| break; -6| } - -----< - -[#5 Insertion delimiter] = " " - - -[#6 Content] = 5:8-5:14 - >------< -5| break; - -[#6 Removal] = 4:13-6:4 +[#3 Domain] = 4:13-6:4 > 4| case 1: { 5| break; 6| } ----< -[#6 Domain] = 4:12-6:5 - >- -4| case 1: { -5| break; -6| } - -----< - -[#6 Insertion delimiter] = " " +[#3 Insertion delimiter] = " " -[#7 Content] = -[#7 Removal] = 8:8-8:14 +[#4 Content] = 8:8-8:14 >------< 8| break; -[#7 Domain] = 7:4-8:14 - >-------- +[#4 Removal] = 7:12-8:14 + > +7| default: +8| break; + --------------< + +[#4 Domain] = 7:12-8:14 + > 7| default: 8| break; --------------< -[#7 Insertion delimiter] = " " +[#4 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/c/interior/interior.while.scope b/data/fixtures/scopes/c/interior/interior.while.scope index 3e16181107..1afbe23128 100644 --- a/data/fixtures/scopes/c/interior/interior.while.scope +++ b/data/fixtures/scopes/c/interior/interior.while.scope @@ -1,37 +1,10 @@ while (true) { } --- -[#1 Content] = -[#1 Removal] = 0:14-0:15 +[Content] = +[Removal] = +[Domain] = 0:14-0:15 >-< 0| while (true) { } -[#1 Domain] = 0:0-0:16 - >----------------< -0| while (true) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:7-0:11 - >----< -0| while (true) { } - -[#2 Domain] = 0:6-0:12 - >------< -0| while (true) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:15 - >-< -0| while (true) { } - -[#3 Domain] = 0:13-0:16 - >---< -0| while (true) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.class.scope b/data/fixtures/scopes/cpp/interior/interior.class.scope index 5390112f29..13ef2f4d94 100644 --- a/data/fixtures/scopes/cpp/interior/interior.class.scope +++ b/data/fixtures/scopes/cpp/interior/interior.class.scope @@ -1,25 +1,10 @@ class Foo { } --- -[#1 Content] = -[#1 Removal] = 0:11-0:12 +[Content] = +[Removal] = +[Domain] = 0:11-0:12 >-< 0| class Foo { } -[#1 Domain] = 0:0-0:13 - >-------------< -0| class Foo { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:11-0:12 - >-< -0| class Foo { } - -[#2 Domain] = 0:10-0:13 - >---< -0| class Foo { } - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.constructor.scope b/data/fixtures/scopes/cpp/interior/interior.constructor.scope index ff8bba477b..d64baa9016 100644 --- a/data/fixtures/scopes/cpp/interior/interior.constructor.scope +++ b/data/fixtures/scopes/cpp/interior/interior.constructor.scope @@ -14,68 +14,20 @@ class Foo { 2| } < -[#1 Domain] = 0:0-2:1 - >----------- -0| class Foo { -1| Foo() { } -2| } - -< - -[#1 Insertion delimiter] = " " - - -[#2 Content] = 1:4-1:13 - >---------< -1| Foo() { } - -[#2 Removal] = 0:11-2:0 +[#1 Domain] = 0:11-2:0 > 0| class Foo { 1| Foo() { } 2| } < -[#2 Domain] = 0:10-2:1 - >- -0| class Foo { -1| Foo() { } -2| } - -< - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:11-1:12 - >-< -1| Foo() { } - -[#3 Domain] = 1:4-1:13 - >---------< -1| Foo() { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:8-1:8 - >< -1| Foo() { } - -[#4 Domain] = 1:7-1:9 - >--< -1| Foo() { } - -[#4 Insertion delimiter] = " " +[#1 Insertion delimiter] = " " -[#5 Content] = -[#5 Removal] = 1:11-1:12 +[#2 Content] = +[#2 Removal] = +[#2 Domain] = 1:11-1:12 >-< 1| Foo() { } -[#5 Domain] = 1:10-1:13 - >---< -1| Foo() { } - -[#5 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.enum.scope b/data/fixtures/scopes/cpp/interior/interior.enum.scope index efbe2da153..5db9f44d0c 100644 --- a/data/fixtures/scopes/cpp/interior/interior.enum.scope +++ b/data/fixtures/scopes/cpp/interior/interior.enum.scope @@ -1,25 +1,10 @@ enum class Foo { }; --- -[#1 Content] = -[#1 Removal] = 0:16-0:17 +[Content] = +[Removal] = +[Domain] = 0:16-0:17 >-< 0| enum class Foo { }; -[#1 Domain] = 0:0-0:19 - >-------------------< -0| enum class Foo { }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:16-0:17 - >-< -0| enum class Foo { }; - -[#2 Domain] = 0:15-0:18 - >---< -0| enum class Foo { }; - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.foreach.scope b/data/fixtures/scopes/cpp/interior/interior.foreach.scope index 4d90296637..be709fe126 100644 --- a/data/fixtures/scopes/cpp/interior/interior.foreach.scope +++ b/data/fixtures/scopes/cpp/interior/interior.foreach.scope @@ -1,37 +1,10 @@ for (int v : values) { } --- -[#1 Content] = -[#1 Removal] = 0:22-0:23 +[Content] = +[Removal] = +[Domain] = 0:22-0:23 >-< 0| for (int v : values) { } -[#1 Domain] = 0:0-0:24 - >------------------------< -0| for (int v : values) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:5-0:19 - >--------------< -0| for (int v : values) { } - -[#2 Domain] = 0:4-0:20 - >----------------< -0| for (int v : values) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:22-0:23 - >-< -0| for (int v : values) { } - -[#3 Domain] = 0:21-0:24 - >---< -0| for (int v : values) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.lambda.scope b/data/fixtures/scopes/cpp/interior/interior.lambda.scope index 4334e4c314..9de845ff6b 100644 --- a/data/fixtures/scopes/cpp/interior/interior.lambda.scope +++ b/data/fixtures/scopes/cpp/interior/interior.lambda.scope @@ -1,49 +1,10 @@ []() { }; --- -[#1 Content] = -[#1 Removal] = 0:1-0:1 - >< -0| []() { }; - -[#1 Domain] = 0:0-0:2 - >--< -0| []() { }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:6-0:7 +[Content] = +[Removal] = +[Domain] = 0:6-0:7 >-< 0| []() { }; -[#2 Domain] = 0:0-0:8 - >--------< -0| []() { }; - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:3-0:3 - >< -0| []() { }; - -[#3 Domain] = 0:2-0:4 - >--< -0| []() { }; - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 0:6-0:7 - >-< -0| []() { }; - -[#4 Domain] = 0:5-0:8 - >---< -0| []() { }; - -[#4 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.method.scope b/data/fixtures/scopes/cpp/interior/interior.method.scope index f6ec2af746..bd398f6473 100644 --- a/data/fixtures/scopes/cpp/interior/interior.method.scope +++ b/data/fixtures/scopes/cpp/interior/interior.method.scope @@ -14,68 +14,20 @@ class Foo { 2| } < -[#1 Domain] = 0:0-2:1 - >----------- -0| class Foo { -1| void bar() { } -2| } - -< - -[#1 Insertion delimiter] = " " - - -[#2 Content] = 1:4-1:18 - >--------------< -1| void bar() { } - -[#2 Removal] = 0:11-2:0 +[#1 Domain] = 0:11-2:0 > 0| class Foo { 1| void bar() { } 2| } < -[#2 Domain] = 0:10-2:1 - >- -0| class Foo { -1| void bar() { } -2| } - -< - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:16-1:17 - >-< -1| void bar() { } - -[#3 Domain] = 1:4-1:18 - >--------------< -1| void bar() { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:13-1:13 - >< -1| void bar() { } - -[#4 Domain] = 1:12-1:14 - >--< -1| void bar() { } - -[#4 Insertion delimiter] = " " +[#1 Insertion delimiter] = " " -[#5 Content] = -[#5 Removal] = 1:16-1:17 +[#2 Content] = +[#2 Removal] = +[#2 Domain] = 1:16-1:17 >-< 1| void bar() { } -[#5 Domain] = 1:15-1:18 - >---< -1| void bar() { } - -[#5 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.namespace.scope b/data/fixtures/scopes/cpp/interior/interior.namespace.scope index 1f9153248c..5c87f527c6 100644 --- a/data/fixtures/scopes/cpp/interior/interior.namespace.scope +++ b/data/fixtures/scopes/cpp/interior/interior.namespace.scope @@ -1,25 +1,10 @@ namespace Foo { } --- -[#1 Content] = -[#1 Removal] = 0:15-0:16 +[Content] = +[Removal] = +[Domain] = 0:15-0:16 >-< 0| namespace Foo { } -[#1 Domain] = 0:0-0:17 - >-----------------< -0| namespace Foo { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:15-0:16 - >-< -0| namespace Foo { } - -[#2 Domain] = 0:14-0:17 - >---< -0| namespace Foo { } - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/cpp/interior/interior.try.scope b/data/fixtures/scopes/cpp/interior/interior.try.scope index b64cb122de..179938a3ec 100644 --- a/data/fixtures/scopes/cpp/interior/interior.try.scope +++ b/data/fixtures/scopes/cpp/interior/interior.try.scope @@ -3,60 +3,18 @@ catch (const std::exception& e) { } --- [#1 Content] = -[#1 Removal] = 0:5-0:6 +[#1 Removal] = +[#1 Domain] = 0:5-0:6 >-< 0| try { } -[#1 Domain] = 0:0-0:7 - >-------< -0| try { } - [#1 Insertion delimiter] = " " [#2 Content] = -[#2 Removal] = 0:5-0:6 - >-< -0| try { } - -[#2 Domain] = 0:4-0:7 - >---< -0| try { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:33-1:34 - >-< -1| catch (const std::exception& e) { } - -[#3 Domain] = 1:0-1:35 - >-----------------------------------< -1| catch (const std::exception& e) { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:7-1:30 - >-----------------------< -1| catch (const std::exception& e) { } - -[#4 Domain] = 1:6-1:31 - >-------------------------< -1| catch (const std::exception& e) { } - -[#4 Insertion delimiter] = " " - - -[#5 Content] = -[#5 Removal] = 1:33-1:34 +[#2 Removal] = +[#2 Domain] = 1:33-1:34 >-< 1| catch (const std::exception& e) { } -[#5 Domain] = 1:32-1:35 - >---< -1| catch (const std::exception& e) { } - -[#5 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.class.scope b/data/fixtures/scopes/csharp/interior/interior.class.scope index 5390112f29..13ef2f4d94 100644 --- a/data/fixtures/scopes/csharp/interior/interior.class.scope +++ b/data/fixtures/scopes/csharp/interior/interior.class.scope @@ -1,25 +1,10 @@ class Foo { } --- -[#1 Content] = -[#1 Removal] = 0:11-0:12 +[Content] = +[Removal] = +[Domain] = 0:11-0:12 >-< 0| class Foo { } -[#1 Domain] = 0:0-0:13 - >-------------< -0| class Foo { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:11-0:12 - >-< -0| class Foo { } - -[#2 Domain] = 0:10-0:13 - >---< -0| class Foo { } - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.constructor.scope b/data/fixtures/scopes/csharp/interior/interior.constructor.scope index 23adf22cbe..babc97caa5 100644 --- a/data/fixtures/scopes/csharp/interior/interior.constructor.scope +++ b/data/fixtures/scopes/csharp/interior/interior.constructor.scope @@ -14,68 +14,20 @@ class Foo { 2| } < -[#1 Domain] = 0:0-2:1 - >----------- -0| class Foo { -1| public Foo() { } -2| } - -< - -[#1 Insertion delimiter] = " " - - -[#2 Content] = 1:4-1:20 - >----------------< -1| public Foo() { } - -[#2 Removal] = 0:11-2:0 +[#1 Domain] = 0:11-2:0 > 0| class Foo { 1| public Foo() { } 2| } < -[#2 Domain] = 0:10-2:1 - >- -0| class Foo { -1| public Foo() { } -2| } - -< - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:18-1:19 - >-< -1| public Foo() { } - -[#3 Domain] = 1:4-1:20 - >----------------< -1| public Foo() { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:15-1:15 - >< -1| public Foo() { } - -[#4 Domain] = 1:14-1:16 - >--< -1| public Foo() { } - -[#4 Insertion delimiter] = " " +[#1 Insertion delimiter] = " " -[#5 Content] = -[#5 Removal] = 1:18-1:19 +[#2 Content] = +[#2 Removal] = +[#2 Domain] = 1:18-1:19 >-< 1| public Foo() { } -[#5 Domain] = 1:17-1:20 - >---< -1| public Foo() { } - -[#5 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.doWhile.scope b/data/fixtures/scopes/csharp/interior/interior.doWhile.scope index d1833e59d1..84fdbc5cc0 100644 --- a/data/fixtures/scopes/csharp/interior/interior.doWhile.scope +++ b/data/fixtures/scopes/csharp/interior/interior.doWhile.scope @@ -1,37 +1,10 @@ do { } while (true); --- -[#1 Content] = -[#1 Removal] = 0:4-0:5 +[Content] = +[Removal] = +[Domain] = 0:4-0:5 >-< 0| do { } while (true); -[#1 Domain] = 0:0-0:20 - >--------------------< -0| do { } while (true); - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:4-0:5 - >-< -0| do { } while (true); - -[#2 Domain] = 0:3-0:6 - >---< -0| do { } while (true); - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:18 - >----< -0| do { } while (true); - -[#3 Domain] = 0:13-0:19 - >------< -0| do { } while (true); - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.enum.scope b/data/fixtures/scopes/csharp/interior/interior.enum.scope index a5274985e7..d96875b078 100644 --- a/data/fixtures/scopes/csharp/interior/interior.enum.scope +++ b/data/fixtures/scopes/csharp/interior/interior.enum.scope @@ -1,25 +1,10 @@ enum Foo { } --- -[#1 Content] = -[#1 Removal] = 0:10-0:11 +[Content] = +[Removal] = +[Domain] = 0:10-0:11 >-< 0| enum Foo { } -[#1 Domain] = 0:0-0:12 - >------------< -0| enum Foo { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:10-0:11 - >-< -0| enum Foo { } - -[#2 Domain] = 0:9-0:12 - >---< -0| enum Foo { } - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.for.scope b/data/fixtures/scopes/csharp/interior/interior.for.scope index e1cf88df36..132becea8a 100644 --- a/data/fixtures/scopes/csharp/interior/interior.for.scope +++ b/data/fixtures/scopes/csharp/interior/interior.for.scope @@ -1,37 +1,10 @@ for (int i = 0; i < size; ++i) { } --- -[#1 Content] = -[#1 Removal] = 0:32-0:33 +[Content] = +[Removal] = +[Domain] = 0:32-0:33 >-< 0| for (int i = 0; i < size; ++i) { } -[#1 Domain] = 0:0-0:34 - >----------------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:5-0:29 - >------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#2 Domain] = 0:4-0:30 - >--------------------------< -0| for (int i = 0; i < size; ++i) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:32-0:33 - >-< -0| for (int i = 0; i < size; ++i) { } - -[#3 Domain] = 0:31-0:34 - >---< -0| for (int i = 0; i < size; ++i) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.foreach.scope b/data/fixtures/scopes/csharp/interior/interior.foreach.scope index 13e6cbc8e7..529461c23f 100644 --- a/data/fixtures/scopes/csharp/interior/interior.foreach.scope +++ b/data/fixtures/scopes/csharp/interior/interior.foreach.scope @@ -1,37 +1,10 @@ foreach (int v in values) { } --- -[#1 Content] = -[#1 Removal] = 0:27-0:28 +[Content] = +[Removal] = +[Domain] = 0:27-0:28 >-< 0| foreach (int v in values) { } -[#1 Domain] = 0:0-0:29 - >-----------------------------< -0| foreach (int v in values) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:9-0:24 - >---------------< -0| foreach (int v in values) { } - -[#2 Domain] = 0:8-0:25 - >-----------------< -0| foreach (int v in values) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:27-0:28 - >-< -0| foreach (int v in values) { } - -[#3 Domain] = 0:26-0:29 - >---< -0| foreach (int v in values) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.function.scope b/data/fixtures/scopes/csharp/interior/interior.function.scope index 1c8b29392b..383258e2c1 100644 --- a/data/fixtures/scopes/csharp/interior/interior.function.scope +++ b/data/fixtures/scopes/csharp/interior/interior.function.scope @@ -1,37 +1,10 @@ void Foo() { } --- -[#1 Content] = -[#1 Removal] = 0:12-0:13 +[Content] = +[Removal] = +[Domain] = 0:12-0:13 >-< 0| void Foo() { } -[#1 Domain] = 0:0-0:14 - >--------------< -0| void Foo() { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:9-0:9 - >< -0| void Foo() { } - -[#2 Domain] = 0:8-0:10 - >--< -0| void Foo() { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:12-0:13 - >-< -0| void Foo() { } - -[#3 Domain] = 0:11-0:14 - >---< -0| void Foo() { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.if.scope b/data/fixtures/scopes/csharp/interior/interior.if.scope index 52ac91931a..407453929f 100644 --- a/data/fixtures/scopes/csharp/interior/interior.if.scope +++ b/data/fixtures/scopes/csharp/interior/interior.if.scope @@ -4,96 +4,27 @@ else { } --- [#1 Content] = -[#1 Removal] = 0:11-0:12 +[#1 Removal] = +[#1 Domain] = 0:11-0:12 >-< 0| if (true) { } -[#1 Domain] = 0:0-0:13 - >-------------< -0| if (true) { } - [#1 Insertion delimiter] = " " [#2 Content] = -[#2 Removal] = 0:4-0:8 - >----< -0| if (true) { } - -[#2 Domain] = 0:3-0:9 - >------< -0| if (true) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:11-0:12 - >-< -0| if (true) { } - -[#3 Domain] = 0:10-0:13 - >---< -0| if (true) { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:17-1:18 +[#2 Removal] = +[#2 Domain] = 1:17-1:18 >-< 1| else if (false) { } -[#4 Domain] = 1:0-1:19 - >-------------------< -1| else if (false) { } - -[#4 Insertion delimiter] = " " - - -[#5 Content] = -[#5 Removal] = 1:9-1:14 - >-----< -1| else if (false) { } - -[#5 Domain] = 1:8-1:15 - >-------< -1| else if (false) { } - -[#5 Insertion delimiter] = " " - - -[#6 Content] = -[#6 Removal] = 1:17-1:18 - >-< -1| else if (false) { } - -[#6 Domain] = 1:16-1:19 - >---< -1| else if (false) { } - -[#6 Insertion delimiter] = " " - - -[#7 Content] = -[#7 Removal] = 2:6-2:7 - >-< -2| else { } - -[#7 Domain] = 2:0-2:8 - >--------< -2| else { } - -[#7 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " -[#8 Content] = -[#8 Removal] = 2:6-2:7 +[#3 Content] = +[#3 Removal] = +[#3 Domain] = 2:6-2:7 >-< 2| else { } -[#8 Domain] = 2:5-2:8 - >---< -2| else { } - -[#8 Insertion delimiter] = " " +[#3 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.interface.scope b/data/fixtures/scopes/csharp/interior/interior.interface.scope index e213945b2e..87e8ec8e37 100644 --- a/data/fixtures/scopes/csharp/interior/interior.interface.scope +++ b/data/fixtures/scopes/csharp/interior/interior.interface.scope @@ -1,25 +1,10 @@ interface IFoo { } --- -[#1 Content] = -[#1 Removal] = 0:16-0:17 +[Content] = +[Removal] = +[Domain] = 0:16-0:17 >-< 0| interface IFoo { } -[#1 Domain] = 0:0-0:18 - >------------------< -0| interface IFoo { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:16-0:17 - >-< -0| interface IFoo { } - -[#2 Domain] = 0:15-0:18 - >---< -0| interface IFoo { } - -[#2 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.lambda.scope b/data/fixtures/scopes/csharp/interior/interior.lambda.scope index 1d94e214a0..355508bec5 100644 --- a/data/fixtures/scopes/csharp/interior/interior.lambda.scope +++ b/data/fixtures/scopes/csharp/interior/interior.lambda.scope @@ -1,43 +1,16 @@ () => { foo; }; --- -[#1 Content] = -[#1 Removal] = 0:1-0:1 - >< -0| () => { foo; }; - -[#1 Domain] = 0:0-0:2 - >--< -0| () => { foo; }; - -[#1 Insertion delimiter] = " " - - -[#2 Content] = 0:8-0:12 +[Content] = 0:8-0:12 >----< 0| () => { foo; }; -[#2 Removal] = 0:7-0:13 +[Removal] = 0:7-0:13 >------< 0| () => { foo; }; -[#2 Domain] = 0:0-0:14 - >--------------< -0| () => { foo; }; - -[#2 Insertion delimiter] = " " - - -[#3 Content] = 0:8-0:12 - >----< -0| () => { foo; }; - -[#3 Removal] = 0:7-0:13 +[Domain] = 0:7-0:13 >------< 0| () => { foo; }; -[#3 Domain] = 0:6-0:14 - >--------< -0| () => { foo; }; - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.method.scope b/data/fixtures/scopes/csharp/interior/interior.method.scope index 87ab480019..dae6bb4ef6 100644 --- a/data/fixtures/scopes/csharp/interior/interior.method.scope +++ b/data/fixtures/scopes/csharp/interior/interior.method.scope @@ -14,68 +14,20 @@ class Foo { 2| } < -[#1 Domain] = 0:0-2:1 - >----------- -0| class Foo { -1| public void Bar() { } -2| } - -< - -[#1 Insertion delimiter] = " " - - -[#2 Content] = 1:4-1:25 - >---------------------< -1| public void Bar() { } - -[#2 Removal] = 0:11-2:0 +[#1 Domain] = 0:11-2:0 > 0| class Foo { 1| public void Bar() { } 2| } < -[#2 Domain] = 0:10-2:1 - >- -0| class Foo { -1| public void Bar() { } -2| } - -< - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:23-1:24 - >-< -1| public void Bar() { } - -[#3 Domain] = 1:4-1:25 - >---------------------< -1| public void Bar() { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:20-1:20 - >< -1| public void Bar() { } - -[#4 Domain] = 1:19-1:21 - >--< -1| public void Bar() { } - -[#4 Insertion delimiter] = " " +[#1 Insertion delimiter] = " " -[#5 Content] = -[#5 Removal] = 1:23-1:24 +[#2 Content] = +[#2 Removal] = +[#2 Domain] = 1:23-1:24 >-< 1| public void Bar() { } -[#5 Domain] = 1:22-1:25 - >---< -1| public void Bar() { } - -[#5 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.switch.scope b/data/fixtures/scopes/csharp/interior/interior.switch.scope index fce2f668fa..92f10c6415 100644 --- a/data/fixtures/scopes/csharp/interior/interior.switch.scope +++ b/data/fixtures/scopes/csharp/interior/interior.switch.scope @@ -1,37 +1,10 @@ switch (foo) { } --- -[#1 Content] = -[#1 Removal] = 0:14-0:15 +[Content] = +[Removal] = +[Domain] = 0:14-0:15 >-< 0| switch (foo) { } -[#1 Domain] = 0:0-0:16 - >----------------< -0| switch (foo) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:8-0:11 - >---< -0| switch (foo) { } - -[#2 Domain] = 0:7-0:12 - >-----< -0| switch (foo) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:15 - >-< -0| switch (foo) { } - -[#3 Domain] = 0:13-0:16 - >---< -0| switch (foo) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.switchCase.scope b/data/fixtures/scopes/csharp/interior/interior.switchCase.scope index 79eec9b526..1034635c48 100644 --- a/data/fixtures/scopes/csharp/interior/interior.switchCase.scope +++ b/data/fixtures/scopes/csharp/interior/interior.switchCase.scope @@ -36,8 +36,8 @@ switch (foo) { 9| } < -[#1 Domain] = 0:0-9:1 - >-------------- +[#1 Domain] = 0:14-9:0 + > 0| switch (foo) { 1| case 0: 2| bar; @@ -48,134 +48,69 @@ switch (foo) { 7| default: 8| break; 9| } - -< + < [#1 Insertion delimiter] = " " -[#2 Content] = -[#2 Removal] = 0:8-0:11 - >---< -0| switch (foo) { - -[#2 Domain] = 0:7-0:12 - >-----< -0| switch (foo) { - -[#2 Insertion delimiter] = " " - - -[#3 Content] = 1:4-8:14 - >------- -1| case 0: +[#2 Content] = 2:8-3:14 + >---- 2| bar; 3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; --------------< -[#3 Removal] = 0:14-9:0 - > -0| switch (foo) { -1| case 0: -2| bar; -3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; -9| } - < - -[#3 Domain] = 0:13-9:1 - >- -0| switch (foo) { +[#2 Removal] = 1:11-3:14 + > 1| case 0: 2| bar; -3| break; -4| case 1: { -5| break; -6| } -7| default: -8| break; -9| } - -< - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 2:8-3:14 - >---- -2| bar; 3| break; --------------< -[#4 Domain] = 1:4-3:14 - >------- +[#2 Domain] = 1:11-3:14 + > 1| case 0: 2| bar; 3| break; --------------< -[#4 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " -[#5 Content] = 5:8-5:14 +[#3 Content] = 5:8-5:14 >------< 5| break; -[#5 Removal] = 4:13-6:4 +[#3 Removal] = 4:13-6:4 > 4| case 1: { 5| break; 6| } ----< -[#5 Domain] = 4:4-6:5 - >--------- -4| case 1: { -5| break; -6| } - -----< - -[#5 Insertion delimiter] = " " - - -[#6 Content] = 5:8-5:14 - >------< -5| break; - -[#6 Removal] = 4:13-6:4 +[#3 Domain] = 4:13-6:4 > 4| case 1: { 5| break; 6| } ----< -[#6 Domain] = 4:12-6:5 - >- -4| case 1: { -5| break; -6| } - -----< - -[#6 Insertion delimiter] = " " +[#3 Insertion delimiter] = " " -[#7 Content] = -[#7 Removal] = 8:8-8:14 +[#4 Content] = 8:8-8:14 >------< 8| break; -[#7 Domain] = 7:4-8:14 - >-------- +[#4 Removal] = 7:12-8:14 + > +7| default: +8| break; + --------------< + +[#4 Domain] = 7:12-8:14 + > 7| default: 8| break; --------------< -[#7 Insertion delimiter] = " " +[#4 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.try.scope b/data/fixtures/scopes/csharp/interior/interior.try.scope index ae38809df4..90d785795c 100644 --- a/data/fixtures/scopes/csharp/interior/interior.try.scope +++ b/data/fixtures/scopes/csharp/interior/interior.try.scope @@ -4,84 +4,27 @@ finally { } --- [#1 Content] = -[#1 Removal] = 0:5-0:6 +[#1 Removal] = +[#1 Domain] = 0:5-0:6 >-< 0| try { } -[#1 Domain] = 0:0-0:7 - >-------< -0| try { } - [#1 Insertion delimiter] = " " [#2 Content] = -[#2 Removal] = 0:5-0:6 - >-< -0| try { } - -[#2 Domain] = 0:4-0:7 - >---< -0| try { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 1:20-1:21 +[#2 Removal] = +[#2 Domain] = 1:20-1:21 >-< 1| catch(Exception e) { } -[#3 Domain] = 1:0-1:22 - >----------------------< -1| catch(Exception e) { } - -[#3 Insertion delimiter] = " " - - -[#4 Content] = -[#4 Removal] = 1:6-1:17 - >-----------< -1| catch(Exception e) { } - -[#4 Domain] = 1:5-1:18 - >-------------< -1| catch(Exception e) { } - -[#4 Insertion delimiter] = " " - - -[#5 Content] = -[#5 Removal] = 1:20-1:21 - >-< -1| catch(Exception e) { } - -[#5 Domain] = 1:19-1:22 - >---< -1| catch(Exception e) { } - -[#5 Insertion delimiter] = " " - - -[#6 Content] = -[#6 Removal] = 2:9-2:10 - >-< -2| finally { } - -[#6 Domain] = 2:0-2:11 - >-----------< -2| finally { } - -[#6 Insertion delimiter] = " " +[#2 Insertion delimiter] = " " -[#7 Content] = -[#7 Removal] = 2:9-2:10 +[#3 Content] = +[#3 Removal] = +[#3 Domain] = 2:9-2:10 >-< 2| finally { } -[#7 Domain] = 2:8-2:11 - >---< -2| finally { } - -[#7 Insertion delimiter] = " " +[#3 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/csharp/interior/interior.while.scope b/data/fixtures/scopes/csharp/interior/interior.while.scope index 3e16181107..1afbe23128 100644 --- a/data/fixtures/scopes/csharp/interior/interior.while.scope +++ b/data/fixtures/scopes/csharp/interior/interior.while.scope @@ -1,37 +1,10 @@ while (true) { } --- -[#1 Content] = -[#1 Removal] = 0:14-0:15 +[Content] = +[Removal] = +[Domain] = 0:14-0:15 >-< 0| while (true) { } -[#1 Domain] = 0:0-0:16 - >----------------< -0| while (true) { } - -[#1 Insertion delimiter] = " " - - -[#2 Content] = -[#2 Removal] = 0:7-0:11 - >----< -0| while (true) { } - -[#2 Domain] = 0:6-0:12 - >------< -0| while (true) { } - -[#2 Insertion delimiter] = " " - - -[#3 Content] = -[#3 Removal] = 0:14-0:15 - >-< -0| while (true) { } - -[#3 Domain] = 0:13-0:16 - >---< -0| while (true) { } - -[#3 Insertion delimiter] = " " +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/html/interior.element.scope b/data/fixtures/scopes/html/interior.element.scope index 74c625a413..9f9283d847 100644 --- a/data/fixtures/scopes/html/interior.element.scope +++ b/data/fixtures/scopes/html/interior.element.scope @@ -1,37 +1,10 @@