File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ module.exports = grammar({
270
270
271
271
type_alias : $ => seq (
272
272
field ( 'name' , $ . _type_identifier ) ,
273
+ field ( 'type_parameters' , optional ( $ . type_parameter_list ) ) ,
273
274
'=' ,
274
275
field ( 'type' , $ . _type ) ,
275
276
) ,
Original file line number Diff line number Diff line change @@ -467,6 +467,7 @@ type (
467
467
A4 = Value
468
468
A5 = Value
469
469
)
470
+ type G3[T any, C Constraint] = G4[T, string, C]
470
471
471
472
--------------------------------------------------------------------------------
472
473
@@ -507,4 +508,25 @@ type (
507
508
(type_identifier))
508
509
(type_alias
509
510
(type_identifier)
510
- (type_identifier))))
511
+ (type_identifier)))
512
+ (type_declaration
513
+ (type_alias
514
+ (type_identifier)
515
+ (type_parameter_list
516
+ (type_parameter_declaration
517
+ (identifier)
518
+ (type_constraint
519
+ (type_identifier)))
520
+ (type_parameter_declaration
521
+ (identifier)
522
+ (type_constraint
523
+ (type_identifier))))
524
+ (generic_type
525
+ (type_identifier)
526
+ (type_arguments
527
+ (type_elem
528
+ (type_identifier))
529
+ (type_elem
530
+ (type_identifier))
531
+ (type_elem
532
+ (type_identifier)))))))
You can’t perform that action at this time.
0 commit comments