diff options
author | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
commit | da091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch) | |
tree | f97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast | |
parent | ec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (diff) |
Migrate tests .txt -> .rast
The sytax tree output files now use .rast extension
(rust-analyzer syntax tree or rust abstract syntax tree
(whatever)).
This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration
that supplies nice syntax highlighting for .rast files.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast b/crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast new file mode 100644 index 000000000..3fe34d001 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast | |||
@@ -0,0 +1,95 @@ | |||
1 | SOURCE_FILE@[0; 81) | ||
2 | USE_ITEM@[0; 6) | ||
3 | USE_KW@[0; 3) "use" | ||
4 | WHITESPACE@[3; 4) " " | ||
5 | USE_TREE@[4; 5) | ||
6 | STAR@[4; 5) "*" | ||
7 | SEMI@[5; 6) ";" | ||
8 | WHITESPACE@[6; 7) "\n" | ||
9 | USE_ITEM@[7; 15) | ||
10 | USE_KW@[7; 10) "use" | ||
11 | WHITESPACE@[10; 11) " " | ||
12 | USE_TREE@[11; 14) | ||
13 | COLONCOLON@[11; 13) "::" | ||
14 | STAR@[13; 14) "*" | ||
15 | SEMI@[14; 15) ";" | ||
16 | WHITESPACE@[15; 16) "\n" | ||
17 | USE_ITEM@[16; 25) | ||
18 | USE_KW@[16; 19) "use" | ||
19 | WHITESPACE@[19; 20) " " | ||
20 | USE_TREE@[20; 24) | ||
21 | COLONCOLON@[20; 22) "::" | ||
22 | USE_TREE_LIST@[22; 24) | ||
23 | L_CURLY@[22; 23) "{" | ||
24 | R_CURLY@[23; 24) "}" | ||
25 | SEMI@[24; 25) ";" | ||
26 | WHITESPACE@[25; 26) "\n" | ||
27 | USE_ITEM@[26; 33) | ||
28 | USE_KW@[26; 29) "use" | ||
29 | WHITESPACE@[29; 30) " " | ||
30 | USE_TREE@[30; 32) | ||
31 | USE_TREE_LIST@[30; 32) | ||
32 | L_CURLY@[30; 31) "{" | ||
33 | R_CURLY@[31; 32) "}" | ||
34 | SEMI@[32; 33) ";" | ||
35 | WHITESPACE@[33; 34) "\n" | ||
36 | USE_ITEM@[34; 45) | ||
37 | USE_KW@[34; 37) "use" | ||
38 | WHITESPACE@[37; 38) " " | ||
39 | USE_TREE@[38; 44) | ||
40 | PATH@[38; 41) | ||
41 | PATH_SEGMENT@[38; 41) | ||
42 | NAME_REF@[38; 41) | ||
43 | IDENT@[38; 41) "foo" | ||
44 | COLONCOLON@[41; 43) "::" | ||
45 | STAR@[43; 44) "*" | ||
46 | SEMI@[44; 45) ";" | ||
47 | WHITESPACE@[45; 46) "\n" | ||
48 | USE_ITEM@[46; 58) | ||
49 | USE_KW@[46; 49) "use" | ||
50 | WHITESPACE@[49; 50) " " | ||
51 | USE_TREE@[50; 57) | ||
52 | PATH@[50; 53) | ||
53 | PATH_SEGMENT@[50; 53) | ||
54 | NAME_REF@[50; 53) | ||
55 | IDENT@[50; 53) "foo" | ||
56 | COLONCOLON@[53; 55) "::" | ||
57 | USE_TREE_LIST@[55; 57) | ||
58 | L_CURLY@[55; 56) "{" | ||
59 | R_CURLY@[56; 57) "}" | ||
60 | SEMI@[57; 58) ";" | ||
61 | WHITESPACE@[58; 59) "\n" | ||
62 | USE_ITEM@[59; 80) | ||
63 | USE_KW@[59; 62) "use" | ||
64 | WHITESPACE@[62; 63) " " | ||
65 | USE_TREE@[63; 79) | ||
66 | PATH@[63; 68) | ||
67 | PATH_SEGMENT@[63; 68) | ||
68 | COLONCOLON@[63; 65) "::" | ||
69 | NAME_REF@[65; 68) | ||
70 | IDENT@[65; 68) "foo" | ||
71 | COLONCOLON@[68; 70) "::" | ||
72 | USE_TREE_LIST@[70; 79) | ||
73 | L_CURLY@[70; 71) "{" | ||
74 | USE_TREE@[71; 72) | ||
75 | PATH@[71; 72) | ||
76 | PATH_SEGMENT@[71; 72) | ||
77 | NAME_REF@[71; 72) | ||
78 | IDENT@[71; 72) "a" | ||
79 | COMMA@[72; 73) "," | ||
80 | WHITESPACE@[73; 74) " " | ||
81 | USE_TREE@[74; 75) | ||
82 | PATH@[74; 75) | ||
83 | PATH_SEGMENT@[74; 75) | ||
84 | NAME_REF@[74; 75) | ||
85 | IDENT@[74; 75) "b" | ||
86 | COMMA@[75; 76) "," | ||
87 | WHITESPACE@[76; 77) " " | ||
88 | USE_TREE@[77; 78) | ||
89 | PATH@[77; 78) | ||
90 | PATH_SEGMENT@[77; 78) | ||
91 | NAME_REF@[77; 78) | ||
92 | IDENT@[77; 78) "c" | ||
93 | R_CURLY@[78; 79) "}" | ||
94 | SEMI@[79; 80) ";" | ||
95 | WHITESPACE@[80; 81) "\n" | ||