Skip to content

Commit af8df99

Browse files
committed
regenerate the parser
1 parent f179780 commit af8df99

File tree

6 files changed

+398784
-398301
lines changed

6 files changed

+398784
-398301
lines changed

tsx/src/grammar.json

Lines changed: 114 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -5260,7 +5260,7 @@
52605260
},
52615261
{
52625262
"type": "PATTERN",
5263-
"value": "[^*]*\\*+([^\\/*][^*]*\\*+)*"
5263+
"value": "[^*]*\\*+([^/*][^*]*\\*+)*"
52645264
},
52655265
{
52665266
"type": "STRING",
@@ -5424,7 +5424,7 @@
54245424
},
54255425
{
54265426
"type": "PATTERN",
5427-
"value": "[^\\/\\\\\\[\\n]"
5427+
"value": "[^/\\\\\\[\\n]"
54285428
}
54295429
]
54305430
}
@@ -5947,13 +5947,13 @@
59475947
"members": [
59485948
{
59495949
"type": "PATTERN",
5950-
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5950+
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
59515951
},
59525952
{
59535953
"type": "REPEAT",
59545954
"content": {
59555955
"type": "PATTERN",
5956-
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5956+
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
59575957
}
59585958
}
59595959
]
@@ -5970,13 +5970,13 @@
59705970
},
59715971
{
59725972
"type": "PATTERN",
5973-
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5973+
"value": "[^\\x00-\\x1F\\s0-9:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
59745974
},
59755975
{
59765976
"type": "REPEAT",
59775977
"content": {
59785978
"type": "PATTERN",
5979-
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*\\/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
5979+
"value": "[^\\x00-\\x1F\\s:;`\"'@#.,|^&<=>+\\-*/\\\\%?!~()\\[\\]{}\\uFEFF\\u2060\\u200B\\u00A0]|\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}"
59805980
}
59815981
}
59825982
]
@@ -7730,95 +7730,117 @@
77307730
}
77317731
]
77327732
},
7733+
"_extends_type": {
7734+
"type": "CHOICE",
7735+
"members": [
7736+
{
7737+
"type": "SYMBOL",
7738+
"name": "_type_identifier"
7739+
},
7740+
{
7741+
"type": "SYMBOL",
7742+
"name": "nested_type_identifier"
7743+
},
7744+
{
7745+
"type": "SYMBOL",
7746+
"name": "generic_type"
7747+
}
7748+
]
7749+
},
7750+
"functional_extension": {
7751+
"type": "SEQ",
7752+
"members": [
7753+
{
7754+
"type": "SYMBOL",
7755+
"name": "_extends_type"
7756+
},
7757+
{
7758+
"type": "SYMBOL",
7759+
"name": "arguments"
7760+
},
7761+
{
7762+
"type": "CHOICE",
7763+
"members": [
7764+
{
7765+
"type": "SYMBOL",
7766+
"name": "type_arguments"
7767+
},
7768+
{
7769+
"type": "BLANK"
7770+
}
7771+
]
7772+
}
7773+
]
7774+
},
77337775
"extends_clause": {
7734-
"type": "PREC",
7735-
"value": "extends_type",
7736-
"content": {
7737-
"type": "SEQ",
7738-
"members": [
7739-
{
7740-
"type": "STRING",
7741-
"value": "extends"
7742-
},
7743-
{
7744-
"type": "SEQ",
7745-
"members": [
7746-
{
7747-
"type": "CHOICE",
7748-
"members": [
7749-
{
7750-
"type": "PREC",
7751-
"value": "extends_type",
7752-
"content": {
7753-
"type": "CHOICE",
7754-
"members": [
7755-
{
7756-
"type": "SYMBOL",
7757-
"name": "_type_identifier"
7758-
},
7759-
{
7760-
"type": "SYMBOL",
7761-
"name": "nested_type_identifier"
7762-
},
7763-
{
7764-
"type": "SYMBOL",
7765-
"name": "generic_type"
7766-
}
7767-
]
7768-
}
7769-
},
7770-
{
7771-
"type": "SYMBOL",
7772-
"name": "expression"
7773-
}
7774-
]
7775-
},
7776-
{
7777-
"type": "REPEAT",
7778-
"content": {
7779-
"type": "SEQ",
7776+
"type": "SEQ",
7777+
"members": [
7778+
{
7779+
"type": "STRING",
7780+
"value": "extends"
7781+
},
7782+
{
7783+
"type": "SEQ",
7784+
"members": [
7785+
{
7786+
"type": "CHOICE",
7787+
"members": [
7788+
{
7789+
"type": "CHOICE",
77807790
"members": [
77817791
{
7782-
"type": "STRING",
7783-
"value": ","
7792+
"type": "SYMBOL",
7793+
"name": "_extends_type"
77847794
},
77857795
{
7786-
"type": "CHOICE",
7787-
"members": [
7788-
{
7789-
"type": "PREC",
7790-
"value": "extends_type",
7791-
"content": {
7792-
"type": "CHOICE",
7793-
"members": [
7794-
{
7795-
"type": "SYMBOL",
7796-
"name": "_type_identifier"
7797-
},
7798-
{
7799-
"type": "SYMBOL",
7800-
"name": "nested_type_identifier"
7801-
},
7802-
{
7803-
"type": "SYMBOL",
7804-
"name": "generic_type"
7805-
}
7806-
]
7807-
}
7808-
},
7809-
{
7810-
"type": "SYMBOL",
7811-
"name": "expression"
7812-
}
7813-
]
7796+
"type": "SYMBOL",
7797+
"name": "functional_extension"
78147798
}
78157799
]
7800+
},
7801+
{
7802+
"type": "SYMBOL",
7803+
"name": "expression"
78167804
}
7805+
]
7806+
},
7807+
{
7808+
"type": "REPEAT",
7809+
"content": {
7810+
"type": "SEQ",
7811+
"members": [
7812+
{
7813+
"type": "STRING",
7814+
"value": ","
7815+
},
7816+
{
7817+
"type": "CHOICE",
7818+
"members": [
7819+
{
7820+
"type": "CHOICE",
7821+
"members": [
7822+
{
7823+
"type": "SYMBOL",
7824+
"name": "_extends_type"
7825+
},
7826+
{
7827+
"type": "SYMBOL",
7828+
"name": "functional_extension"
7829+
}
7830+
]
7831+
},
7832+
{
7833+
"type": "SYMBOL",
7834+
"name": "expression"
7835+
}
7836+
]
7837+
}
7838+
]
78177839
}
7818-
]
7819-
}
7820-
]
7821-
}
7840+
}
7841+
]
7842+
}
7843+
]
78227844
},
78237845
"enum_declaration": {
78247846
"type": "SEQ",
@@ -10052,8 +10074,12 @@
1005210074
],
1005310075
[
1005410076
{
10055-
"type": "STRING",
10056-
"value": "extends_type"
10077+
"type": "SYMBOL",
10078+
"name": "_extends_type"
10079+
},
10080+
{
10081+
"type": "SYMBOL",
10082+
"name": "extends_clause"
1005710083
},
1005810084
{
1005910085
"type": "SYMBOL",

tsx/src/node-types.json

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,14 @@
11191119
{
11201120
"type": "expression",
11211121
"named": true
1122+
},
1123+
{
1124+
"type": "identifier",
1125+
"named": true
1126+
},
1127+
{
1128+
"type": "member_expression",
1129+
"named": true
11221130
}
11231131
]
11241132
},
@@ -2027,6 +2035,10 @@
20272035
"type": "expression",
20282036
"named": true
20292037
},
2038+
{
2039+
"type": "functional_extension",
2040+
"named": true
2041+
},
20302042
{
20312043
"type": "generic_type",
20322044
"named": true
@@ -2459,6 +2471,37 @@
24592471
]
24602472
}
24612473
},
2474+
{
2475+
"type": "functional_extension",
2476+
"named": true,
2477+
"fields": {},
2478+
"children": {
2479+
"multiple": true,
2480+
"required": true,
2481+
"types": [
2482+
{
2483+
"type": "arguments",
2484+
"named": true
2485+
},
2486+
{
2487+
"type": "generic_type",
2488+
"named": true
2489+
},
2490+
{
2491+
"type": "nested_type_identifier",
2492+
"named": true
2493+
},
2494+
{
2495+
"type": "type_arguments",
2496+
"named": true
2497+
},
2498+
{
2499+
"type": "type_identifier",
2500+
"named": true
2501+
}
2502+
]
2503+
}
2504+
},
24622505
{
24632506
"type": "generator_function",
24642507
"named": true,
@@ -3471,6 +3514,14 @@
34713514
{
34723515
"type": "expression",
34733516
"named": true
3517+
},
3518+
{
3519+
"type": "identifier",
3520+
"named": true
3521+
},
3522+
{
3523+
"type": "member_expression",
3524+
"named": true
34743525
}
34753526
]
34763527
},
@@ -5902,11 +5953,11 @@
59025953
},
59035954
{
59045955
"type": "number",
5905-
"named": true
5956+
"named": false
59065957
},
59075958
{
59085959
"type": "number",
5909-
"named": false
5960+
"named": true
59105961
},
59115962
{
59125963
"type": "of",

0 commit comments

Comments
 (0)