Skip to content

Commit 774c6c5

Browse files
Migrate rust scope implementations (#2950)
1 parent 73b89d4 commit 774c6c5

24 files changed

+445
-413
lines changed

data/fixtures/recorded/languages/rust/changeArgBlueAir.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg blue air
4+
spokenForm: change type blue air
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: blue, character: a}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgSun.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg sun
4+
spokenForm: change type sun
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: s}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgTrap.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg trap
4+
spokenForm: change type trap
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: t}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgTrapAndBlueTrap.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg trap and blue trap
4+
spokenForm: change arg trap and type blue trap
55
action:
66
name: clearAndSetSelection
77
target:
@@ -13,6 +13,9 @@ command:
1313
scopeType: {type: argumentOrParameter}
1414
mark: {type: decoratedSymbol, symbolColor: default, character: t}
1515
- type: primitive
16+
modifiers:
17+
- type: containingScope
18+
scopeType: {type: type}
1619
mark: {type: decoratedSymbol, symbolColor: blue, character: t}
1720
usePrePhraseSnapshot: true
1821
initialState:

data/fixtures/recorded/languages/rust/changeNameDrum2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name drum
4+
spokenForm: change key drum
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeNameDrum3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name drum
4+
spokenForm: change key drum
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeNameJury.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name jury
4+
spokenForm: change key jury
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: j}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeNameLook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name look
4+
spokenForm: change key look
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: l}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeTypeTrap.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ initialState:
2626
end: {line: 0, character: 18}
2727
finalState:
2828
documentContents: |
29-
fn some_function<T: , U: Clone + Debug>(t: &T, u: &U) -> i32 {
29+
fn some_function<, U: Clone + Debug>(t: &T, u: &U) -> i32 {
3030
}
3131
selections:
32-
- anchor: {line: 0, character: 20}
33-
active: {line: 0, character: 20}
32+
- anchor: {line: 0, character: 17}
33+
active: {line: 0, character: 17}

data/fixtures/recorded/languages/rust/changeTypeTrap3.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ initialState:
2727
finalState:
2828
documentContents: |
2929
fn some_function<T, U>(t: &T, u: &U) -> i32
30-
where T: ,
30+
where ,
3131
U: Clone + Debug
3232
{}
3333
selections:
34-
- anchor: {line: 1, character: 13}
35-
active: {line: 1, character: 13}
34+
- anchor: {line: 1, character: 10}
35+
active: {line: 1, character: 10}

0 commit comments

Comments
 (0)