aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-04-06 12:04:26 +0100
committerveetaha <[email protected]>2020-04-06 12:04:26 +0100
commitda091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch)
treef97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast
parentec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (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/0005_function_type_params.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast38
1 files changed, 38 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast
new file mode 100644
index 000000000..8ae7909f9
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast
@@ -0,0 +1,38 @@
1SOURCE_FILE@[0; 28)
2 FN_DEF@[0; 27)
3 FN_KW@[0; 2) "fn"
4 WHITESPACE@[2; 3) " "
5 NAME@[3; 6)
6 IDENT@[3; 6) "foo"
7 TYPE_PARAM_LIST@[6; 23)
8 L_ANGLE@[6; 7) "<"
9 TYPE_PARAM@[7; 22)
10 NAME@[7; 8)
11 IDENT@[7; 8) "T"
12 COLON@[8; 9) ":"
13 WHITESPACE@[9; 10) " "
14 TYPE_BOUND_LIST@[10; 22)
15 TYPE_BOUND@[10; 15)
16 PATH_TYPE@[10; 15)
17 PATH@[10; 15)
18 PATH_SEGMENT@[10; 15)
19 NAME_REF@[10; 15)
20 IDENT@[10; 15) "Clone"
21 WHITESPACE@[15; 16) " "
22 PLUS@[16; 17) "+"
23 WHITESPACE@[17; 18) " "
24 TYPE_BOUND@[18; 22)
25 PATH_TYPE@[18; 22)
26 PATH@[18; 22)
27 PATH_SEGMENT@[18; 22)
28 NAME_REF@[18; 22)
29 IDENT@[18; 22) "Copy"
30 R_ANGLE@[22; 23) ">"
31 PARAM_LIST@[23; 25)
32 L_PAREN@[23; 24) "("
33 R_PAREN@[24; 25) ")"
34 BLOCK_EXPR@[25; 27)
35 BLOCK@[25; 27)
36 L_CURLY@[25; 26) "{"
37 R_CURLY@[26; 27) "}"
38 WHITESPACE@[27; 28) "\n"