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/inline/ok/0130_let_stmt.txt | |
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/inline/ok/0130_let_stmt.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt deleted file mode 100644 index 17739dfbd..000000000 --- a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt +++ /dev/null | |||
@@ -1,129 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 135) | ||
2 | FN_DEF@[0; 134) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 134) | ||
12 | BLOCK@[9; 134) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | LET_STMT@[15; 21) | ||
16 | LET_KW@[15; 18) "let" | ||
17 | WHITESPACE@[18; 19) " " | ||
18 | BIND_PAT@[19; 20) | ||
19 | NAME@[19; 20) | ||
20 | IDENT@[19; 20) "a" | ||
21 | SEMI@[20; 21) ";" | ||
22 | WHITESPACE@[21; 26) "\n " | ||
23 | LET_STMT@[26; 37) | ||
24 | LET_KW@[26; 29) "let" | ||
25 | WHITESPACE@[29; 30) " " | ||
26 | BIND_PAT@[30; 31) | ||
27 | NAME@[30; 31) | ||
28 | IDENT@[30; 31) "b" | ||
29 | COLON@[31; 32) ":" | ||
30 | WHITESPACE@[32; 33) " " | ||
31 | PATH_TYPE@[33; 36) | ||
32 | PATH@[33; 36) | ||
33 | PATH_SEGMENT@[33; 36) | ||
34 | NAME_REF@[33; 36) | ||
35 | IDENT@[33; 36) "i32" | ||
36 | SEMI@[36; 37) ";" | ||
37 | WHITESPACE@[37; 42) "\n " | ||
38 | LET_STMT@[42; 53) | ||
39 | LET_KW@[42; 45) "let" | ||
40 | WHITESPACE@[45; 46) " " | ||
41 | BIND_PAT@[46; 47) | ||
42 | NAME@[46; 47) | ||
43 | IDENT@[46; 47) "c" | ||
44 | WHITESPACE@[47; 48) " " | ||
45 | EQ@[48; 49) "=" | ||
46 | WHITESPACE@[49; 50) " " | ||
47 | LITERAL@[50; 52) | ||
48 | INT_NUMBER@[50; 52) "92" | ||
49 | SEMI@[52; 53) ";" | ||
50 | WHITESPACE@[53; 58) "\n " | ||
51 | LET_STMT@[58; 74) | ||
52 | LET_KW@[58; 61) "let" | ||
53 | WHITESPACE@[61; 62) " " | ||
54 | BIND_PAT@[62; 63) | ||
55 | NAME@[62; 63) | ||
56 | IDENT@[62; 63) "d" | ||
57 | COLON@[63; 64) ":" | ||
58 | WHITESPACE@[64; 65) " " | ||
59 | PATH_TYPE@[65; 68) | ||
60 | PATH@[65; 68) | ||
61 | PATH_SEGMENT@[65; 68) | ||
62 | NAME_REF@[65; 68) | ||
63 | IDENT@[65; 68) "i32" | ||
64 | WHITESPACE@[68; 69) " " | ||
65 | EQ@[69; 70) "=" | ||
66 | WHITESPACE@[70; 71) " " | ||
67 | LITERAL@[71; 73) | ||
68 | INT_NUMBER@[71; 73) "92" | ||
69 | SEMI@[73; 74) ";" | ||
70 | WHITESPACE@[74; 79) "\n " | ||
71 | LET_STMT@[79; 88) | ||
72 | LET_KW@[79; 82) "let" | ||
73 | WHITESPACE@[82; 83) " " | ||
74 | BIND_PAT@[83; 84) | ||
75 | NAME@[83; 84) | ||
76 | IDENT@[83; 84) "e" | ||
77 | COLON@[84; 85) ":" | ||
78 | WHITESPACE@[85; 86) " " | ||
79 | NEVER_TYPE@[86; 87) | ||
80 | EXCL@[86; 87) "!" | ||
81 | SEMI@[87; 88) ";" | ||
82 | WHITESPACE@[88; 93) "\n " | ||
83 | LET_STMT@[93; 107) | ||
84 | LET_KW@[93; 96) "let" | ||
85 | WHITESPACE@[96; 97) " " | ||
86 | PLACEHOLDER_PAT@[97; 98) | ||
87 | UNDERSCORE@[97; 98) "_" | ||
88 | COLON@[98; 99) ":" | ||
89 | WHITESPACE@[99; 100) " " | ||
90 | NEVER_TYPE@[100; 101) | ||
91 | EXCL@[100; 101) "!" | ||
92 | WHITESPACE@[101; 102) " " | ||
93 | EQ@[102; 103) "=" | ||
94 | WHITESPACE@[103; 104) " " | ||
95 | BLOCK_EXPR@[104; 106) | ||
96 | BLOCK@[104; 106) | ||
97 | L_CURLY@[104; 105) "{" | ||
98 | R_CURLY@[105; 106) "}" | ||
99 | SEMI@[106; 107) ";" | ||
100 | WHITESPACE@[107; 112) "\n " | ||
101 | LET_STMT@[112; 132) | ||
102 | LET_KW@[112; 115) "let" | ||
103 | WHITESPACE@[115; 116) " " | ||
104 | BIND_PAT@[116; 117) | ||
105 | NAME@[116; 117) | ||
106 | IDENT@[116; 117) "f" | ||
107 | WHITESPACE@[117; 118) " " | ||
108 | EQ@[118; 119) "=" | ||
109 | WHITESPACE@[119; 120) " " | ||
110 | LAMBDA_EXPR@[120; 131) | ||
111 | ATTR@[120; 127) | ||
112 | POUND@[120; 121) "#" | ||
113 | L_BRACK@[121; 122) "[" | ||
114 | PATH@[122; 126) | ||
115 | PATH_SEGMENT@[122; 126) | ||
116 | NAME_REF@[122; 126) | ||
117 | IDENT@[122; 126) "attr" | ||
118 | R_BRACK@[126; 127) "]" | ||
119 | PARAM_LIST@[127; 129) | ||
120 | PIPE@[127; 128) "|" | ||
121 | PIPE@[128; 129) "|" | ||
122 | BLOCK_EXPR@[129; 131) | ||
123 | BLOCK@[129; 131) | ||
124 | L_CURLY@[129; 130) "{" | ||
125 | R_CURLY@[130; 131) "}" | ||
126 | SEMI@[131; 132) ";" | ||
127 | WHITESPACE@[132; 133) "\n" | ||
128 | R_CURLY@[133; 134) "}" | ||
129 | WHITESPACE@[134; 135) "\n" | ||