Skip to content

Commit d691a30

Browse files
committed
regenerate parser
1 parent 4d798e1 commit d691a30

File tree

6 files changed

+306269
-251539
lines changed

6 files changed

+306269
-251539
lines changed

tsx/src/grammar.json

Lines changed: 188 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,157 +3117,129 @@
31173117
]
31183118
},
31193119
"call_expression": {
3120-
"type": "CHOICE",
3120+
"type": "SEQ",
31213121
"members": [
31223122
{
3123-
"type": "PREC",
3124-
"value": 11,
3123+
"type": "FIELD",
3124+
"name": "function",
31253125
"content": {
3126-
"type": "SEQ",
3126+
"type": "SYMBOL",
3127+
"name": "_primary_expression"
3128+
}
3129+
},
3130+
{
3131+
"type": "CHOICE",
3132+
"members": [
3133+
{
3134+
"type": "STRING",
3135+
"value": "?."
3136+
},
3137+
{
3138+
"type": "BLANK"
3139+
}
3140+
]
3141+
},
3142+
{
3143+
"type": "FIELD",
3144+
"name": "type_arguments",
3145+
"content": {
3146+
"type": "CHOICE",
31273147
"members": [
31283148
{
3129-
"type": "FIELD",
3130-
"name": "function",
3131-
"content": {
3132-
"type": "SYMBOL",
3133-
"name": "_expression"
3134-
}
3135-
},
3136-
{
3137-
"type": "FIELD",
3138-
"name": "type_arguments",
3139-
"content": {
3140-
"type": "CHOICE",
3141-
"members": [
3142-
{
3143-
"type": "SYMBOL",
3144-
"name": "type_arguments"
3145-
},
3146-
{
3147-
"type": "BLANK"
3148-
}
3149-
]
3150-
}
3149+
"type": "SYMBOL",
3150+
"name": "call_type_arguments"
31513151
},
31523152
{
3153-
"type": "FIELD",
3154-
"name": "arguments",
3155-
"content": {
3156-
"type": "CHOICE",
3157-
"members": [
3158-
{
3159-
"type": "SYMBOL",
3160-
"name": "arguments"
3161-
},
3162-
{
3163-
"type": "SYMBOL",
3164-
"name": "template_string"
3165-
}
3166-
]
3167-
}
3153+
"type": "BLANK"
31683154
}
31693155
]
31703156
}
31713157
},
31723158
{
3173-
"type": "PREC",
3174-
"value": 14,
3159+
"type": "FIELD",
3160+
"name": "arguments",
31753161
"content": {
3176-
"type": "SEQ",
3162+
"type": "CHOICE",
31773163
"members": [
31783164
{
3179-
"type": "FIELD",
3180-
"name": "function",
3181-
"content": {
3182-
"type": "SYMBOL",
3183-
"name": "_primary_expression"
3184-
}
3185-
},
3186-
{
3187-
"type": "STRING",
3188-
"value": "?."
3189-
},
3190-
{
3191-
"type": "FIELD",
3192-
"name": "type_arguments",
3193-
"content": {
3194-
"type": "CHOICE",
3195-
"members": [
3196-
{
3197-
"type": "SYMBOL",
3198-
"name": "type_arguments"
3199-
},
3200-
{
3201-
"type": "BLANK"
3202-
}
3203-
]
3204-
}
3165+
"type": "SYMBOL",
3166+
"name": "arguments"
32053167
},
32063168
{
3207-
"type": "FIELD",
3208-
"name": "arguments",
3209-
"content": {
3210-
"type": "SYMBOL",
3211-
"name": "arguments"
3212-
}
3169+
"type": "SYMBOL",
3170+
"name": "template_string"
32133171
}
32143172
]
32153173
}
32163174
}
32173175
]
32183176
},
32193177
"new_expression": {
3220-
"type": "PREC_RIGHT",
3221-
"value": 12,
3222-
"content": {
3223-
"type": "SEQ",
3224-
"members": [
3225-
{
3226-
"type": "STRING",
3227-
"value": "new"
3228-
},
3229-
{
3230-
"type": "FIELD",
3231-
"name": "constructor",
3232-
"content": {
3233-
"type": "SYMBOL",
3234-
"name": "_primary_expression"
3235-
}
3236-
},
3237-
{
3238-
"type": "FIELD",
3239-
"name": "type_arguments",
3240-
"content": {
3241-
"type": "CHOICE",
3242-
"members": [
3243-
{
3244-
"type": "SYMBOL",
3245-
"name": "type_arguments"
3246-
},
3247-
{
3248-
"type": "BLANK"
3249-
}
3250-
]
3251-
}
3252-
},
3253-
{
3254-
"type": "FIELD",
3255-
"name": "arguments",
3256-
"content": {
3178+
"type": "SEQ",
3179+
"members": [
3180+
{
3181+
"type": "STRING",
3182+
"value": "new"
3183+
},
3184+
{
3185+
"type": "SEQ",
3186+
"members": [
3187+
{
3188+
"type": "FIELD",
3189+
"name": "constructor",
3190+
"content": {
3191+
"type": "SYMBOL",
3192+
"name": "_primary_expression"
3193+
}
3194+
},
3195+
{
32573196
"type": "CHOICE",
32583197
"members": [
32593198
{
3260-
"type": "SYMBOL",
3261-
"name": "arguments"
3199+
"type": "STRING",
3200+
"value": "?."
32623201
},
32633202
{
32643203
"type": "BLANK"
32653204
}
32663205
]
3206+
},
3207+
{
3208+
"type": "FIELD",
3209+
"name": "type_arguments",
3210+
"content": {
3211+
"type": "CHOICE",
3212+
"members": [
3213+
{
3214+
"type": "SYMBOL",
3215+
"name": "call_type_arguments"
3216+
},
3217+
{
3218+
"type": "BLANK"
3219+
}
3220+
]
3221+
}
3222+
},
3223+
{
3224+
"type": "FIELD",
3225+
"name": "arguments",
3226+
"content": {
3227+
"type": "CHOICE",
3228+
"members": [
3229+
{
3230+
"type": "SYMBOL",
3231+
"name": "arguments"
3232+
},
3233+
{
3234+
"type": "SYMBOL",
3235+
"name": "template_string"
3236+
}
3237+
]
3238+
}
32673239
}
3268-
}
3269-
]
3270-
}
3240+
]
3241+
}
3242+
]
32713243
},
32723244
"await_expression": {
32733245
"type": "SEQ",
@@ -8167,7 +8139,7 @@
81678139
},
81688140
"type_query": {
81698141
"type": "PREC",
8170-
"value": 7,
8142+
"value": 18,
81718143
"content": {
81728144
"type": "SEQ",
81738145
"members": [
@@ -8460,6 +8432,56 @@
84608432
}
84618433
]
84628434
},
8435+
"call_type_arguments": {
8436+
"type": "SEQ",
8437+
"members": [
8438+
{
8439+
"type": "STRING",
8440+
"value": "<"
8441+
},
8442+
{
8443+
"type": "SEQ",
8444+
"members": [
8445+
{
8446+
"type": "SYMBOL",
8447+
"name": "_type"
8448+
},
8449+
{
8450+
"type": "REPEAT",
8451+
"content": {
8452+
"type": "SEQ",
8453+
"members": [
8454+
{
8455+
"type": "STRING",
8456+
"value": ","
8457+
},
8458+
{
8459+
"type": "SYMBOL",
8460+
"name": "_type"
8461+
}
8462+
]
8463+
}
8464+
}
8465+
]
8466+
},
8467+
{
8468+
"type": "CHOICE",
8469+
"members": [
8470+
{
8471+
"type": "STRING",
8472+
"value": ","
8473+
},
8474+
{
8475+
"type": "BLANK"
8476+
}
8477+
]
8478+
},
8479+
{
8480+
"type": "SYMBOL",
8481+
"name": "_call_type_arguments_closing_bracket"
8482+
}
8483+
]
8484+
},
84638485
"object_type": {
84648486
"type": "SEQ",
84658487
"members": [
@@ -9250,13 +9272,53 @@
92509272
"_expression"
92519273
],
92529274
[
9275+
"_expression",
9276+
"call_expression"
9277+
],
9278+
[
9279+
"_expression",
9280+
"arrow_function",
9281+
"call_expression"
9282+
],
9283+
[
9284+
"arrow_function",
9285+
"call_expression",
9286+
"_property_name"
9287+
],
9288+
[
9289+
"_expression",
9290+
"arrow_function",
9291+
"call_expression",
9292+
"_property_name"
9293+
],
9294+
[
9295+
"call_expression",
9296+
"_property_name"
9297+
],
9298+
[
9299+
"_expression",
9300+
"call_expression",
9301+
"_property_name"
9302+
],
9303+
[
9304+
"_expression",
9305+
"call_expression",
9306+
"generic_type"
9307+
],
9308+
[
9309+
"_expression",
9310+
"call_expression",
9311+
"new_expression"
9312+
],
9313+
[
9314+
"_expression",
9315+
"arrow_function",
92539316
"call_expression",
9254-
"binary_expression"
9317+
"new_expression"
92559318
],
92569319
[
92579320
"call_expression",
9258-
"binary_expression",
9259-
"unary_expression"
9321+
"new_expression"
92609322
],
92619323
[
92629324
"nested_type_identifier",
@@ -9397,6 +9459,10 @@
93979459
{
93989460
"type": "SYMBOL",
93999461
"name": "_function_signature_automatic_semicolon"
9462+
},
9463+
{
9464+
"type": "SYMBOL",
9465+
"name": "_call_type_arguments_closing_bracket"
94009466
}
94019467
],
94029468
"inline": [

0 commit comments

Comments
 (0)