Skip to content

Commit 7bbca27

Browse files
committed
regenerate parser
1 parent b68c060 commit 7bbca27

File tree

6 files changed

+395029
-381755
lines changed

6 files changed

+395029
-381755
lines changed

tsx/src/grammar.json

Lines changed: 108 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -7568,95 +7568,117 @@
75687568
}
75697569
]
75707570
},
7571+
"_extends_type": {
7572+
"type": "CHOICE",
7573+
"members": [
7574+
{
7575+
"type": "SYMBOL",
7576+
"name": "_type_identifier"
7577+
},
7578+
{
7579+
"type": "SYMBOL",
7580+
"name": "nested_type_identifier"
7581+
},
7582+
{
7583+
"type": "SYMBOL",
7584+
"name": "generic_type"
7585+
}
7586+
]
7587+
},
7588+
"functional_extension": {
7589+
"type": "SEQ",
7590+
"members": [
7591+
{
7592+
"type": "SYMBOL",
7593+
"name": "_extends_type"
7594+
},
7595+
{
7596+
"type": "SYMBOL",
7597+
"name": "arguments"
7598+
},
7599+
{
7600+
"type": "CHOICE",
7601+
"members": [
7602+
{
7603+
"type": "SYMBOL",
7604+
"name": "type_arguments"
7605+
},
7606+
{
7607+
"type": "BLANK"
7608+
}
7609+
]
7610+
}
7611+
]
7612+
},
75717613
"extends_clause": {
7572-
"type": "PREC",
7573-
"value": "extends_type",
7574-
"content": {
7575-
"type": "SEQ",
7576-
"members": [
7577-
{
7578-
"type": "STRING",
7579-
"value": "extends"
7580-
},
7581-
{
7582-
"type": "SEQ",
7583-
"members": [
7584-
{
7585-
"type": "CHOICE",
7586-
"members": [
7587-
{
7588-
"type": "PREC",
7589-
"value": "extends_type",
7590-
"content": {
7591-
"type": "CHOICE",
7592-
"members": [
7593-
{
7594-
"type": "SYMBOL",
7595-
"name": "_type_identifier"
7596-
},
7597-
{
7598-
"type": "SYMBOL",
7599-
"name": "nested_type_identifier"
7600-
},
7601-
{
7602-
"type": "SYMBOL",
7603-
"name": "generic_type"
7604-
}
7605-
]
7606-
}
7607-
},
7608-
{
7609-
"type": "SYMBOL",
7610-
"name": "expression"
7611-
}
7612-
]
7613-
},
7614-
{
7615-
"type": "REPEAT",
7616-
"content": {
7617-
"type": "SEQ",
7614+
"type": "SEQ",
7615+
"members": [
7616+
{
7617+
"type": "STRING",
7618+
"value": "extends"
7619+
},
7620+
{
7621+
"type": "SEQ",
7622+
"members": [
7623+
{
7624+
"type": "CHOICE",
7625+
"members": [
7626+
{
7627+
"type": "CHOICE",
76187628
"members": [
76197629
{
7620-
"type": "STRING",
7621-
"value": ","
7630+
"type": "SYMBOL",
7631+
"name": "_extends_type"
76227632
},
76237633
{
7624-
"type": "CHOICE",
7625-
"members": [
7626-
{
7627-
"type": "PREC",
7628-
"value": "extends_type",
7629-
"content": {
7630-
"type": "CHOICE",
7631-
"members": [
7632-
{
7633-
"type": "SYMBOL",
7634-
"name": "_type_identifier"
7635-
},
7636-
{
7637-
"type": "SYMBOL",
7638-
"name": "nested_type_identifier"
7639-
},
7640-
{
7641-
"type": "SYMBOL",
7642-
"name": "generic_type"
7643-
}
7644-
]
7645-
}
7646-
},
7647-
{
7648-
"type": "SYMBOL",
7649-
"name": "expression"
7650-
}
7651-
]
7634+
"type": "SYMBOL",
7635+
"name": "functional_extension"
76527636
}
76537637
]
7638+
},
7639+
{
7640+
"type": "SYMBOL",
7641+
"name": "expression"
76547642
}
7643+
]
7644+
},
7645+
{
7646+
"type": "REPEAT",
7647+
"content": {
7648+
"type": "SEQ",
7649+
"members": [
7650+
{
7651+
"type": "STRING",
7652+
"value": ","
7653+
},
7654+
{
7655+
"type": "CHOICE",
7656+
"members": [
7657+
{
7658+
"type": "CHOICE",
7659+
"members": [
7660+
{
7661+
"type": "SYMBOL",
7662+
"name": "_extends_type"
7663+
},
7664+
{
7665+
"type": "SYMBOL",
7666+
"name": "functional_extension"
7667+
}
7668+
]
7669+
},
7670+
{
7671+
"type": "SYMBOL",
7672+
"name": "expression"
7673+
}
7674+
]
7675+
}
7676+
]
76557677
}
7656-
]
7657-
}
7658-
]
7659-
}
7678+
}
7679+
]
7680+
}
7681+
]
76607682
},
76617683
"enum_declaration": {
76627684
"type": "SEQ",
@@ -9904,8 +9926,12 @@
99049926
],
99059927
[
99069928
{
9907-
"type": "STRING",
9908-
"value": "extends_type"
9929+
"type": "SYMBOL",
9930+
"name": "_extends_type"
9931+
},
9932+
{
9933+
"type": "SYMBOL",
9934+
"name": "extends_clause"
99099935
},
99109936
{
99119937
"type": "SYMBOL",

tsx/src/node-types.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,10 @@
20012001
"type": "expression",
20022002
"named": true
20032003
},
2004+
{
2005+
"type": "functional_extension",
2006+
"named": true
2007+
},
20042008
{
20052009
"type": "generic_type",
20062010
"named": true
@@ -2429,6 +2433,37 @@
24292433
]
24302434
}
24312435
},
2436+
{
2437+
"type": "functional_extension",
2438+
"named": true,
2439+
"fields": {},
2440+
"children": {
2441+
"multiple": true,
2442+
"required": true,
2443+
"types": [
2444+
{
2445+
"type": "arguments",
2446+
"named": true
2447+
},
2448+
{
2449+
"type": "generic_type",
2450+
"named": true
2451+
},
2452+
{
2453+
"type": "nested_type_identifier",
2454+
"named": true
2455+
},
2456+
{
2457+
"type": "type_arguments",
2458+
"named": true
2459+
},
2460+
{
2461+
"type": "type_identifier",
2462+
"named": true
2463+
}
2464+
]
2465+
}
2466+
},
24322467
{
24332468
"type": "generator_function",
24342469
"named": true,
@@ -5852,11 +5887,11 @@
58525887
},
58535888
{
58545889
"type": "number",
5855-
"named": true
5890+
"named": false
58565891
},
58575892
{
58585893
"type": "number",
5859-
"named": false
5894+
"named": true
58605895
},
58615896
{
58625897
"type": "of",

0 commit comments

Comments
 (0)