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/0048_path_type_with_bounds.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/0048_path_type_with_bounds.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast b/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast new file mode 100644 index 000000000..02f2a9db6 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast | |||
@@ -0,0 +1,83 @@ | |||
1 | SOURCE_FILE@[0; 58) | ||
2 | FN_DEF@[0; 26) | ||
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 | RET_TYPE@[9; 23) | ||
12 | THIN_ARROW@[9; 11) "->" | ||
13 | WHITESPACE@[11; 12) " " | ||
14 | PATH_TYPE@[12; 23) | ||
15 | PATH@[12; 23) | ||
16 | PATH_SEGMENT@[12; 23) | ||
17 | NAME_REF@[12; 15) | ||
18 | IDENT@[12; 15) "Box" | ||
19 | TYPE_ARG_LIST@[15; 23) | ||
20 | L_ANGLE@[15; 16) "<" | ||
21 | TYPE_ARG@[16; 22) | ||
22 | DYN_TRAIT_TYPE@[16; 22) | ||
23 | TYPE_BOUND_LIST@[16; 22) | ||
24 | TYPE_BOUND@[16; 17) | ||
25 | PATH_TYPE@[16; 17) | ||
26 | PATH@[16; 17) | ||
27 | PATH_SEGMENT@[16; 17) | ||
28 | NAME_REF@[16; 17) | ||
29 | IDENT@[16; 17) "T" | ||
30 | WHITESPACE@[17; 18) " " | ||
31 | PLUS@[18; 19) "+" | ||
32 | WHITESPACE@[19; 20) " " | ||
33 | TYPE_BOUND@[20; 22) | ||
34 | LIFETIME@[20; 22) "\'f" | ||
35 | R_ANGLE@[22; 23) ">" | ||
36 | WHITESPACE@[23; 24) " " | ||
37 | BLOCK_EXPR@[24; 26) | ||
38 | BLOCK@[24; 26) | ||
39 | L_CURLY@[24; 25) "{" | ||
40 | R_CURLY@[25; 26) "}" | ||
41 | WHITESPACE@[26; 27) "\n" | ||
42 | FN_DEF@[27; 57) | ||
43 | FN_KW@[27; 29) "fn" | ||
44 | WHITESPACE@[29; 30) " " | ||
45 | NAME@[30; 33) | ||
46 | IDENT@[30; 33) "foo" | ||
47 | PARAM_LIST@[33; 35) | ||
48 | L_PAREN@[33; 34) "(" | ||
49 | R_PAREN@[34; 35) ")" | ||
50 | WHITESPACE@[35; 36) " " | ||
51 | RET_TYPE@[36; 54) | ||
52 | THIN_ARROW@[36; 38) "->" | ||
53 | WHITESPACE@[38; 39) " " | ||
54 | PATH_TYPE@[39; 54) | ||
55 | PATH@[39; 54) | ||
56 | PATH_SEGMENT@[39; 54) | ||
57 | NAME_REF@[39; 42) | ||
58 | IDENT@[39; 42) "Box" | ||
59 | TYPE_ARG_LIST@[42; 54) | ||
60 | L_ANGLE@[42; 43) "<" | ||
61 | TYPE_ARG@[43; 53) | ||
62 | DYN_TRAIT_TYPE@[43; 53) | ||
63 | DYN_KW@[43; 46) "dyn" | ||
64 | WHITESPACE@[46; 47) " " | ||
65 | TYPE_BOUND_LIST@[47; 53) | ||
66 | TYPE_BOUND@[47; 48) | ||
67 | PATH_TYPE@[47; 48) | ||
68 | PATH@[47; 48) | ||
69 | PATH_SEGMENT@[47; 48) | ||
70 | NAME_REF@[47; 48) | ||
71 | IDENT@[47; 48) "T" | ||
72 | WHITESPACE@[48; 49) " " | ||
73 | PLUS@[49; 50) "+" | ||
74 | WHITESPACE@[50; 51) " " | ||
75 | TYPE_BOUND@[51; 53) | ||
76 | LIFETIME@[51; 53) "\'f" | ||
77 | R_ANGLE@[53; 54) ">" | ||
78 | WHITESPACE@[54; 55) " " | ||
79 | BLOCK_EXPR@[55; 57) | ||
80 | BLOCK@[55; 57) | ||
81 | L_CURLY@[55; 56) "{" | ||
82 | R_CURLY@[56; 57) "}" | ||
83 | WHITESPACE@[57; 58) "\n" | ||