@@ -11,7 +11,7 @@ var y: number;
11
11
(variable_declaration (variable_declarator
12
12
(identifier)
13
13
(type_annotation (predefined_type))
14
- (string)))
14
+ (string (string_fragment) )))
15
15
(variable_declaration (variable_declarator
16
16
(identifier)
17
17
(type_annotation (predefined_type)))))
183
183
(formal_parameters)
184
184
(type_annotation (predefined_type))
185
185
(statement_block
186
- (expression_statement (string))
187
- (expression_statement (string))))
186
+ (expression_statement (string (string_fragment) ))
187
+ (expression_statement (string (string_fragment) ))))
188
188
(function_declaration
189
189
(identifier)
190
190
(formal_parameters)
191
191
(type_annotation (predefined_type))
192
192
(statement_block
193
- (expression_statement (string))
194
- (expression_statement (string)))))
193
+ (expression_statement (string (string_fragment) ))
194
+ (expression_statement (string (string_fragment) )))))
195
195
196
196
=======================================
197
197
Array types
@@ -322,16 +322,16 @@ import type UserID, {addUser, removeUser} from './User.js';
322
322
(program
323
323
(import_statement
324
324
(import_clause
325
- (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string))
325
+ (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string (string_fragment) ))
326
326
(import_statement
327
327
(import_clause
328
- (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string))
328
+ (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string (string_fragment) ))
329
329
(import_statement
330
330
(import_clause
331
- (named_imports (import_specifier (identifier) (identifier)))) (string))
331
+ (named_imports (import_specifier (identifier) (identifier)))) (string (string_fragment) ))
332
332
(import_statement
333
333
(import_clause (identifier)
334
- (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string)))
334
+ (named_imports (import_specifier (identifier)) (import_specifier (identifier)))) (string (string_fragment) )))
335
335
336
336
=======================================
337
337
Type-only Export
@@ -418,9 +418,9 @@ enum Style {
418
418
(program
419
419
(enum_declaration (identifier) (enum_body
420
420
(property_identifier)
421
- (string)
421
+ (string (string_fragment) )
422
422
(enum_assignment
423
- (string)
423
+ (string (string_fragment) )
424
424
(call_expression
425
425
(member_expression (identifier) (property_identifier))
426
426
(arguments (binary_expression (call_expression (member_expression (identifier) (property_identifier)) (arguments)) (number)))))
@@ -559,8 +559,8 @@ type Z = | "foo";
559
559
560
560
(program
561
561
(type_alias_declaration (type_identifier) (union_type (predefined_type) (predefined_type)))
562
- (type_alias_declaration (type_identifier) (union_type (union_type (literal_type (string))) (literal_type (string))))
563
- (type_alias_declaration (type_identifier) (union_type (literal_type (string)))))
562
+ (type_alias_declaration (type_identifier) (union_type (union_type (literal_type (string (string_fragment )))) (literal_type (string (string_fragment) ))))
563
+ (type_alias_declaration (type_identifier) (union_type (literal_type (string (string_fragment) )))))
564
564
565
565
=======================================
566
566
Flow Intersection types
@@ -610,7 +610,7 @@ let x: false
610
610
(lexical_declaration
611
611
(variable_declarator (identifier) (type_annotation (union_type (union_type (literal_type (number)) (literal_type (unary_expression (number)))) (literal_type (unary_expression (number)))))))
612
612
(lexical_declaration
613
- (variable_declarator (identifier) (type_annotation (literal_type (string))))) (lexical_declaration (variable_declarator (identifier) (type_annotation (literal_type (false))))))
613
+ (variable_declarator (identifier) (type_annotation (literal_type (string (string_fragment) ))))) (lexical_declaration (variable_declarator (identifier) (type_annotation (literal_type (false))))))
614
614
615
615
=======================================
616
616
Flow type parameter constraint syntax
@@ -737,7 +737,7 @@ type T = keyof U & V;
737
737
(type_alias_declaration (type_identifier)
738
738
(type_query (generic_type (type_identifier) (type_arguments (type_identifier)))))
739
739
(type_alias_declaration (type_identifier)
740
- (type_query (call_expression (import) (arguments (string)))))
740
+ (type_query (call_expression (import) (arguments (string (string_fragment) )))))
741
741
(type_alias_declaration (type_identifier)
742
742
(index_type_query (type_query (identifier))))
743
743
(type_alias_declaration (type_identifier)
@@ -761,7 +761,7 @@ type A = typeof some_array[number]
761
761
(lookup_type (type_identifier) (type_identifier)))
762
762
(type_alias_declaration
763
763
(type_identifier)
764
- (lookup_type (type_identifier) (union_type (literal_type (string)) (literal_type (string)))))
764
+ (lookup_type (type_identifier) (union_type (literal_type (string (string_fragment))) (literal_type (string (string_fragment) )))))
765
765
(type_alias_declaration
766
766
(type_identifier)
767
767
(lookup_type (type_query (identifier)) (predefined_type))))
0 commit comments