Skip to content

Commit 6b64f21

Browse files
committed
regenerate parser for 'typed_call_expressions'
1 parent caed1a3 commit 6b64f21

File tree

6 files changed

+227944
-218027
lines changed

6 files changed

+227944
-218027
lines changed

tsx/src/grammar.json

Lines changed: 184 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,22 +3095,22 @@
30953095
"type": "CHOICE",
30963096
"members": [
30973097
{
3098-
"type": "PREC",
3099-
"value": 11,
3100-
"content": {
3101-
"type": "SEQ",
3102-
"members": [
3103-
{
3104-
"type": "FIELD",
3105-
"name": "function",
3106-
"content": {
3107-
"type": "SYMBOL",
3108-
"name": "_expression"
3109-
}
3110-
},
3111-
{
3112-
"type": "FIELD",
3113-
"name": "type_arguments",
3098+
"type": "SEQ",
3099+
"members": [
3100+
{
3101+
"type": "FIELD",
3102+
"name": "function",
3103+
"content": {
3104+
"type": "SYMBOL",
3105+
"name": "_primary_expression"
3106+
}
3107+
},
3108+
{
3109+
"type": "FIELD",
3110+
"name": "type_arguments",
3111+
"content": {
3112+
"type": "PREC_DYNAMIC",
3113+
"value": 11,
31143114
"content": {
31153115
"type": "CHOICE",
31163116
"members": [
@@ -3123,31 +3123,94 @@
31233123
}
31243124
]
31253125
}
3126-
},
3127-
{
3128-
"type": "FIELD",
3129-
"name": "arguments",
3126+
}
3127+
},
3128+
{
3129+
"type": "FIELD",
3130+
"name": "arguments",
3131+
"content": {
3132+
"type": "CHOICE",
3133+
"members": [
3134+
{
3135+
"type": "SYMBOL",
3136+
"name": "arguments"
3137+
},
3138+
{
3139+
"type": "SYMBOL",
3140+
"name": "template_string"
3141+
}
3142+
]
3143+
}
3144+
}
3145+
]
3146+
},
3147+
{
3148+
"type": "SEQ",
3149+
"members": [
3150+
{
3151+
"type": "FIELD",
3152+
"name": "function",
3153+
"content": {
3154+
"type": "SYMBOL",
3155+
"name": "_primary_expression"
3156+
}
3157+
},
3158+
{
3159+
"type": "STRING",
3160+
"value": "?."
3161+
},
3162+
{
3163+
"type": "FIELD",
3164+
"name": "type_arguments",
3165+
"content": {
3166+
"type": "PREC_DYNAMIC",
3167+
"value": 14,
31303168
"content": {
31313169
"type": "CHOICE",
31323170
"members": [
31333171
{
31343172
"type": "SYMBOL",
3135-
"name": "arguments"
3173+
"name": "type_arguments"
31363174
},
31373175
{
3138-
"type": "SYMBOL",
3139-
"name": "template_string"
3176+
"type": "BLANK"
31403177
}
31413178
]
31423179
}
31433180
}
3144-
]
3145-
}
3146-
},
3147-
{
3148-
"type": "PREC",
3149-
"value": 14,
3150-
"content": {
3181+
},
3182+
{
3183+
"type": "FIELD",
3184+
"name": "arguments",
3185+
"content": {
3186+
"type": "CHOICE",
3187+
"members": [
3188+
{
3189+
"type": "SYMBOL",
3190+
"name": "arguments"
3191+
},
3192+
{
3193+
"type": "SYMBOL",
3194+
"name": "template_string"
3195+
}
3196+
]
3197+
}
3198+
}
3199+
]
3200+
}
3201+
]
3202+
},
3203+
"new_expression": {
3204+
"type": "PREC_DYNAMIC",
3205+
"value": 12,
3206+
"content": {
3207+
"type": "SEQ",
3208+
"members": [
3209+
{
3210+
"type": "STRING",
3211+
"value": "new"
3212+
},
3213+
{
31513214
"type": "SEQ",
31523215
"members": [
31533216
{
@@ -3159,88 +3222,44 @@
31593222
}
31603223
},
31613224
{
3162-
"type": "STRING",
3163-
"value": "?."
3225+
"type": "FIELD",
3226+
"name": "type_arguments",
3227+
"content": {
3228+
"type": "PREC_DYNAMIC",
3229+
"value": 12,
3230+
"content": {
3231+
"type": "CHOICE",
3232+
"members": [
3233+
{
3234+
"type": "SYMBOL",
3235+
"name": "type_arguments"
3236+
},
3237+
{
3238+
"type": "BLANK"
3239+
}
3240+
]
3241+
}
3242+
}
31643243
},
31653244
{
31663245
"type": "FIELD",
3167-
"name": "type_arguments",
3246+
"name": "arguments",
31683247
"content": {
31693248
"type": "CHOICE",
31703249
"members": [
31713250
{
31723251
"type": "SYMBOL",
3173-
"name": "type_arguments"
3252+
"name": "arguments"
31743253
},
31753254
{
3176-
"type": "BLANK"
3255+
"type": "SYMBOL",
3256+
"name": "template_string"
31773257
}
31783258
]
31793259
}
3180-
},
3181-
{
3182-
"type": "FIELD",
3183-
"name": "arguments",
3184-
"content": {
3185-
"type": "SYMBOL",
3186-
"name": "arguments"
3187-
}
31883260
}
31893261
]
31903262
}
3191-
}
3192-
]
3193-
},
3194-
"new_expression": {
3195-
"type": "PREC_RIGHT",
3196-
"value": 12,
3197-
"content": {
3198-
"type": "SEQ",
3199-
"members": [
3200-
{
3201-
"type": "STRING",
3202-
"value": "new"
3203-
},
3204-
{
3205-
"type": "FIELD",
3206-
"name": "constructor",
3207-
"content": {
3208-
"type": "SYMBOL",
3209-
"name": "_primary_expression"
3210-
}
3211-
},
3212-
{
3213-
"type": "FIELD",
3214-
"name": "type_arguments",
3215-
"content": {
3216-
"type": "CHOICE",
3217-
"members": [
3218-
{
3219-
"type": "SYMBOL",
3220-
"name": "type_arguments"
3221-
},
3222-
{
3223-
"type": "BLANK"
3224-
}
3225-
]
3226-
}
3227-
},
3228-
{
3229-
"type": "FIELD",
3230-
"name": "arguments",
3231-
"content": {
3232-
"type": "CHOICE",
3233-
"members": [
3234-
{
3235-
"type": "SYMBOL",
3236-
"name": "arguments"
3237-
},
3238-
{
3239-
"type": "BLANK"
3240-
}
3241-
]
3242-
}
3243-
}
32443263
]
32453264
}
32463265
},
@@ -4924,7 +4943,7 @@
49244943
},
49254944
{
49264945
"type": "PATTERN",
4927-
"value": "[^*]*\\*+([^\\/*][^*]*\\*+)*"
4946+
"value": "[^*]*\\*+([^/*][^*]*\\*+)*"
49284947
},
49294948
{
49304949
"type": "STRING",
@@ -5086,7 +5105,7 @@
50865105
},
50875106
{
50885107
"type": "PATTERN",
5089-
"value": "[^\\/\\\\\\[\\n]"
5108+
"value": "[^/\\\\\\[\\n]"
50905109
}
50915110
]
50925111
}
@@ -5595,13 +5614,13 @@
55955614
"members": [
55965615
{
55975616
"type": "PATTERN",
5598-
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5617+
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
55995618
},
56005619
{
56015620
"type": "REPEAT",
56025621
"content": {
56035622
"type": "PATTERN",
5604-
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5623+
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
56055624
}
56065625
}
56075626
]
@@ -9139,6 +9158,71 @@
91399158
"_for_header",
91409159
"_expression"
91419160
],
9161+
[
9162+
"_expression",
9163+
"call_expression"
9164+
],
9165+
[
9166+
"_expression",
9167+
"arrow_function",
9168+
"call_expression"
9169+
],
9170+
[
9171+
"_property_name",
9172+
"arrow_function",
9173+
"call_expression"
9174+
],
9175+
[
9176+
"_property_name",
9177+
"_expression",
9178+
"arrow_function",
9179+
"call_expression"
9180+
],
9181+
[
9182+
"_property_name",
9183+
"call_expression"
9184+
],
9185+
[
9186+
"_expression",
9187+
"_property_name",
9188+
"call_expression"
9189+
],
9190+
[
9191+
"_expression",
9192+
"call_expression",
9193+
"new_expression",
9194+
"member_expression",
9195+
"subscript_expression"
9196+
],
9197+
[
9198+
"_expression",
9199+
"call_expression",
9200+
"generic_type"
9201+
],
9202+
[
9203+
"_expression",
9204+
"call_expression",
9205+
"new_expression"
9206+
],
9207+
[
9208+
"_expression",
9209+
"new_expression"
9210+
],
9211+
[
9212+
"_expression",
9213+
"arrow_function",
9214+
"call_expression",
9215+
"new_expression"
9216+
],
9217+
[
9218+
"call_expression",
9219+
"new_expression"
9220+
],
9221+
[
9222+
"arrow_function",
9223+
"new_expression",
9224+
"call_expression"
9225+
],
91429226
[
91439227
"call_expression",
91449228
"binary_expression"

0 commit comments

Comments
 (0)