rust-analyzer/crates/syntax/test_data/parser/ok/0019_enums.rast
2020-08-12 18:30:53 +02:00

155 lines
4.2 KiB
Text

SOURCE_FILE@0..182
ENUM@0..11
ENUM_KW@0..4 "enum"
WHITESPACE@4..5 " "
NAME@5..7
IDENT@5..7 "E1"
WHITESPACE@7..8 " "
VARIANT_LIST@8..11
L_CURLY@8..9 "{"
WHITESPACE@9..10 "\n"
R_CURLY@10..11 "}"
WHITESPACE@11..13 "\n\n"
ENUM@13..27
ENUM_KW@13..17 "enum"
WHITESPACE@17..18 " "
NAME@18..20
IDENT@18..20 "E2"
GENERIC_PARAM_LIST@20..23
L_ANGLE@20..21 "<"
TYPE_PARAM@21..22
NAME@21..22
IDENT@21..22 "T"
R_ANGLE@22..23 ">"
WHITESPACE@23..24 " "
VARIANT_LIST@24..27
L_CURLY@24..25 "{"
WHITESPACE@25..26 "\n"
R_CURLY@26..27 "}"
WHITESPACE@27..29 "\n\n"
ENUM@29..46
ENUM_KW@29..33 "enum"
WHITESPACE@33..34 " "
NAME@34..36
IDENT@34..36 "E3"
WHITESPACE@36..37 " "
VARIANT_LIST@37..46
L_CURLY@37..38 "{"
WHITESPACE@38..43 "\n "
VARIANT@43..44
NAME@43..44
IDENT@43..44 "X"
WHITESPACE@44..45 "\n"
R_CURLY@45..46 "}"
WHITESPACE@46..48 "\n\n"
ENUM@48..66
ENUM_KW@48..52 "enum"
WHITESPACE@52..53 " "
NAME@53..55
IDENT@53..55 "E4"
WHITESPACE@55..56 " "
VARIANT_LIST@56..66
L_CURLY@56..57 "{"
WHITESPACE@57..62 "\n "
VARIANT@62..63
NAME@62..63
IDENT@62..63 "X"
COMMA@63..64 ","
WHITESPACE@64..65 "\n"
R_CURLY@65..66 "}"
WHITESPACE@66..68 "\n\n"
ENUM@68..181
ENUM_KW@68..72 "enum"
WHITESPACE@72..73 " "
NAME@73..75
IDENT@73..75 "E5"
WHITESPACE@75..76 " "
VARIANT_LIST@76..181
L_CURLY@76..77 "{"
WHITESPACE@77..82 "\n "
VARIANT@82..83
NAME@82..83
IDENT@82..83 "A"
COMMA@83..84 ","
WHITESPACE@84..89 "\n "
VARIANT@89..95
NAME@89..90
IDENT@89..90 "B"
WHITESPACE@90..91 " "
EQ@91..92 "="
WHITESPACE@92..93 " "
LITERAL@93..95
INT_NUMBER@93..95 "92"
COMMA@95..96 ","
WHITESPACE@96..101 "\n "
VARIANT@101..146
NAME@101..102
IDENT@101..102 "C"
WHITESPACE@102..103 " "
RECORD_FIELD_LIST@103..146
L_CURLY@103..104 "{"
WHITESPACE@104..113 "\n "
RECORD_FIELD@113..119
NAME@113..114
IDENT@113..114 "a"
COLON@114..115 ":"
WHITESPACE@115..116 " "
PATH_TYPE@116..119
PATH@116..119
PATH_SEGMENT@116..119
NAME_REF@116..119
IDENT@116..119 "u32"
COMMA@119..120 ","
WHITESPACE@120..129 "\n "
RECORD_FIELD@129..139
VISIBILITY@129..132
PUB_KW@129..132 "pub"
WHITESPACE@132..133 " "
NAME@133..134
IDENT@133..134 "b"
COLON@134..135 ":"
WHITESPACE@135..136 " "
PATH_TYPE@136..139
PATH@136..139
PATH_SEGMENT@136..139
NAME_REF@136..139
IDENT@136..139 "f64"
COMMA@139..140 ","
WHITESPACE@140..145 "\n "
R_CURLY@145..146 "}"
COMMA@146..147 ","
WHITESPACE@147..152 "\n "
VARIANT@152..156
NAME@152..153
IDENT@152..153 "F"
WHITESPACE@153..154 " "
RECORD_FIELD_LIST@154..156
L_CURLY@154..155 "{"
R_CURLY@155..156 "}"
COMMA@156..157 ","
WHITESPACE@157..162 "\n "
VARIANT@162..169
NAME@162..163
IDENT@162..163 "D"
TUPLE_FIELD_LIST@163..169
L_PAREN@163..164 "("
TUPLE_FIELD@164..167
PATH_TYPE@164..167
PATH@164..167
PATH_SEGMENT@164..167
NAME_REF@164..167
IDENT@164..167 "u32"
COMMA@167..168 ","
R_PAREN@168..169 ")"
COMMA@169..170 ","
WHITESPACE@170..175 "\n "
VARIANT@175..178
NAME@175..176
IDENT@175..176 "E"
TUPLE_FIELD_LIST@176..178
L_PAREN@176..177 "("
R_PAREN@177..178 ")"
COMMA@178..179 ","
WHITESPACE@179..180 "\n"
R_CURLY@180..181 "}"
WHITESPACE@181..182 "\n"