diff --git a/data/fixtures/scopes/csharp/argumentList.actual.constructor2.scope b/data/fixtures/scopes/csharp/argumentList.actual.constructor2.scope deleted file mode 100644 index 3ba72064f0..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.actual.constructor2.scope +++ /dev/null @@ -1,13 +0,0 @@ -new Foo(a, b); ---- - -[Content] = -[Removal] = 0:8-0:12 - >----< -0| new Foo(a, b); - -[Domain] = 0:0-0:13 - >-------------< -0| new Foo(a, b); - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.actual.method2.scope b/data/fixtures/scopes/csharp/argumentList.actual.method2.scope deleted file mode 100644 index c4b50f6f84..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.actual.method2.scope +++ /dev/null @@ -1,13 +0,0 @@ -foo.bar(a, b); ---- - -[Content] = -[Removal] = 0:8-0:12 - >----< -0| foo.bar(a, b); - -[Domain] = 0:0-0:13 - >-------------< -0| foo.bar(a, b); - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.actual2.scope b/data/fixtures/scopes/csharp/argumentList.actual2.scope deleted file mode 100644 index 8193f0939f..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.actual2.scope +++ /dev/null @@ -1,13 +0,0 @@ -foo(a, b); ---- - -[Content] = -[Removal] = 0:4-0:8 - >----< -0| foo(a, b); - -[Domain] = 0:0-0:9 - >---------< -0| foo(a, b); - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.constructor2.scope b/data/fixtures/scopes/csharp/argumentList.formal.constructor2.scope deleted file mode 100644 index a7cd679f0f..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.formal.constructor2.scope +++ /dev/null @@ -1,15 +0,0 @@ -class MyClass { - MyClass(int a, int b) {} -} ---- - -[Content] = -[Removal] = 1:12-1:24 - >------------< -1| MyClass(int a, int b) {} - -[Domain] = 1:4-1:28 - >------------------------< -1| MyClass(int a, int b) {} - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.lambda2.scope b/data/fixtures/scopes/csharp/argumentList.formal.lambda2.scope deleted file mode 100644 index 15ab235883..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.formal.lambda2.scope +++ /dev/null @@ -1,13 +0,0 @@ -(a, b) => {}; ---- - -[Content] = -[Removal] = 0:1-0:5 - >----< -0| (a, b) => {}; - -[Domain] = 0:0-0:12 - >------------< -0| (a, b) => {}; - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.method2.scope b/data/fixtures/scopes/csharp/argumentList.formal.method2.scope deleted file mode 100644 index 254cf01189..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.formal.method2.scope +++ /dev/null @@ -1,15 +0,0 @@ -class MyClass { - void foo(int a, int b) {} -} ---- - -[Content] = -[Removal] = 1:13-1:25 - >------------< -1| void foo(int a, int b) {} - -[Domain] = 1:4-1:29 - >-------------------------< -1| void foo(int a, int b) {} - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal2.scope b/data/fixtures/scopes/csharp/argumentList.formal2.scope deleted file mode 100644 index d5220fc1a1..0000000000 --- a/data/fixtures/scopes/csharp/argumentList.formal2.scope +++ /dev/null @@ -1,13 +0,0 @@ -void foo(a, b) {} ---- - -[Content] = -[Removal] = 0:9-0:13 - >----< -0| void foo(a, b) {} - -[Domain] = 0:0-0:17 - >-----------------< -0| void foo(a, b) {} - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.actual.constructor.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.actual.constructor.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList.actual.constructor3.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.multiLine.scope similarity index 73% rename from data/fixtures/scopes/csharp/argumentList.actual.constructor3.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.multiLine.scope index bbcff2f43c..1e75197cb8 100644 --- a/data/fixtures/scopes/csharp/argumentList.actual.constructor3.scope +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.multiLine.scope @@ -1,6 +1,6 @@ new Foo( - a, - b + aaa, + bbb ); --- @@ -8,16 +8,16 @@ new Foo( [Removal] = 0:8-3:0 > 0| new Foo( -1| a, -2| b +1| aaa, +2| bbb 3| ); < [Domain] = 0:0-3:1 >-------- 0| new Foo( -1| a, -2| b +1| aaa, +2| bbb 3| ); -< diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.singleLine.scope new file mode 100644 index 0000000000..b9964e4f92 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.constructor.singleLine.scope @@ -0,0 +1,13 @@ +new Foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| new Foo(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| new Foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.actual.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.actual.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList.actual.method.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.actual.method.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList.actual.method3.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.multiLine.scope similarity index 73% rename from data/fixtures/scopes/csharp/argumentList.actual.method3.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.multiLine.scope index 26a8b9f4aa..11b4a17bb1 100644 --- a/data/fixtures/scopes/csharp/argumentList.actual.method3.scope +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.multiLine.scope @@ -1,6 +1,6 @@ foo.bar( - a, - b + aaa, + bbb ); --- @@ -8,16 +8,16 @@ foo.bar( [Removal] = 0:8-3:0 > 0| foo.bar( -1| a, -2| b +1| aaa, +2| bbb 3| ); < [Domain] = 0:0-3:1 >-------- 0| foo.bar( -1| a, -2| b +1| aaa, +2| bbb 3| ); -< diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..9a937e7bf7 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +foo.bar(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| foo.bar(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| foo.bar(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.actual3.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.multiLine.scope similarity index 70% rename from data/fixtures/scopes/csharp/argumentList.actual3.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.actual.multiLine.scope index dcf3825591..52ce5e54b4 100644 --- a/data/fixtures/scopes/csharp/argumentList.actual3.scope +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.multiLine.scope @@ -1,6 +1,6 @@ foo( - a, - b + aaa, + bbb ); --- @@ -8,16 +8,16 @@ foo( [Removal] = 0:4-3:0 > 0| foo( -1| a, -2| b +1| aaa, +2| bbb 3| ); < [Domain] = 0:0-3:1 >---- 0| foo( -1| a, -2| b +1| aaa, +2| bbb 3| ); -< diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.actual.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..d649112ab5 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| foo(aaa, bbb); + +[Domain] = 0:0-0:13 + >-------------< +0| foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.constructor.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.formal.constructor.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.multiLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.multiLine.scope new file mode 100644 index 0000000000..f6f61f1d52 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.multiLine.scope @@ -0,0 +1,26 @@ +class MyClass { + MyClass( + int aaa, + int bbb + ) {} +} +--- + +[Content] = +[Removal] = 1:12-4:4 + > +1| MyClass( +2| int aaa, +3| int bbb +4| ) {} + ----< + +[Domain] = 1:4-4:8 + >-------- +1| MyClass( +2| int aaa, +3| int bbb +4| ) {} + --------< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.singleLine.scope new file mode 100644 index 0000000000..ba318a7b14 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.constructor.singleLine.scope @@ -0,0 +1,15 @@ +class MyClass { + MyClass(int aaa, int bbb) {} +} +--- + +[Content] = +[Removal] = 1:12-1:28 + >----------------< +1| MyClass(int aaa, int bbb) {} + +[Domain] = 1:4-1:32 + >----------------------------< +1| MyClass(int aaa, int bbb) {} + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.formal.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.formal.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList.formal.lambda.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.formal.lambda.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.multiLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.multiLine.scope new file mode 100644 index 0000000000..a078e7ba52 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.multiLine.scope @@ -0,0 +1,24 @@ +( + aaa, + bbb +) => {}; +--- + +[Content] = +[Removal] = 0:1-3:0 + > +0| ( +1| aaa, +2| bbb +3| ) => {}; + < + +[Domain] = 0:0-3:7 + >- +0| ( +1| aaa, +2| bbb +3| ) => {}; + -------< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.singleLine.scope new file mode 100644 index 0000000000..5264a592f3 --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.lambda.singleLine.scope @@ -0,0 +1,13 @@ +(aaa, bbb) => {}; +--- + +[Content] = +[Removal] = 0:1-0:9 + >--------< +0| (aaa, bbb) => {}; + +[Domain] = 0:0-0:16 + >----------------< +0| (aaa, bbb) => {}; + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal.method.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.empty.scope similarity index 100% rename from data/fixtures/scopes/csharp/argumentList.formal.method.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.empty.scope diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.multiLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.multiLine.scope new file mode 100644 index 0000000000..f4d2f4ebcf --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.multiLine.scope @@ -0,0 +1,26 @@ +class MyClass { + void foo( + int aaa, + int bbb + ) {} +} +--- + +[Content] = +[Removal] = 1:13-4:4 + > +1| void foo( +2| int aaa, +3| int bbb +4| ) {} + ----< + +[Domain] = 1:4-4:8 + >--------- +1| void foo( +2| int aaa, +3| int bbb +4| ) {} + --------< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.singleLine.scope new file mode 100644 index 0000000000..35af67a9ce --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.method.singleLine.scope @@ -0,0 +1,15 @@ +class MyClass { + void foo(int aaa, int bbb) {} +} +--- + +[Content] = +[Removal] = 1:13-1:29 + >----------------< +1| void foo(int aaa, int bbb) {} + +[Domain] = 1:4-1:33 + >-----------------------------< +1| void foo(int aaa, int bbb) {} + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/csharp/argumentList.formal3.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.multiLine.scope similarity index 74% rename from data/fixtures/scopes/csharp/argumentList.formal3.scope rename to data/fixtures/scopes/csharp/argumentList/argumentList.formal.multiLine.scope index 500c0ba6b2..2b09682567 100644 --- a/data/fixtures/scopes/csharp/argumentList.formal3.scope +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.multiLine.scope @@ -1,6 +1,6 @@ void foo( - a, - b + aaa, + bbb ) {} --- @@ -8,16 +8,16 @@ void foo( [Removal] = 0:9-3:0 > 0| void foo( -1| a, -2| b +1| aaa, +2| bbb 3| ) {} < [Domain] = 0:0-3:4 >--------- 0| void foo( -1| a, -2| b +1| aaa, +2| bbb 3| ) {} ----< diff --git a/data/fixtures/scopes/csharp/argumentList/argumentList.formal.singleLine.scope b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.singleLine.scope new file mode 100644 index 0000000000..165a51acda --- /dev/null +++ b/data/fixtures/scopes/csharp/argumentList/argumentList.formal.singleLine.scope @@ -0,0 +1,13 @@ +void foo(aaa, bbb) {} +--- + +[Content] = +[Removal] = 0:9-0:17 + >--------< +0| void foo(aaa, bbb) {} + +[Domain] = 0:0-0:21 + >---------------------< +0| void foo(aaa, bbb) {} + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/css/argumentList.actual.empty.scope b/data/fixtures/scopes/css/argumentList.actual.empty.scope new file mode 100644 index 0000000000..fefbd1fdfd --- /dev/null +++ b/data/fixtures/scopes/css/argumentList.actual.empty.scope @@ -0,0 +1,15 @@ +* { + width: calc(); +} +--- + +[Content] = +[Removal] = 1:14-1:14 + >< +1| width: calc(); + +[Domain] = 1:9-1:15 + >------< +1| width: calc(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/css/argumentList.actual.singleLine.scope b/data/fixtures/scopes/css/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..0d64ba94cc --- /dev/null +++ b/data/fixtures/scopes/css/argumentList.actual.singleLine.scope @@ -0,0 +1,15 @@ +* { + width: calc(100% - 50px); +} +--- + +[Content] = +[Removal] = 1:14-1:25 + >-----------< +1| width: calc(100% - 50px); + +[Domain] = 1:9-1:26 + >-----------------< +1| width: calc(100% - 50px); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList.formal.constructor.scope b/data/fixtures/scopes/java/argumentList.formal.constructor.scope deleted file mode 100644 index 8ecf6205b1..0000000000 --- a/data/fixtures/scopes/java/argumentList.formal.constructor.scope +++ /dev/null @@ -1,15 +0,0 @@ -public class MyClass { - public MyClass(String name, int age) {} -} ---- - -[Content] = -[Removal] = 1:19-1:39 - >--------------------< -1| public MyClass(String name, int age) {} - -[Domain] = 1:4-1:43 - >---------------------------------------< -1| public MyClass(String name, int age) {} - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList.formal.method.scope b/data/fixtures/scopes/java/argumentList.formal.method.scope deleted file mode 100644 index 4fdc540857..0000000000 --- a/data/fixtures/scopes/java/argumentList.formal.method.scope +++ /dev/null @@ -1,15 +0,0 @@ -public class MyClass { - public void foo(String name, int age) {} -} ---- - -[Content] = -[Removal] = 1:20-1:40 - >--------------------< -1| public void foo(String name, int age) {} - -[Domain] = 1:4-1:44 - >----------------------------------------< -1| public void foo(String name, int age) {} - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.empty.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.empty.scope new file mode 100644 index 0000000000..728f90d07c --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.empty.scope @@ -0,0 +1,13 @@ +new Foo(); +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| new Foo(); + +[Domain] = 0:0-0:9 + >---------< +0| new Foo(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.multiLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.multiLine.scope new file mode 100644 index 0000000000..1e75197cb8 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.multiLine.scope @@ -0,0 +1,24 @@ +new Foo( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| new Foo( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >-------- +0| new Foo( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.singleLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.singleLine.scope new file mode 100644 index 0000000000..b9964e4f92 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.constructor.singleLine.scope @@ -0,0 +1,13 @@ +new Foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| new Foo(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| new Foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.empty.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.empty.scope new file mode 100644 index 0000000000..539138bcb6 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +foo(); +--- + +[Content] = +[Removal] = 0:4-0:4 + >< +0| foo(); + +[Domain] = 0:0-0:5 + >-----< +0| foo(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.method.empty.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.empty.scope new file mode 100644 index 0000000000..91d34a15d7 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.empty.scope @@ -0,0 +1,13 @@ +foo.bar(); +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| foo.bar(); + +[Domain] = 0:0-0:9 + >---------< +0| foo.bar(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.method.multiLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.multiLine.scope new file mode 100644 index 0000000000..11b4a17bb1 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.multiLine.scope @@ -0,0 +1,24 @@ +foo.bar( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| foo.bar( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >-------- +0| foo.bar( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..9a937e7bf7 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +foo.bar(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| foo.bar(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| foo.bar(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.multiLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.multiLine.scope new file mode 100644 index 0000000000..52ce5e54b4 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.multiLine.scope @@ -0,0 +1,24 @@ +foo( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:4-3:0 + > +0| foo( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >---- +0| foo( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/java/argumentList/argumentList.actual.singleLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..d649112ab5 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| foo(aaa, bbb); + +[Domain] = 0:0-0:13 + >-------------< +0| foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList.formal.constructor3.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.empty.scope similarity index 100% rename from data/fixtures/scopes/java/argumentList.formal.constructor3.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.empty.scope diff --git a/data/fixtures/scopes/java/argumentList.formal.constructor2.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.multiLine.scope similarity index 69% rename from data/fixtures/scopes/java/argumentList.formal.constructor2.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.multiLine.scope index 835d5eb47e..7a54ce0cca 100644 --- a/data/fixtures/scopes/java/argumentList.formal.constructor2.scope +++ b/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.multiLine.scope @@ -1,7 +1,7 @@ public class MyClass { public MyClass( - String name, - int age + int aaa, + int bbb ) {} } --- @@ -10,16 +10,16 @@ public class MyClass { [Removal] = 1:19-4:4 > 1| public MyClass( -2| String name, -3| int age +2| int aaa, +3| int bbb 4| ) {} ----< [Domain] = 1:4-4:8 >--------------- 1| public MyClass( -2| String name, -3| int age +2| int aaa, +3| int bbb 4| ) {} --------< diff --git a/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.singleLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.singleLine.scope new file mode 100644 index 0000000000..123c220e8a --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.formal.constructor.singleLine.scope @@ -0,0 +1,15 @@ +public class MyClass { + public MyClass(String aaa, int bbb) {} +} +--- + +[Content] = +[Removal] = 1:19-1:38 + >-------------------< +1| public MyClass(String aaa, int bbb) {} + +[Domain] = 1:4-1:42 + >--------------------------------------< +1| public MyClass(String aaa, int bbb) {} + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/java/argumentList.formal.lambda3.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.empty.scope similarity index 100% rename from data/fixtures/scopes/java/argumentList.formal.lambda3.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.empty.scope diff --git a/data/fixtures/scopes/java/argumentList.formal.lambda2.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.multiLine.scope similarity index 100% rename from data/fixtures/scopes/java/argumentList.formal.lambda2.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.multiLine.scope diff --git a/data/fixtures/scopes/java/argumentList.formal.lambda.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.singleLine.scope similarity index 100% rename from data/fixtures/scopes/java/argumentList.formal.lambda.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.lambda.singleLine.scope diff --git a/data/fixtures/scopes/java/argumentList.formal.method3.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.method.empty.scope similarity index 100% rename from data/fixtures/scopes/java/argumentList.formal.method3.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.method.empty.scope diff --git a/data/fixtures/scopes/java/argumentList.formal.method2.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.method.multiLine.scope similarity index 69% rename from data/fixtures/scopes/java/argumentList.formal.method2.scope rename to data/fixtures/scopes/java/argumentList/argumentList.formal.method.multiLine.scope index 5df05519c9..9da0856aa5 100644 --- a/data/fixtures/scopes/java/argumentList.formal.method2.scope +++ b/data/fixtures/scopes/java/argumentList/argumentList.formal.method.multiLine.scope @@ -1,7 +1,7 @@ public class MyClass { public void foo( - String name, - int age + int aaa, + int bbb ) {} } --- @@ -10,16 +10,16 @@ public class MyClass { [Removal] = 1:20-4:4 > 1| public void foo( -2| String name, -3| int age +2| int aaa, +3| int bbb 4| ) {} ----< [Domain] = 1:4-4:8 >---------------- 1| public void foo( -2| String name, -3| int age +2| int aaa, +3| int bbb 4| ) {} --------< diff --git a/data/fixtures/scopes/java/argumentList/argumentList.formal.method.singleLine.scope b/data/fixtures/scopes/java/argumentList/argumentList.formal.method.singleLine.scope new file mode 100644 index 0000000000..150a8b0535 --- /dev/null +++ b/data/fixtures/scopes/java/argumentList/argumentList.formal.method.singleLine.scope @@ -0,0 +1,15 @@ +public class MyClass { + public void foo(int aaa, int bbb) {} +} +--- + +[Content] = +[Removal] = 1:20-1:36 + >----------------< +1| public void foo(int aaa, int bbb) {} + +[Domain] = 1:4-1:40 + >------------------------------------< +1| public void foo(int aaa, int bbb) {} + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/javascript.core/argument.actual.constructor.iteration.scope b/data/fixtures/scopes/javascript.core/argument.actual.constructor.iteration.scope index f03c77cbb8..170dda3d5e 100644 --- a/data/fixtures/scopes/javascript.core/argument.actual.constructor.iteration.scope +++ b/data/fixtures/scopes/javascript.core/argument.actual.constructor.iteration.scope @@ -1,10 +1,10 @@ -new Aaa(bbb, ccc) +new Foo(aaa, bbb) --- [Range] = 0:8-0:16 >--------< -0| new Aaa(bbb, ccc) +0| new Foo(aaa, bbb) [Domain] = 0:0-0:17 >-----------------< -0| new Aaa(bbb, ccc) +0| new Foo(aaa, bbb) diff --git a/data/fixtures/scopes/javascript.core/argument.actual.iteration.scope b/data/fixtures/scopes/javascript.core/argument.actual.iteration.scope index bfb1ec05fd..c6b7e07196 100644 --- a/data/fixtures/scopes/javascript.core/argument.actual.iteration.scope +++ b/data/fixtures/scopes/javascript.core/argument.actual.iteration.scope @@ -1,10 +1,10 @@ -aaa(bbb, ccc); +foo(aaa, bbb); --- [Range] = 0:4-0:12 >--------< -0| aaa(bbb, ccc); +0| foo(aaa, bbb); [Domain] = 0:0-0:13 >-------------< -0| aaa(bbb, ccc); +0| foo(aaa, bbb); diff --git a/data/fixtures/scopes/javascript.core/argument.actual.method.iteration.scope b/data/fixtures/scopes/javascript.core/argument.actual.method.iteration.scope index cb8b7e5f1f..b4fa962af8 100644 --- a/data/fixtures/scopes/javascript.core/argument.actual.method.iteration.scope +++ b/data/fixtures/scopes/javascript.core/argument.actual.method.iteration.scope @@ -1,10 +1,10 @@ -aaa.bbb(ccc, ddd); +foo.bar(aaa, bbb); --- [Range] = 0:8-0:16 >--------< -0| aaa.bbb(ccc, ddd); +0| foo.bar(aaa, bbb); [Domain] = 0:0-0:17 >-----------------< -0| aaa.bbb(ccc, ddd); +0| foo.bar(aaa, bbb); diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.empty.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.empty.scope new file mode 100644 index 0000000000..728f90d07c --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.empty.scope @@ -0,0 +1,13 @@ +new Foo(); +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| new Foo(); + +[Domain] = 0:0-0:9 + >---------< +0| new Foo(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.multiLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.multiLine.scope new file mode 100644 index 0000000000..1e75197cb8 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.multiLine.scope @@ -0,0 +1,24 @@ +new Foo( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| new Foo( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >-------- +0| new Foo( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.singleLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.singleLine.scope new file mode 100644 index 0000000000..b9964e4f92 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.constructor.singleLine.scope @@ -0,0 +1,13 @@ +new Foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| new Foo(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| new Foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.empty.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.empty.scope new file mode 100644 index 0000000000..539138bcb6 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +foo(); +--- + +[Content] = +[Removal] = 0:4-0:4 + >< +0| foo(); + +[Domain] = 0:0-0:5 + >-----< +0| foo(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.empty.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.empty.scope new file mode 100644 index 0000000000..91d34a15d7 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.empty.scope @@ -0,0 +1,13 @@ +foo.bar(); +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| foo.bar(); + +[Domain] = 0:0-0:9 + >---------< +0| foo.bar(); + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.multiLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.multiLine.scope new file mode 100644 index 0000000000..11b4a17bb1 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.multiLine.scope @@ -0,0 +1,24 @@ +foo.bar( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| foo.bar( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >-------- +0| foo.bar( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..9a937e7bf7 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +foo.bar(aaa, bbb); +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| foo.bar(aaa, bbb); + +[Domain] = 0:0-0:17 + >-----------------< +0| foo.bar(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.multiLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.multiLine.scope new file mode 100644 index 0000000000..52ce5e54b4 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.multiLine.scope @@ -0,0 +1,24 @@ +foo( + aaa, + bbb +); +--- + +[Content] = +[Removal] = 0:4-3:0 + > +0| foo( +1| aaa, +2| bbb +3| ); + < + +[Domain] = 0:0-3:1 + >---- +0| foo( +1| aaa, +2| bbb +3| ); + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.singleLine.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..d649112ab5 --- /dev/null +++ b/data/fixtures/scopes/javascript.core/argumentList/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +foo(aaa, bbb); +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| foo(aaa, bbb); + +[Domain] = 0:0-0:13 + >-------------< +0| foo(aaa, bbb); + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.constructor3.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.empty.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.constructor3.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.empty.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.constructor2.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.multiLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.constructor2.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.multiLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.constructor.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.singleLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.constructor.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.constructor.singleLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal3.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.empty.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal3.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.empty.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda3.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.empty.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda3.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.empty.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda6.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.empty2.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda6.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.empty2.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda2.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.multiLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda2.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.multiLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda5.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.multiLine2.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda5.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.multiLine2.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.singleLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.singleLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.lambda4.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.singleLine2.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.lambda4.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.lambda.singleLine2.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.method3.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.empty.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.method3.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.empty.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.method2.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.multiLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.method2.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.multiLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.method.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.singleLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.method.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.method.singleLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal2.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.multiLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal2.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.multiLine.scope diff --git a/data/fixtures/scopes/javascript.core/argumentList.formal.scope b/data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.singleLine.scope similarity index 100% rename from data/fixtures/scopes/javascript.core/argumentList.formal.scope rename to data/fixtures/scopes/javascript.core/argumentList/argumentList.formal.singleLine.scope diff --git a/data/fixtures/scopes/python/argumentList.actual.constructor.empty.scope b/data/fixtures/scopes/python/argumentList.actual.constructor.empty.scope new file mode 100644 index 0000000000..58e2245d03 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.constructor.empty.scope @@ -0,0 +1,13 @@ +Foo() +--- + +[Content] = +[Removal] = 0:4-0:4 + >< +0| Foo() + +[Domain] = 0:0-0:5 + >-----< +0| Foo() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/python/argumentList.actual.constructor.multiLine.scope b/data/fixtures/scopes/python/argumentList.actual.constructor.multiLine.scope new file mode 100644 index 0000000000..619899cf0e --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.constructor.multiLine.scope @@ -0,0 +1,24 @@ +Foo( + aaa, + bbb +) +--- + +[Content] = +[Removal] = 0:4-3:0 + > +0| Foo( +1| aaa, +2| bbb +3| ) + < + +[Domain] = 0:0-3:1 + >---- +0| Foo( +1| aaa, +2| bbb +3| ) + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/python/argumentList.actual.constructor.singleLine.scope b/data/fixtures/scopes/python/argumentList.actual.constructor.singleLine.scope new file mode 100644 index 0000000000..77680199f4 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.constructor.singleLine.scope @@ -0,0 +1,13 @@ +Foo(aaa, bbb) +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| Foo(aaa, bbb) + +[Domain] = 0:0-0:13 + >-------------< +0| Foo(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.actual.empty.scope b/data/fixtures/scopes/python/argumentList.actual.empty.scope new file mode 100644 index 0000000000..947915ef96 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +foo() +--- + +[Content] = +[Removal] = 0:4-0:4 + >< +0| foo() + +[Domain] = 0:0-0:5 + >-----< +0| foo() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/python/argumentList.actual.method.empty.scope b/data/fixtures/scopes/python/argumentList.actual.method.empty.scope new file mode 100644 index 0000000000..ed61422204 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.method.empty.scope @@ -0,0 +1,13 @@ +foo.bar() +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| foo.bar() + +[Domain] = 0:0-0:9 + >---------< +0| foo.bar() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/python/argumentList.actual.method.multiLine.scope b/data/fixtures/scopes/python/argumentList.actual.method.multiLine.scope new file mode 100644 index 0000000000..7ce467aedb --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.method.multiLine.scope @@ -0,0 +1,24 @@ +foo.bar( + aaa, + bbb +) +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| foo.bar( +1| aaa, +2| bbb +3| ) + < + +[Domain] = 0:0-3:1 + >-------- +0| foo.bar( +1| aaa, +2| bbb +3| ) + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/python/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/python/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..69cf068256 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +foo.bar(aaa, bbb) +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| foo.bar(aaa, bbb) + +[Domain] = 0:0-0:17 + >-----------------< +0| foo.bar(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.actual.multiLine.scope b/data/fixtures/scopes/python/argumentList.actual.multiLine.scope new file mode 100644 index 0000000000..b297b5b686 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.multiLine.scope @@ -0,0 +1,24 @@ +foo( + aaa, + bbb +) +--- + +[Content] = +[Removal] = 0:4-3:0 + > +0| foo( +1| aaa, +2| bbb +3| ) + < + +[Domain] = 0:0-3:1 + >---- +0| foo( +1| aaa, +2| bbb +3| ) + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/python/argumentList.actual.singleLine.scope b/data/fixtures/scopes/python/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..f0de18dd5d --- /dev/null +++ b/data/fixtures/scopes/python/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +foo(aaa, bbb) +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| foo(aaa, bbb) + +[Domain] = 0:0-0:13 + >-------------< +0| foo(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.formal.lambda.scope b/data/fixtures/scopes/python/argumentList.formal.lambda.scope deleted file mode 100644 index d00cbcf3f0..0000000000 --- a/data/fixtures/scopes/python/argumentList.formal.lambda.scope +++ /dev/null @@ -1,20 +0,0 @@ -lambda a, b: pass ---- - -[Content] = 0:7-0:11 - >----< -0| lambda a, b: pass - -[Removal] = 0:6-0:11 - >-----< -0| lambda a, b: pass - -[Leading delimiter] = 0:6-0:7 - >-< -0| lambda a, b: pass - -[Domain] = 0:0-0:17 - >-----------------< -0| lambda a, b: pass - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.formal.scope b/data/fixtures/scopes/python/argumentList.formal.scope deleted file mode 100644 index 689577d9ac..0000000000 --- a/data/fixtures/scopes/python/argumentList.formal.scope +++ /dev/null @@ -1,16 +0,0 @@ -def for(name: str, value: int): - pass ---- - -[Content] = -[Removal] = 0:8-0:29 - >---------------------< -0| def for(name: str, value: int): - -[Domain] = 0:0-1:8 - >------------------------------- -0| def for(name: str, value: int): -1| pass - --------< - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.formal.constructor3.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.empty.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.constructor3.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.empty.scope diff --git a/data/fixtures/scopes/python/argumentList.formal.constructor2.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.multiLine.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.constructor2.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.multiLine.scope diff --git a/data/fixtures/scopes/python/argumentList.formal.constructor.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.singleLine.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.constructor.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.constructor.singleLine.scope diff --git a/data/fixtures/scopes/python/argumentList.formal3.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.empty.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal3.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.empty.scope diff --git a/data/fixtures/scopes/python/argumentList.formal.lambda2.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.lambda.empty.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.lambda2.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.lambda.empty.scope diff --git a/data/fixtures/scopes/python/argumentList/argumentList.formal.lambda.singleLine.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.lambda.singleLine.scope new file mode 100644 index 0000000000..81735d95d0 --- /dev/null +++ b/data/fixtures/scopes/python/argumentList/argumentList.formal.lambda.singleLine.scope @@ -0,0 +1,20 @@ +lambda aaa, bbb: pass +--- + +[Content] = 0:7-0:15 + >--------< +0| lambda aaa, bbb: pass + +[Removal] = 0:6-0:15 + >---------< +0| lambda aaa, bbb: pass + +[Leading delimiter] = 0:6-0:7 + >-< +0| lambda aaa, bbb: pass + +[Domain] = 0:0-0:21 + >---------------------< +0| lambda aaa, bbb: pass + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/python/argumentList.formal.method3.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.method.empty.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.method3.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.method.empty.scope diff --git a/data/fixtures/scopes/python/argumentList.formal.method2.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.method.multiLine.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.method2.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.method.multiLine.scope diff --git a/data/fixtures/scopes/python/argumentList.formal.method.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.method.singleLine.scope similarity index 100% rename from data/fixtures/scopes/python/argumentList.formal.method.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.method.singleLine.scope diff --git a/data/fixtures/scopes/python/argumentList.formal2.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.multiLine.scope similarity index 67% rename from data/fixtures/scopes/python/argumentList.formal2.scope rename to data/fixtures/scopes/python/argumentList/argumentList.formal.multiLine.scope index 34dce296ee..57c31fa7b9 100644 --- a/data/fixtures/scopes/python/argumentList.formal2.scope +++ b/data/fixtures/scopes/python/argumentList/argumentList.formal.multiLine.scope @@ -1,6 +1,6 @@ def foo( - aaa, - bbb, + aaa: str, + bbb: int, ): pass --- @@ -9,16 +9,16 @@ def foo( [Removal] = 0:8-3:0 > 0| def foo( -1| aaa, -2| bbb, +1| aaa: str, +2| bbb: int, 3| ): < [Domain] = 0:0-4:8 >-------- 0| def foo( -1| aaa, -2| bbb, +1| aaa: str, +2| bbb: int, 3| ): 4| pass --------< diff --git a/data/fixtures/scopes/python/argumentList/argumentList.formal.singleLine.scope b/data/fixtures/scopes/python/argumentList/argumentList.formal.singleLine.scope new file mode 100644 index 0000000000..a0140576dc --- /dev/null +++ b/data/fixtures/scopes/python/argumentList/argumentList.formal.singleLine.scope @@ -0,0 +1,16 @@ +def for(aaa: str, bbb: int): + pass +--- + +[Content] = +[Removal] = 0:8-0:26 + >------------------< +0| def for(aaa: str, bbb: int): + +[Domain] = 0:0-1:8 + >---------------------------- +0| def for(aaa: str, bbb: int): +1| pass + --------< + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList.formal.scope b/data/fixtures/scopes/r/argumentList.formal.scope deleted file mode 100644 index a55b49dcf5..0000000000 --- a/data/fixtures/scopes/r/argumentList.formal.scope +++ /dev/null @@ -1,13 +0,0 @@ -abc <- function(x, y){ } ---- - -[Content] = -[Removal] = 0:16-0:20 - >----< -0| abc <- function(x, y){ } - -[Domain] = 0:0-0:24 - >------------------------< -0| abc <- function(x, y){ } - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList.formal2.scope b/data/fixtures/scopes/r/argumentList.formal2.scope deleted file mode 100644 index c0d8725dee..0000000000 --- a/data/fixtures/scopes/r/argumentList.formal2.scope +++ /dev/null @@ -1,13 +0,0 @@ -abc <- function(){ } ---- - -[Content] = -[Removal] = 0:16-0:16 - >< -0| abc <- function(){ } - -[Domain] = 0:0-0:20 - >--------------------< -0| abc <- function(){ } - -[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/r/argumentList.formal4.scope b/data/fixtures/scopes/r/argumentList.formal4.scope deleted file mode 100644 index 645eaf49a0..0000000000 --- a/data/fixtures/scopes/r/argumentList.formal4.scope +++ /dev/null @@ -1,13 +0,0 @@ -function(x, y){ } ---- - -[Content] = -[Removal] = 0:9-0:13 - >----< -0| function(x, y){ } - -[Domain] = 0:0-0:17 - >-----------------< -0| function(x, y){ } - -[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.empty.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.empty.scope new file mode 100644 index 0000000000..947915ef96 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +foo() +--- + +[Content] = +[Removal] = 0:4-0:4 + >< +0| foo() + +[Domain] = 0:0-0:5 + >-----< +0| foo() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.method.empty.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.empty.scope new file mode 100644 index 0000000000..ed61422204 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.empty.scope @@ -0,0 +1,13 @@ +foo.bar() +--- + +[Content] = +[Removal] = 0:8-0:8 + >< +0| foo.bar() + +[Domain] = 0:0-0:9 + >---------< +0| foo.bar() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.method.multiLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.multiLine.scope new file mode 100644 index 0000000000..7ce467aedb --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.multiLine.scope @@ -0,0 +1,24 @@ +foo.bar( + aaa, + bbb +) +--- + +[Content] = +[Removal] = 0:8-3:0 + > +0| foo.bar( +1| aaa, +2| bbb +3| ) + < + +[Domain] = 0:0-3:1 + >-------- +0| foo.bar( +1| aaa, +2| bbb +3| ) + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..69cf068256 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +foo.bar(aaa, bbb) +--- + +[Content] = +[Removal] = 0:8-0:16 + >--------< +0| foo.bar(aaa, bbb) + +[Domain] = 0:0-0:17 + >-----------------< +0| foo.bar(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.multiLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.multiLine.scope new file mode 100644 index 0000000000..b297b5b686 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.multiLine.scope @@ -0,0 +1,24 @@ +foo( + aaa, + bbb +) +--- + +[Content] = +[Removal] = 0:4-3:0 + > +0| foo( +1| aaa, +2| bbb +3| ) + < + +[Domain] = 0:0-3:1 + >---- +0| foo( +1| aaa, +2| bbb +3| ) + -< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.actual.singleLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..f0de18dd5d --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +foo(aaa, bbb) +--- + +[Content] = +[Removal] = 0:4-0:12 + >--------< +0| foo(aaa, bbb) + +[Domain] = 0:0-0:13 + >-------------< +0| foo(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList/argumentList.formal.empty.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.empty.scope new file mode 100644 index 0000000000..b4f4ae643a --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.empty.scope @@ -0,0 +1,13 @@ +abc <- function() { } +--- + +[Content] = +[Removal] = 0:16-0:16 + >< +0| abc <- function() { } + +[Domain] = 0:0-0:21 + >---------------------< +0| abc <- function() { } + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.empty.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.empty.scope new file mode 100644 index 0000000000..355a4e9306 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.empty.scope @@ -0,0 +1,13 @@ +function() { } +--- + +[Content] = +[Removal] = 0:9-0:9 + >< +0| function() { } + +[Domain] = 0:0-0:14 + >--------------< +0| function() { } + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.multiLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.multiLine.scope new file mode 100644 index 0000000000..c92432b568 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.multiLine.scope @@ -0,0 +1,24 @@ +function( + aaa, + bbb +) { } +--- + +[Content] = +[Removal] = 0:9-3:0 + > +0| function( +1| aaa, +2| bbb +3| ) { } + < + +[Domain] = 0:0-3:5 + >--------- +0| function( +1| aaa, +2| bbb +3| ) { } + -----< + +[Insertion delimiter] = ",\n" diff --git a/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.singleLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.singleLine.scope new file mode 100644 index 0000000000..3ba0a4b729 --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.lambda.singleLine.scope @@ -0,0 +1,13 @@ +function(aaa, bbb) { } +--- + +[Content] = +[Removal] = 0:9-0:17 + >--------< +0| function(aaa, bbb) { } + +[Domain] = 0:0-0:22 + >----------------------< +0| function(aaa, bbb) { } + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/r/argumentList.formal3.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.multiLine.scope similarity index 77% rename from data/fixtures/scopes/r/argumentList.formal3.scope rename to data/fixtures/scopes/r/argumentList/argumentList.formal.multiLine.scope index 2d5f7e7f3b..3ef33ca2f3 100644 --- a/data/fixtures/scopes/r/argumentList.formal3.scope +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.multiLine.scope @@ -1,6 +1,6 @@ abc <- function( - x, - y + aaa, + bbb ){ } --- @@ -9,16 +9,16 @@ abc <- function( [Removal] = 0:16-3:0 > 0| abc <- function( -1| x, -2| y +1| aaa, +2| bbb 3| ){ < [Domain] = 0:0-4:1 >---------------- 0| abc <- function( -1| x, -2| y +1| aaa, +2| bbb 3| ){ 4| } -< diff --git a/data/fixtures/scopes/r/argumentList/argumentList.formal.singleLine.scope b/data/fixtures/scopes/r/argumentList/argumentList.formal.singleLine.scope new file mode 100644 index 0000000000..fde348053b --- /dev/null +++ b/data/fixtures/scopes/r/argumentList/argumentList.formal.singleLine.scope @@ -0,0 +1,13 @@ +abc <- function(aaa, bbb) { } +--- + +[Content] = +[Removal] = 0:16-0:24 + >--------< +0| abc <- function(aaa, bbb) { } + +[Domain] = 0:0-0:29 + >-----------------------------< +0| abc <- function(aaa, bbb) { } + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/scm/argument.actual.iteration.scope b/data/fixtures/scopes/scm/argument.actual.iteration.scope index 6c7217cc2b..3c98fddf20 100644 --- a/data/fixtures/scopes/scm/argument.actual.iteration.scope +++ b/data/fixtures/scopes/scm/argument.actual.iteration.scope @@ -1,10 +1,10 @@ -(#not-parent-type? @statement variable_declaration) +(#foo? @aaa bbb) --- -[Range] = 0:19-0:50 - >-------------------------------< -0| (#not-parent-type? @statement variable_declaration) +[Range] = 0:7-0:15 + >--------< +0| (#foo? @aaa bbb) -[Domain] = 0:0-0:51 - >---------------------------------------------------< -0| (#not-parent-type? @statement variable_declaration) +[Domain] = 0:0-0:16 + >----------------< +0| (#foo? @aaa bbb) diff --git a/data/fixtures/scopes/scm/argument.actual.scope b/data/fixtures/scopes/scm/argument.actual.scope index 294ac53f40..802cf1f7a2 100644 --- a/data/fixtures/scopes/scm/argument.actual.scope +++ b/data/fixtures/scopes/scm/argument.actual.scope @@ -1,37 +1,37 @@ -(#not-parent-type? @statement variable_declaration) +(#foo? @aaa bbb) --- [#1 Content] = -[#1 Domain] = 0:19-0:29 - >----------< -0| (#not-parent-type? @statement variable_declaration) +[#1 Domain] = 0:7-0:11 + >----< +0| (#foo? @aaa bbb) -[#1 Removal] = 0:19-0:30 - >-----------< -0| (#not-parent-type? @statement variable_declaration) +[#1 Removal] = 0:7-0:12 + >-----< +0| (#foo? @aaa bbb) -[#1 Leading delimiter] = 0:18-0:19 - >-< -0| (#not-parent-type? @statement variable_declaration) +[#1 Leading delimiter] = 0:6-0:7 + >-< +0| (#foo? @aaa bbb) -[#1 Trailing delimiter] = 0:29-0:30 - >-< -0| (#not-parent-type? @statement variable_declaration) +[#1 Trailing delimiter] = 0:11-0:12 + >-< +0| (#foo? @aaa bbb) [#1 Insertion delimiter] = " " [#2 Content] = -[#2 Domain] = 0:30-0:50 - >--------------------< -0| (#not-parent-type? @statement variable_declaration) +[#2 Domain] = 0:12-0:15 + >---< +0| (#foo? @aaa bbb) -[#2 Removal] = 0:29-0:50 - >---------------------< -0| (#not-parent-type? @statement variable_declaration) +[#2 Removal] = 0:11-0:15 + >----< +0| (#foo? @aaa bbb) -[#2 Leading delimiter] = 0:29-0:30 - >-< -0| (#not-parent-type? @statement variable_declaration) +[#2 Leading delimiter] = 0:11-0:12 + >-< +0| (#foo? @aaa bbb) [#2 Insertion delimiter] = " " diff --git a/data/fixtures/scopes/scm/argumentList.actual.empty.scope b/data/fixtures/scopes/scm/argumentList.actual.empty.scope new file mode 100644 index 0000000000..78471b5ae0 --- /dev/null +++ b/data/fixtures/scopes/scm/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +(#foo?) +--- + +[Content] = +[Removal] = 0:6-0:6 + >< +0| (#foo?) + +[Domain] = 0:0-0:7 + >-------< +0| (#foo?) + +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/scm/argumentList.actual.multiLine.scope b/data/fixtures/scopes/scm/argumentList.actual.multiLine.scope new file mode 100644 index 0000000000..4d20f0a3ab --- /dev/null +++ b/data/fixtures/scopes/scm/argumentList.actual.multiLine.scope @@ -0,0 +1,32 @@ +(#foo? + @aaa + bbb +) +--- + +[Content] = 1:4-2:7 + >---- +1| @aaa +2| bbb + -------< + +[Removal] = 1:0-3:0 + >-------- +1| @aaa +2| bbb +3| ) + < + +[Leading delimiter] = 1:0-1:4 + >----< +1| @aaa + +[Domain] = 0:0-3:1 + >------ +0| (#foo? +1| @aaa +2| bbb +3| ) + -< + +[Insertion delimiter] = "\n" diff --git a/data/fixtures/scopes/scm/argumentList.actual.singleLine.scope b/data/fixtures/scopes/scm/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..5def395bfa --- /dev/null +++ b/data/fixtures/scopes/scm/argumentList.actual.singleLine.scope @@ -0,0 +1,20 @@ +(#foo? @aaa bbb) +--- + +[Content] = 0:7-0:15 + >--------< +0| (#foo? @aaa bbb) + +[Removal] = 0:6-0:15 + >---------< +0| (#foo? @aaa bbb) + +[Leading delimiter] = 0:6-0:7 + >-< +0| (#foo? @aaa bbb) + +[Domain] = 0:0-0:16 + >----------------< +0| (#foo? @aaa bbb) + +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/talon/argumentList.actual.empty.scope b/data/fixtures/scopes/talon/argumentList.actual.empty.scope new file mode 100644 index 0000000000..70a9d7299b --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.empty.scope @@ -0,0 +1,13 @@ +command: foo() +--- + +[Content] = +[Removal] = 0:13-0:13 + >< +0| command: foo() + +[Domain] = 0:9-0:14 + >-----< +0| command: foo() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/talon/argumentList.actual.method.empty.scope b/data/fixtures/scopes/talon/argumentList.actual.method.empty.scope new file mode 100644 index 0000000000..e72965bde8 --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.method.empty.scope @@ -0,0 +1,13 @@ +command: user.foo() +--- + +[Content] = +[Removal] = 0:18-0:18 + >< +0| command: user.foo() + +[Domain] = 0:9-0:19 + >----------< +0| command: user.foo() + +[Insertion delimiter] = "" diff --git a/data/fixtures/scopes/talon/argumentList.actual.method.singleLine.scope b/data/fixtures/scopes/talon/argumentList.actual.method.singleLine.scope new file mode 100644 index 0000000000..a207ef158f --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.method.singleLine.scope @@ -0,0 +1,13 @@ +command: user.foo(aaa, bbb) +--- + +[Content] = +[Removal] = 0:18-0:26 + >--------< +0| command: user.foo(aaa, bbb) + +[Domain] = 0:9-0:27 + >------------------< +0| command: user.foo(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/talon/argumentList.actual.singleLine.scope b/data/fixtures/scopes/talon/argumentList.actual.singleLine.scope new file mode 100644 index 0000000000..27673f9f3f --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.singleLine.scope @@ -0,0 +1,13 @@ +command: foo(aaa, bbb) +--- + +[Content] = +[Removal] = 0:13-0:21 + >--------< +0| command: foo(aaa, bbb) + +[Domain] = 0:9-0:22 + >-------------< +0| command: foo(aaa, bbb) + +[Insertion delimiter] = ", " diff --git a/data/fixtures/scopes/talon/argumentList.actual.singleLine2.scope b/data/fixtures/scopes/talon/argumentList.actual.singleLine2.scope new file mode 100644 index 0000000000..4fca57979e --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.singleLine2.scope @@ -0,0 +1,13 @@ +command: key(enter) +--- + +[Content] = +[Removal] = 0:13-0:18 + >-----< +0| command: key(enter) + +[Domain] = 0:9-0:19 + >----------< +0| command: key(enter) + +[Insertion delimiter] = " " diff --git a/data/fixtures/scopes/talon/argumentList.actual.singleLine3.scope b/data/fixtures/scopes/talon/argumentList.actual.singleLine3.scope new file mode 100644 index 0000000000..d1f822054c --- /dev/null +++ b/data/fixtures/scopes/talon/argumentList.actual.singleLine3.scope @@ -0,0 +1,13 @@ +command: sleep(100ms) +--- + +[Content] = +[Removal] = 0:15-0:20 + >-----< +0| command: sleep(100ms) + +[Domain] = 0:9-0:21 + >------------< +0| command: sleep(100ms) + +[Insertion delimiter] = " " diff --git a/packages/common/src/scopeSupportFacets/csharp.ts b/packages/common/src/scopeSupportFacets/csharp.ts index fd995bd186..be75bf962a 100644 --- a/packages/common/src/scopeSupportFacets/csharp.ts +++ b/packages/common/src/scopeSupportFacets/csharp.ts @@ -108,13 +108,28 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = { "key.mapPair": supported, "key.mapPair.iteration": supported, - "argumentList.actual": supported, - "argumentList.actual.constructor": supported, - "argumentList.actual.method": supported, - "argumentList.formal": supported, - "argumentList.formal.lambda": supported, - "argumentList.formal.constructor": supported, - "argumentList.formal.method": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "argumentList.actual.method.multiLine": supported, + "argumentList.actual.constructor.empty": supported, + "argumentList.actual.constructor.singleLine": supported, + "argumentList.actual.constructor.multiLine": supported, + + "argumentList.formal.empty": supported, + "argumentList.formal.singleLine": supported, + "argumentList.formal.multiLine": supported, + "argumentList.formal.lambda.empty": supported, + "argumentList.formal.lambda.singleLine": supported, + "argumentList.formal.lambda.multiLine": supported, + "argumentList.formal.method.empty": supported, + "argumentList.formal.method.singleLine": supported, + "argumentList.formal.method.multiLine": supported, + "argumentList.formal.constructor.empty": supported, + "argumentList.formal.constructor.singleLine": supported, + "argumentList.formal.constructor.multiLine": supported, "argument.actual": supported, "argument.actual.iteration": supported, diff --git a/packages/common/src/scopeSupportFacets/css.ts b/packages/common/src/scopeSupportFacets/css.ts index fcfab62bc4..50dee083e0 100644 --- a/packages/common/src/scopeSupportFacets/css.ts +++ b/packages/common/src/scopeSupportFacets/css.ts @@ -15,6 +15,9 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = { "argument.actual": supported, "argument.actual.iteration": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "name.iteration.document": supported, "name.iteration.block": supported, @@ -48,10 +51,25 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if.iteration": notApplicable, "branch.if": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/html.ts b/packages/common/src/scopeSupportFacets/html.ts index e2f403e84c..010990d29c 100644 --- a/packages/common/src/scopeSupportFacets/html.ts +++ b/packages/common/src/scopeSupportFacets/html.ts @@ -34,10 +34,27 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.empty": notApplicable, + "argumentList.actual.singleLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, "branch.if.iteration": notApplicable, "branch.if": notApplicable, "branch.loop": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/java.ts b/packages/common/src/scopeSupportFacets/java.ts index e444156853..6f22ce47b1 100644 --- a/packages/common/src/scopeSupportFacets/java.ts +++ b/packages/common/src/scopeSupportFacets/java.ts @@ -22,9 +22,24 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.lambda": supported, "argument.formal.lambda.iteration": supported, - "argumentList.formal.method": supported, - "argumentList.formal.constructor": supported, - "argumentList.formal.lambda": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "argumentList.actual.method.multiLine": supported, + "argumentList.actual.constructor.empty": supported, + "argumentList.actual.constructor.singleLine": supported, + "argumentList.actual.constructor.multiLine": supported, + "argumentList.formal.lambda.empty": supported, + "argumentList.formal.lambda.singleLine": supported, + "argumentList.formal.lambda.multiLine": supported, + "argumentList.formal.method.empty": supported, + "argumentList.formal.method.singleLine": supported, + "argumentList.formal.method.multiLine": supported, + "argumentList.formal.constructor.empty": supported, + "argumentList.formal.constructor.singleLine": supported, + "argumentList.formal.constructor.multiLine": supported, "collectionItem.unenclosed": supported, "collectionItem.unenclosed.iteration": supported, @@ -145,7 +160,9 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal": notApplicable, "argument.formal.iteration": notApplicable, - "argumentList.formal": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, "name.assignment.pattern": notApplicable, "name.argument.actual": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/javascript.ts b/packages/common/src/scopeSupportFacets/javascript.ts index 203a5db9d6..74cef5dd4b 100644 --- a/packages/common/src/scopeSupportFacets/javascript.ts +++ b/packages/common/src/scopeSupportFacets/javascript.ts @@ -68,10 +68,27 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.lambda": supported, "argument.formal.lambda.iteration": supported, - "argumentList.formal": supported, - "argumentList.formal.method": supported, - "argumentList.formal.constructor": supported, - "argumentList.formal.lambda": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "argumentList.actual.method.multiLine": supported, + "argumentList.actual.constructor.empty": supported, + "argumentList.actual.constructor.singleLine": supported, + "argumentList.actual.constructor.multiLine": supported, + "argumentList.formal.empty": supported, + "argumentList.formal.singleLine": supported, + "argumentList.formal.multiLine": supported, + "argumentList.formal.lambda.empty": supported, + "argumentList.formal.lambda.singleLine": supported, + "argumentList.formal.lambda.multiLine": supported, + "argumentList.formal.method.empty": supported, + "argumentList.formal.method.singleLine": supported, + "argumentList.formal.method.multiLine": supported, + "argumentList.formal.constructor.empty": supported, + "argumentList.formal.constructor.singleLine": supported, + "argumentList.formal.constructor.multiLine": supported, "comment.line": supported, "comment.block": supported, diff --git a/packages/common/src/scopeSupportFacets/json.ts b/packages/common/src/scopeSupportFacets/json.ts index 258519a628..2f3bdd55d0 100644 --- a/packages/common/src/scopeSupportFacets/json.ts +++ b/packages/common/src/scopeSupportFacets/json.ts @@ -38,10 +38,27 @@ export const jsonScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.empty": notApplicable, + "argumentList.actual.singleLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/markdown.ts b/packages/common/src/scopeSupportFacets/markdown.ts index 7dc7078e73..b597435271 100644 --- a/packages/common/src/scopeSupportFacets/markdown.ts +++ b/packages/common/src/scopeSupportFacets/markdown.ts @@ -34,10 +34,27 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.empty": notApplicable, + "argumentList.actual.singleLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/python.ts b/packages/common/src/scopeSupportFacets/python.ts index 80bf1e6f6b..e99ff5eb3b 100644 --- a/packages/common/src/scopeSupportFacets/python.ts +++ b/packages/common/src/scopeSupportFacets/python.ts @@ -90,10 +90,26 @@ export const pythonScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.lambda": supported, "argument.formal.lambda.iteration": supported, - "argumentList.formal": supported, - "argumentList.formal.method": supported, - "argumentList.formal.constructor": supported, - "argumentList.formal.lambda": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "argumentList.actual.method.multiLine": supported, + "argumentList.actual.constructor.empty": supported, + "argumentList.actual.constructor.singleLine": supported, + "argumentList.actual.constructor.multiLine": supported, + "argumentList.formal.empty": supported, + "argumentList.formal.singleLine": supported, + "argumentList.formal.multiLine": supported, + "argumentList.formal.lambda.empty": supported, + "argumentList.formal.lambda.singleLine": supported, + "argumentList.formal.method.empty": supported, + "argumentList.formal.method.singleLine": supported, + "argumentList.formal.method.multiLine": supported, + "argumentList.formal.constructor.empty": supported, + "argumentList.formal.constructor.singleLine": supported, + "argumentList.formal.constructor.multiLine": supported, "collectionItem.unenclosed": supported, "collectionItem.unenclosed.iteration": supported, @@ -163,6 +179,7 @@ export const pythonScopeSupport: LanguageScopeSupportFacetMap = { // Not applicable + "argumentList.formal.lambda.multiLine": notApplicable, "class.iteration.block": notApplicable, "className.iteration.block": notApplicable, "comment.block": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/r.ts b/packages/common/src/scopeSupportFacets/r.ts index 273ace97f4..d6b6f64318 100644 --- a/packages/common/src/scopeSupportFacets/r.ts +++ b/packages/common/src/scopeSupportFacets/r.ts @@ -6,10 +6,23 @@ const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; export const rScopeSupport: LanguageScopeSupportFacetMap = { anonymousFunction: supported, "argument.actual": supported, - "argument.formal": supported, - "argumentList.formal": supported, "argument.actual.iteration": supported, + "argument.formal": supported, "argument.formal.iteration": supported, + + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "argumentList.actual.method.multiLine": supported, + "argumentList.formal.empty": supported, + "argumentList.formal.singleLine": supported, + "argumentList.formal.multiLine": supported, + "argumentList.formal.lambda.empty": supported, + "argumentList.formal.lambda.singleLine": supported, + "argumentList.formal.lambda.multiLine": supported, + "comment.line": supported, functionCall: supported, functionCallee: supported, diff --git a/packages/common/src/scopeSupportFacets/scm.ts b/packages/common/src/scopeSupportFacets/scm.ts index 4c2913a82a..3eabe723d0 100644 --- a/packages/common/src/scopeSupportFacets/scm.ts +++ b/packages/common/src/scopeSupportFacets/scm.ts @@ -5,16 +5,22 @@ const { supported, notApplicable } = ScopeSupportFacetLevel; export const scmScopeSupport: LanguageScopeSupportFacetMap = { statement: supported, + list: supported, "argument.actual": supported, "argument.actual.iteration": supported, - "comment.line": supported, + + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.multiLine": supported, + functionCall: supported, functionCallee: supported, + "string.singleLine": supported, + "comment.line": supported, "textFragment.comment.line": supported, "textFragment.string.singleLine": supported, - list: supported, // Not applicable @@ -31,10 +37,24 @@ export const scmScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/scopeSupportFacetInfos.ts b/packages/common/src/scopeSupportFacets/scopeSupportFacetInfos.ts index 43d3c062cd..8da6177320 100644 --- a/packages/common/src/scopeSupportFacets/scopeSupportFacetInfos.ts +++ b/packages/common/src/scopeSupportFacets/scopeSupportFacetInfos.ts @@ -282,33 +282,114 @@ export const scopeSupportFacetInfos: Record< isIteration: true, }, - "argumentList.actual": { - description: "A list of arguments in a function call", + "argumentList.actual.empty": { + description: "An empty list of arguments in a function call", scopeType: "argumentList", + insertionDelimiterHint: '""', }, - "argumentList.actual.method": { - description: "A list of arguments in a class method call", + "argumentList.actual.singleLine": { + description: "A single line list of arguments in a function call", scopeType: "argumentList", + insertionDelimiterHint: '", "', }, - "argumentList.actual.constructor": { - description: "A list of arguments in a constructor call", + "argumentList.actual.multiLine": { + description: "A multi line list of arguments in a function call", scopeType: "argumentList", + insertionDelimiterHint: '",\n"', }, - "argumentList.formal": { - description: "A list of parameters in a function declaration", + "argumentList.actual.method.empty": { + description: "An empty list of arguments in a method call", scopeType: "argumentList", + insertionDelimiterHint: '""', }, - "argumentList.formal.method": { - description: "A list of parameters in a class method declaration", + "argumentList.actual.method.singleLine": { + description: "A single line list of arguments in a method call", scopeType: "argumentList", + insertionDelimiterHint: '", "', }, - "argumentList.formal.constructor": { - description: "A list of parameters in a constructor declaration", + "argumentList.actual.method.multiLine": { + description: "A multi line list of arguments in a method call", scopeType: "argumentList", + insertionDelimiterHint: '",\n"', }, - "argumentList.formal.lambda": { - description: "A list of parameters in a lambda declaration", + "argumentList.actual.constructor.empty": { + description: "An empty list of arguments in a constructor call", scopeType: "argumentList", + insertionDelimiterHint: '""', + }, + "argumentList.actual.constructor.singleLine": { + description: "A single line list of arguments in a constructor call", + scopeType: "argumentList", + insertionDelimiterHint: '", "', + }, + "argumentList.actual.constructor.multiLine": { + description: "A multi line list of arguments in a constructor call", + scopeType: "argumentList", + insertionDelimiterHint: '",\n"', + }, + + "argumentList.formal.empty": { + description: "An empty list of parameters in a function declaration", + scopeType: "argumentList", + insertionDelimiterHint: '""', + }, + "argumentList.formal.singleLine": { + description: "A single line list of parameters in a function declaration", + scopeType: "argumentList", + insertionDelimiterHint: '", "', + }, + "argumentList.formal.multiLine": { + description: "A multi line list of parameters in a function declaration", + scopeType: "argumentList", + insertionDelimiterHint: '",\n"', + }, + "argumentList.formal.lambda.empty": { + description: "An empty list of parameters in a lambda declaration", + scopeType: "argumentList", + insertionDelimiterHint: '""', + }, + "argumentList.formal.lambda.singleLine": { + description: "A single line list of parameters in a lambda declaration", + scopeType: "argumentList", + insertionDelimiterHint: '", "', + }, + "argumentList.formal.lambda.multiLine": { + description: "A multi line list of parameters in a lambda declaration", + scopeType: "argumentList", + insertionDelimiterHint: '",\n"', + }, + "argumentList.formal.method.empty": { + description: "An empty list of parameters in a class method declaration", + scopeType: "argumentList", + insertionDelimiterHint: '""', + }, + "argumentList.formal.method.singleLine": { + description: + "A single line list of parameters in a class method declaration", + scopeType: "argumentList", + insertionDelimiterHint: '", "', + }, + "argumentList.formal.method.multiLine": { + description: + "A multi line list of parameters in a class method declaration", + scopeType: "argumentList", + insertionDelimiterHint: '",\n"', + }, + "argumentList.formal.constructor.empty": { + description: "An empty list of parameters in a constructor declaration", + scopeType: "argumentList", + insertionDelimiterHint: '""', + }, + "argumentList.formal.constructor.singleLine": { + description: + "A single line list of parameters in a constructor declaration", + scopeType: "argumentList", + insertionDelimiterHint: '", "', + }, + "argumentList.formal.constructor.multiLine": { + description: "A multi line list of parameters in a constructor declaration", + scopeType: "argumentList", + insertionDelimiterHint: '",\n"', }, "comment.line": { diff --git a/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts b/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts index 514c8d9794..c189dc2ca3 100644 --- a/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts +++ b/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts @@ -63,6 +63,7 @@ export const scopeSupportFacets = [ "argument.actual.method.iteration", "argument.actual.constructor", "argument.actual.constructor.iteration", + "argument.formal", "argument.formal.iteration", "argument.formal.method", @@ -72,13 +73,28 @@ export const scopeSupportFacets = [ "argument.formal.lambda", "argument.formal.lambda.iteration", - "argumentList.actual", - "argumentList.actual.method", - "argumentList.actual.constructor", - "argumentList.formal", - "argumentList.formal.method", - "argumentList.formal.constructor", - "argumentList.formal.lambda", + "argumentList.actual.empty", + "argumentList.actual.singleLine", + "argumentList.actual.multiLine", + "argumentList.actual.method.empty", + "argumentList.actual.method.singleLine", + "argumentList.actual.method.multiLine", + "argumentList.actual.constructor.empty", + "argumentList.actual.constructor.singleLine", + "argumentList.actual.constructor.multiLine", + + "argumentList.formal.empty", + "argumentList.formal.singleLine", + "argumentList.formal.multiLine", + "argumentList.formal.lambda.empty", + "argumentList.formal.lambda.singleLine", + "argumentList.formal.lambda.multiLine", + "argumentList.formal.method.empty", + "argumentList.formal.method.singleLine", + "argumentList.formal.method.multiLine", + "argumentList.formal.constructor.empty", + "argumentList.formal.constructor.singleLine", + "argumentList.formal.constructor.multiLine", "comment.line", "comment.block", @@ -210,6 +226,9 @@ export interface ScopeSupportFacetInfo { readonly description: string; readonly scopeType: SimpleScopeTypeType | ScopeType; readonly isIteration?: boolean; + readonly domainHint?: string; + readonly removalHint?: string; + readonly insertionDelimiterHint?: string; } export enum ScopeSupportFacetLevel { diff --git a/packages/common/src/scopeSupportFacets/talon.ts b/packages/common/src/scopeSupportFacets/talon.ts index ccaceafafe..08684f491f 100644 --- a/packages/common/src/scopeSupportFacets/talon.ts +++ b/packages/common/src/scopeSupportFacets/talon.ts @@ -7,6 +7,11 @@ export const talonScopeSupport: LanguageScopeSupportFacetMap = { "argument.actual.iteration": supported, "argument.actual": supported, + "argumentList.actual.empty": supported, + "argumentList.actual.singleLine": supported, + "argumentList.actual.method.empty": supported, + "argumentList.actual.method.singleLine": supported, + "comment.line": supported, "interior.command": supported, @@ -49,10 +54,23 @@ export const talonScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/xml.ts b/packages/common/src/scopeSupportFacets/xml.ts index 5830eb01aa..7a7f80c565 100644 --- a/packages/common/src/scopeSupportFacets/xml.ts +++ b/packages/common/src/scopeSupportFacets/xml.ts @@ -35,10 +35,27 @@ export const xmlScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.empty": notApplicable, + "argumentList.actual.singleLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, "branch.loop": notApplicable, @@ -150,6 +167,8 @@ export const xmlScopeSupport: LanguageScopeSupportFacetMap = { "type.foreach": notApplicable, "type.interface": notApplicable, "type.return": notApplicable, + "type.resource": notApplicable, + "type.resource.iteration": notApplicable, "type.typeArgument": notApplicable, "type.typeArgument.iteration": notApplicable, "type.variable": notApplicable, diff --git a/packages/common/src/scopeSupportFacets/yaml.ts b/packages/common/src/scopeSupportFacets/yaml.ts index 3cb6011bc3..c869b9bd71 100644 --- a/packages/common/src/scopeSupportFacets/yaml.ts +++ b/packages/common/src/scopeSupportFacets/yaml.ts @@ -44,10 +44,27 @@ export const yamlScopeSupport: LanguageScopeSupportFacetMap = { "argument.formal.method.iteration": notApplicable, "argument.formal.lambda": notApplicable, "argument.formal.lambda.iteration": notApplicable, - "argumentList.formal": notApplicable, - "argumentList.formal.method": notApplicable, - "argumentList.formal.constructor": notApplicable, - "argumentList.formal.lambda": notApplicable, + "argumentList.actual.empty": notApplicable, + "argumentList.actual.singleLine": notApplicable, + "argumentList.actual.multiLine": notApplicable, + "argumentList.actual.method.empty": notApplicable, + "argumentList.actual.method.singleLine": notApplicable, + "argumentList.actual.method.multiLine": notApplicable, + "argumentList.actual.constructor.empty": notApplicable, + "argumentList.actual.constructor.singleLine": notApplicable, + "argumentList.actual.constructor.multiLine": notApplicable, + "argumentList.formal.empty": notApplicable, + "argumentList.formal.singleLine": notApplicable, + "argumentList.formal.multiLine": notApplicable, + "argumentList.formal.lambda.empty": notApplicable, + "argumentList.formal.lambda.singleLine": notApplicable, + "argumentList.formal.lambda.multiLine": notApplicable, + "argumentList.formal.method.empty": notApplicable, + "argumentList.formal.method.singleLine": notApplicable, + "argumentList.formal.method.multiLine": notApplicable, + "argumentList.formal.constructor.empty": notApplicable, + "argumentList.formal.constructor.singleLine": notApplicable, + "argumentList.formal.constructor.multiLine": notApplicable, attribute: notApplicable, "branch.if": notApplicable, "branch.if.iteration": notApplicable, diff --git a/packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts b/packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts index 6359b3c998..73c2f1a104 100644 --- a/packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts +++ b/packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts @@ -261,14 +261,16 @@ class DocumentRange extends QueryPredicateOperator { */ class AllowMultiple extends QueryPredicateOperator { name = "allow-multiple!" as const; - schema = z.tuple([q.node]); + schema = z.tuple([q.node]).rest(q.node); protected allowMissingNode(): boolean { return true; } - run(nodeInfo: MutableQueryCapture) { - nodeInfo.allowMultiple = true; + run(...nodeInfos: MutableQueryCapture[]) { + for (const nodeInfo of nodeInfos) { + nodeInfo.allowMultiple = true; + } return true; } diff --git a/queries/css.scm b/queries/css.scm index 062889c917..e81086a206 100644 --- a/queries/css.scm +++ b/queries/css.scm @@ -90,10 +90,11 @@ (_ (arguments - "(" @argumentOrParameter.iteration.start.endOf - ")" @argumentOrParameter.iteration.end.startOf - ) -) @argumentOrParameter.iteration.domain + "(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf + ")" @argumentList.end.startOf @argumentOrParameter.iteration.end.startOf + ) @_dummy + (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") +) @argumentList.domain @argumentOrParameter.iteration.domain ;; Entire file ( diff --git a/queries/java.scm b/queries/java.scm index c898bcfbcc..2b74e4e0b4 100644 --- a/queries/java.scm +++ b/queries/java.scm @@ -517,6 +517,8 @@ (#single-or-multi-line-delimiter! @argumentOrParameter @_dummy ", " ",\n") ) +;;!! foo(int a) {}; +;;! ^^^^^ (_ parameters: (_ "(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf @@ -525,12 +527,15 @@ (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") ) @argumentList.domain @argumentOrParameter.iteration.domain +;;!! foo(1); +;;! ^ (_ (argument_list - "(" @argumentOrParameter.iteration.start.endOf - ")" @argumentOrParameter.iteration.end.startOf - ) -) @argumentOrParameter.iteration.domain + "(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf + ")" @argumentList.end.startOf @argumentOrParameter.iteration.end.startOf + ) @_dummy + (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") +) @argumentList.domain @argumentOrParameter.iteration.domain ;;!! try (PrintWriter writer = create()) { } ;;! ^^^^^^^^^^^ ^^^^^ ^^^^^^^^ diff --git a/queries/javascript.core.scm b/queries/javascript.core.scm index 316263a0ea..4256725581 100644 --- a/queries/javascript.core.scm +++ b/queries/javascript.core.scm @@ -794,10 +794,11 @@ (_ (arguments - "(" @argumentOrParameter.iteration.start.endOf - ")" @argumentOrParameter.iteration.end.startOf - ) -) @argumentOrParameter.iteration.domain + "(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf + ")" @argumentList.end.startOf @argumentOrParameter.iteration.end.startOf + ) @_dummy + (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") +) @argumentList.domain @argumentOrParameter.iteration.domain operator: [ "<" diff --git a/queries/python.scm b/queries/python.scm index cf28622272..95b5882095 100644 --- a/queries/python.scm +++ b/queries/python.scm @@ -201,8 +201,7 @@ ) ) @_.domain (#not-type? @value "as_pattern") - (#allow-multiple! @value) - (#allow-multiple! @name) + (#allow-multiple! @value @name) ) ;;!! with aaa: @@ -222,8 +221,7 @@ ) (#not-type? @value "as_pattern") (#has-multiple-children-of-type? @_with_clause "with_item") - (#allow-multiple! @value) - (#allow-multiple! @name) + (#allow-multiple! @value @name) ) ;;!! with aaa as bbb: @@ -241,8 +239,7 @@ ) ) ) @_.domain - (#allow-multiple! @value) - (#allow-multiple! @name) + (#allow-multiple! @value @name) ) ;;!! with aaa as ccc, bbb: @@ -260,8 +257,7 @@ ) @_with_clause ) (#has-multiple-children-of-type? @_with_clause "with_item") - (#allow-multiple! @value) - (#allow-multiple! @name) + (#allow-multiple! @value @name) ) (with_statement @@ -724,6 +720,14 @@ ) @name.iteration.domain @value.iteration.domain ) @argumentOrParameter.iteration.domain +(_ + (argument_list + "(" @argumentList.start.endOf + ")" @argumentList.end.startOf + ) @_dummy + (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") +) @argumentList.domain + (call (generator_expression "(" @argumentOrParameter.iteration.start.endOf diff --git a/queries/scm.scm b/queries/scm.scm index 73da970f22..a7fb91f240 100644 --- a/queries/scm.scm +++ b/queries/scm.scm @@ -43,9 +43,12 @@ ) ) -(predicate - (parameters) @argumentOrParameter.iteration -) @argumentOrParameter.iteration.domain +( + (predicate + (parameters) @argumentList @argumentOrParameter.iteration + ) @argumentList.domain @argumentOrParameter.iteration.domain + (#single-or-multi-line-delimiter! @argumentList @argumentList.domain " " "\n") +) ;;!! (aaa) @bbb ;;! ^^^ diff --git a/queries/talon.scm b/queries/talon.scm index 524fb64435..5f793f9aad 100644 --- a/queries/talon.scm +++ b/queries/talon.scm @@ -157,11 +157,20 @@ ;;!! key(enter) ;;! ^^^^^ (key_action - arguments: (_) @argumentOrParameter -) + (implicit_string) @argumentOrParameter @argumentList +) @argumentList.domain + +;;!! key(enter) +;;! ^^^^^ +(_ + (implicit_string) @argumentOrParameter.iteration +) @argumentOrParameter.iteration.domain + +;;!! sleep(100ms) +;;! ^^^^^ (sleep_action - arguments: (_) @argumentOrParameter -) + (implicit_string) @argumentOrParameter @argumentList +) @argumentList.domain ;;!! print("hello", "world") ;;! ^^^^^^^ ^^^^^^^ @@ -178,16 +187,11 @@ (_ (argument_list - "(" @argumentOrParameter.iteration.start.endOf - ")" @argumentOrParameter.iteration.end.startOf - ) -) @argumentOrParameter.iteration.domain - -;;!! key(enter) -;;! ^^^^^ -(_ - arguments: (implicit_string) @argumentOrParameter.iteration -) @argumentOrParameter.iteration.domain + "(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf + ")" @argumentList.end.startOf @argumentOrParameter.iteration.end.startOf + ) @_dummy + (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n") +) @argumentList.domain @argumentOrParameter.iteration.domain ;;!! # foo ;;! ^^^^^