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/0138_self_param_outer_attr.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/0138_self_param_outer_attr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast new file mode 100644 index 000000000..e627b9746 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast | |||
@@ -0,0 +1,26 @@ | |||
1 | SOURCE_FILE@[0; 26) | ||
2 | FN_DEF@[0; 25) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "f" | ||
7 | PARAM_LIST@[4; 22) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | ATTR@[5; 16) | ||
10 | POUND@[5; 6) "#" | ||
11 | L_BRACK@[6; 7) "[" | ||
12 | PATH@[7; 15) | ||
13 | PATH_SEGMENT@[7; 15) | ||
14 | NAME_REF@[7; 15) | ||
15 | IDENT@[7; 15) "must_use" | ||
16 | R_BRACK@[15; 16) "]" | ||
17 | WHITESPACE@[16; 17) " " | ||
18 | SELF_PARAM@[17; 21) | ||
19 | SELF_KW@[17; 21) "self" | ||
20 | R_PAREN@[21; 22) ")" | ||
21 | WHITESPACE@[22; 23) " " | ||
22 | BLOCK_EXPR@[23; 25) | ||
23 | BLOCK@[23; 25) | ||
24 | L_CURLY@[23; 24) "{" | ||
25 | R_CURLY@[24; 25) "}" | ||
26 | WHITESPACE@[25; 26) "\n" | ||