File tree Expand file tree Collapse file tree
data/fixtures/recorded/languages/rust Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11languageId : rust
22command :
33 version : 6
4- spokenForm : change type trap and blue trap
4+ spokenForm : change arg trap and type blue trap
55 action :
66 name : clearAndSetSelection
77 target :
@@ -10,11 +10,11 @@ command:
1010 - type : primitive
1111 modifiers :
1212 - type : containingScope
13- scopeType : {type: type }
13+ scopeType : {type: argumentOrParameter }
1414 mark : {type: decoratedSymbol, symbolColor: default, character: t}
1515 - type : primitive
1616 modifiers :
17- - type : argumentOrParameter
17+ - type : containingScope
1818 scopeType : {type: type}
1919 mark : {type: decoratedSymbol, symbolColor: blue, character: t}
2020 usePrePhraseSnapshot : true
@@ -34,4 +34,14 @@ initialState:
3434 blue.t :
3535 start : {line: 0, character: 11}
3636 end : {line: 0, character: 12}
37- thrownError : {name: NoContainingScopeError}
37+ finalState :
38+ documentContents : |
39+ enum Maybe<> {
40+ Just(),
41+ Nothing,
42+ }
43+ selections :
44+ - anchor : {line: 0, character: 11}
45+ active : {line: 0, character: 11}
46+ - anchor : {line: 1, character: 9}
47+ active : {line: 1, character: 9}
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ initialState:
2626 end : {line: 1, character: 11}
2727finalState :
2828 documentContents : |
29- fn some_function<T, U>(t: &T, u: &U) ->
30- where T: Display + Clone ,
29+ fn some_function<T, U>(t: &T, u: &U) -> i32
30+ where ,
3131 U: Clone + Debug
3232 {}
3333 selections :
34- - anchor : {line: 0 , character: 40 }
35- active : {line: 0 , character: 40 }
34+ - anchor : {line: 1 , character: 10 }
35+ active : {line: 1 , character: 10 }
Original file line number Diff line number Diff line change 419419 (#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n")
420420) @argumentList.domain @argumentOrParameter.iteration.domain
421421
422- ;; !! #[derive(aaa, bbb)]
423- ;; ! ^^^ ^^^
422+ ;; !! fn foo<T: Display, U: Clone>() {}
423+ ;; ! ^^^^^^^^^^ ^^^^^ ^^^
424424(_
425425 (type_parameters
426426 (_)? @_.leading.endOf
432432 (#single-or-multi-line-delimiter! @type @_dummy ", " ",\n")
433433)
434434
435- ;; !! #[derive(aaa, bbb)]
436- ;; ! ^^^^^^^^
435+ ;; !! fn foo<T: Display, U: Clone>() {}
436+ ;; ! ^^^^^^^^^^^^ ^^^^^^^^
437437(_
438438 (type_parameters
439439 "<" @type.iteration.start.endOf
440440 ">" @type.iteration.end.startOf
441441 )
442442) @type.iteration.domain
443443
444+ ;; !! where T: Display, U: Clone
445+ ;; ! ^^^^^^^^^^ ^^^^^^^^
446+ (
447+ (where_clause
448+ (_)? @_.leading.endOf
449+ .
450+ (_) @type
451+ .
452+ (_)? @_.trailing.startOf
453+ ) @_dummy
454+ (#single-or-multi-line-delimiter! @type @_dummy ", " ",\n")
455+ )
456+
457+ ;; !! where T: Display, U: Clone
458+ ;; ! ^^^^^^^^^^^^^^^^^^^^
459+ (where_clause
460+ "where" @type.iteration.start.endOf
461+ ) @type.iteration.end.endOf @type.iteration.domain
462+
444463operator: [
445464 "<"
446465 "<<"
You can’t perform that action at this time.
0 commit comments