diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-20 07:51:24 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-20 07:51:24 +0000 |
commit | e0952899aee50b813379ca8e6dcab49a895ff0a0 (patch) | |
tree | ae389283c137194fdabc5e5e45b7021ac9fa3b7f /crates/ra_syntax/test_data/parser/inline/ok | |
parent | 1878fbe8bd60c7f9e58fda6dc7788e5f44ad0f89 (diff) | |
parent | 89694ec8f685e545585b96b2db6e5410ba117527 (diff) |
Merge #3662
3662: Support arbitrary discriminants r=matklad a=matklad
Closes #3661
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok')
-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" | ||