aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.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/0122_generic_lifetime_type_attribute.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/0122_generic_lifetime_type_attribute.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast66
1 files changed, 66 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast b/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast
new file mode 100644
index 000000000..a73ff9c90
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast
@@ -0,0 +1,66 @@
1SOURCE_FILE@[0; 64)
2 FN_DEF@[0; 63)
3 FN_KW@[0; 2) "fn"
4 WHITESPACE@[2; 3) " "
5 NAME@[3; 6)
6 IDENT@[3; 6) "foo"
7 TYPE_PARAM_LIST@[6; 49)
8 L_ANGLE@[6; 7) "<"
9 LIFETIME_PARAM@[7; 29)
10 ATTR@[7; 26)
11 POUND@[7; 8) "#"
12 L_BRACK@[8; 9) "["
13 PATH@[9; 15)
14 PATH_SEGMENT@[9; 15)
15 NAME_REF@[9; 15)
16 IDENT@[9; 15) "derive"
17 TOKEN_TREE@[15; 25)
18 L_PAREN@[15; 16) "("
19 IDENT@[16; 24) "Lifetime"
20 R_PAREN@[24; 25) ")"
21 R_BRACK@[25; 26) "]"
22 WHITESPACE@[26; 27) " "
23 LIFETIME@[27; 29) "\'a"
24 COMMA@[29; 30) ","
25 WHITESPACE@[30; 31) " "
26 TYPE_PARAM@[31; 48)
27 ATTR@[31; 46)
28 POUND@[31; 32) "#"
29 L_BRACK@[32; 33) "["
30 PATH@[33; 39)
31 PATH_SEGMENT@[33; 39)
32 NAME_REF@[33; 39)
33 IDENT@[33; 39) "derive"
34 TOKEN_TREE@[39; 45)
35 L_PAREN@[39; 40) "("
36 IDENT@[40; 44) "Type"
37 R_PAREN@[44; 45) ")"
38 R_BRACK@[45; 46) "]"
39 WHITESPACE@[46; 47) " "
40 NAME@[47; 48)
41 IDENT@[47; 48) "T"
42 R_ANGLE@[48; 49) ">"
43 PARAM_LIST@[49; 59)
44 L_PAREN@[49; 50) "("
45 PARAM@[50; 58)
46 PLACEHOLDER_PAT@[50; 51)
47 UNDERSCORE@[50; 51) "_"
48 COLON@[51; 52) ":"
49 WHITESPACE@[52; 53) " "
50 REFERENCE_TYPE@[53; 58)
51 AMP@[53; 54) "&"
52 LIFETIME@[54; 56) "\'a"
53 WHITESPACE@[56; 57) " "
54 PATH_TYPE@[57; 58)
55 PATH@[57; 58)
56 PATH_SEGMENT@[57; 58)
57 NAME_REF@[57; 58)
58 IDENT@[57; 58) "T"
59 R_PAREN@[58; 59) ")"
60 WHITESPACE@[59; 60) " "
61 BLOCK_EXPR@[60; 63)
62 BLOCK@[60; 63)
63 L_CURLY@[60; 61) "{"
64 WHITESPACE@[61; 62) "\n"
65 R_CURLY@[62; 63) "}"
66 WHITESPACE@[63; 64) "\n"