aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.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/0131_existential_type.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/0131_existential_type.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast31
1 files changed, 31 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast
new file mode 100644
index 000000000..6bfac985a
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast
@@ -0,0 +1,31 @@
1SOURCE_FILE@[0; 37)
2 TYPE_ALIAS_DEF@[0; 36)
3 EXISTENTIAL_KW@[0; 11) "existential"
4 WHITESPACE@[11; 12) " "
5 TYPE_KW@[12; 16) "type"
6 WHITESPACE@[16; 17) " "
7 NAME@[17; 20)
8 IDENT@[17; 20) "Foo"
9 COLON@[20; 21) ":"
10 WHITESPACE@[21; 22) " "
11 TYPE_BOUND_LIST@[22; 35)
12 TYPE_BOUND@[22; 35)
13 PATH_TYPE@[22; 35)
14 PATH@[22; 35)
15 PATH_SEGMENT@[22; 35)
16 NAME_REF@[22; 24)
17 IDENT@[22; 24) "Fn"
18 PARAM_LIST@[24; 26)
19 L_PAREN@[24; 25) "("
20 R_PAREN@[25; 26) ")"
21 WHITESPACE@[26; 27) " "
22 RET_TYPE@[27; 35)
23 THIN_ARROW@[27; 29) "->"
24 WHITESPACE@[29; 30) " "
25 PATH_TYPE@[30; 35)
26 PATH@[30; 35)
27 PATH_SEGMENT@[30; 35)
28 NAME_REF@[30; 35)
29 IDENT@[30; 35) "usize"
30 SEMI@[35; 36) ";"
31 WHITESPACE@[36; 37) "\n"