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/0099_param_list.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/inline/ok/0099_param_list.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast new file mode 100644 index 000000000..ed57a9eea --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast | |||
@@ -0,0 +1,103 @@ | |||
1 | SOURCE_FILE@[0; 67) | ||
2 | FN_DEF@[0; 9) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "a" | ||
7 | PARAM_LIST@[4; 6) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | R_PAREN@[5; 6) ")" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | BLOCK_EXPR@[7; 9) | ||
12 | BLOCK@[7; 9) | ||
13 | L_CURLY@[7; 8) "{" | ||
14 | R_CURLY@[8; 9) "}" | ||
15 | WHITESPACE@[9; 10) "\n" | ||
16 | FN_DEF@[10; 25) | ||
17 | FN_KW@[10; 12) "fn" | ||
18 | WHITESPACE@[12; 13) " " | ||
19 | NAME@[13; 14) | ||
20 | IDENT@[13; 14) "b" | ||
21 | PARAM_LIST@[14; 22) | ||
22 | L_PAREN@[14; 15) "(" | ||
23 | PARAM@[15; 21) | ||
24 | BIND_PAT@[15; 16) | ||
25 | NAME@[15; 16) | ||
26 | IDENT@[15; 16) "x" | ||
27 | COLON@[16; 17) ":" | ||
28 | WHITESPACE@[17; 18) " " | ||
29 | PATH_TYPE@[18; 21) | ||
30 | PATH@[18; 21) | ||
31 | PATH_SEGMENT@[18; 21) | ||
32 | NAME_REF@[18; 21) | ||
33 | IDENT@[18; 21) "i32" | ||
34 | R_PAREN@[21; 22) ")" | ||
35 | WHITESPACE@[22; 23) " " | ||
36 | BLOCK_EXPR@[23; 25) | ||
37 | BLOCK@[23; 25) | ||
38 | L_CURLY@[23; 24) "{" | ||
39 | R_CURLY@[24; 25) "}" | ||
40 | WHITESPACE@[25; 26) "\n" | ||
41 | FN_DEF@[26; 43) | ||
42 | FN_KW@[26; 28) "fn" | ||
43 | WHITESPACE@[28; 29) " " | ||
44 | NAME@[29; 30) | ||
45 | IDENT@[29; 30) "c" | ||
46 | PARAM_LIST@[30; 40) | ||
47 | L_PAREN@[30; 31) "(" | ||
48 | PARAM@[31; 37) | ||
49 | BIND_PAT@[31; 32) | ||
50 | NAME@[31; 32) | ||
51 | IDENT@[31; 32) "x" | ||
52 | COLON@[32; 33) ":" | ||
53 | WHITESPACE@[33; 34) " " | ||
54 | PATH_TYPE@[34; 37) | ||
55 | PATH@[34; 37) | ||
56 | PATH_SEGMENT@[34; 37) | ||
57 | NAME_REF@[34; 37) | ||
58 | IDENT@[34; 37) "i32" | ||
59 | COMMA@[37; 38) "," | ||
60 | WHITESPACE@[38; 39) " " | ||
61 | R_PAREN@[39; 40) ")" | ||
62 | WHITESPACE@[40; 41) " " | ||
63 | BLOCK_EXPR@[41; 43) | ||
64 | BLOCK@[41; 43) | ||
65 | L_CURLY@[41; 42) "{" | ||
66 | R_CURLY@[42; 43) "}" | ||
67 | WHITESPACE@[43; 44) "\n" | ||
68 | FN_DEF@[44; 66) | ||
69 | FN_KW@[44; 46) "fn" | ||
70 | WHITESPACE@[46; 47) " " | ||
71 | NAME@[47; 48) | ||
72 | IDENT@[47; 48) "d" | ||
73 | PARAM_LIST@[48; 63) | ||
74 | L_PAREN@[48; 49) "(" | ||
75 | PARAM@[49; 55) | ||
76 | BIND_PAT@[49; 50) | ||
77 | NAME@[49; 50) | ||
78 | IDENT@[49; 50) "x" | ||
79 | COLON@[50; 51) ":" | ||
80 | WHITESPACE@[51; 52) " " | ||
81 | PATH_TYPE@[52; 55) | ||
82 | PATH@[52; 55) | ||
83 | PATH_SEGMENT@[52; 55) | ||
84 | NAME_REF@[52; 55) | ||
85 | IDENT@[52; 55) "i32" | ||
86 | COMMA@[55; 56) "," | ||
87 | WHITESPACE@[56; 57) " " | ||
88 | PARAM@[57; 62) | ||
89 | BIND_PAT@[57; 58) | ||
90 | NAME@[57; 58) | ||
91 | IDENT@[57; 58) "y" | ||
92 | COLON@[58; 59) ":" | ||
93 | WHITESPACE@[59; 60) " " | ||
94 | TUPLE_TYPE@[60; 62) | ||
95 | L_PAREN@[60; 61) "(" | ||
96 | R_PAREN@[61; 62) ")" | ||
97 | R_PAREN@[62; 63) ")" | ||
98 | WHITESPACE@[63; 64) " " | ||
99 | BLOCK_EXPR@[64; 66) | ||
100 | BLOCK@[64; 66) | ||
101 | L_CURLY@[64; 65) "{" | ||
102 | R_CURLY@[65; 66) "}" | ||
103 | WHITESPACE@[66; 67) "\n" | ||