diff options
Diffstat (limited to 'crates/ra_syntax/test_data')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rs | 1 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rs b/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rs new file mode 100644 index 000000000..c8c5c0f17 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rs | |||
@@ -0,0 +1 @@ | |||
enum E { X(i32) = 10 } | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt b/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt new file mode 100644 index 000000000..a378dd80b --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt | |||
@@ -0,0 +1,30 @@ | |||
1 | SOURCE_FILE@[0; 23) | ||
2 | ENUM_DEF@[0; 22) | ||
3 | ENUM_KW@[0; 4) "enum" | ||
4 | WHITESPACE@[4; 5) " " | ||
5 | NAME@[5; 6) | ||
6 | IDENT@[5; 6) "E" | ||
7 | WHITESPACE@[6; 7) " " | ||
8 | ENUM_VARIANT_LIST@[7; 22) | ||
9 | L_CURLY@[7; 8) "{" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | ENUM_VARIANT@[9; 20) | ||
12 | NAME@[9; 10) | ||
13 | IDENT@[9; 10) "X" | ||
14 | TUPLE_FIELD_DEF_LIST@[10; 15) | ||
15 | L_PAREN@[10; 11) "(" | ||
16 | TUPLE_FIELD_DEF@[11; 14) | ||
17 | PATH_TYPE@[11; 14) | ||
18 | PATH@[11; 14) | ||
19 | PATH_SEGMENT@[11; 14) | ||
20 | NAME_REF@[11; 14) | ||
21 | IDENT@[11; 14) "i32" | ||
22 | R_PAREN@[14; 15) ")" | ||
23 | WHITESPACE@[15; 16) " " | ||
24 | EQ@[16; 17) "=" | ||
25 | WHITESPACE@[17; 18) " " | ||
26 | LITERAL@[18; 20) | ||
27 | INT_NUMBER@[18; 20) "10" | ||
28 | WHITESPACE@[20; 21) " " | ||
29 | R_CURLY@[21; 22) "}" | ||
30 | WHITESPACE@[22; 23) "\n" | ||