Skip to content

Commit c16a41e

Browse files
committed
regenerate parser
1 parent a6985c5 commit c16a41e

File tree

6 files changed

+284986
-558716
lines changed

6 files changed

+284986
-558716
lines changed

tsx/src/grammar.json

Lines changed: 300 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8678,6 +8678,220 @@
86788678
}
86798679
]
86808680
},
8681+
"_type_query_member_expression": {
8682+
"type": "SEQ",
8683+
"members": [
8684+
{
8685+
"type": "FIELD",
8686+
"name": "object",
8687+
"content": {
8688+
"type": "CHOICE",
8689+
"members": [
8690+
{
8691+
"type": "SYMBOL",
8692+
"name": "identifier"
8693+
},
8694+
{
8695+
"type": "ALIAS",
8696+
"content": {
8697+
"type": "SYMBOL",
8698+
"name": "_type_query_subscript_expression"
8699+
},
8700+
"named": true,
8701+
"value": "subscript_expression"
8702+
},
8703+
{
8704+
"type": "ALIAS",
8705+
"content": {
8706+
"type": "SYMBOL",
8707+
"name": "_type_query_member_expression"
8708+
},
8709+
"named": true,
8710+
"value": "member_expression"
8711+
},
8712+
{
8713+
"type": "ALIAS",
8714+
"content": {
8715+
"type": "SYMBOL",
8716+
"name": "_type_query_call_expression"
8717+
},
8718+
"named": true,
8719+
"value": "call_expression"
8720+
}
8721+
]
8722+
}
8723+
},
8724+
{
8725+
"type": "CHOICE",
8726+
"members": [
8727+
{
8728+
"type": "STRING",
8729+
"value": "."
8730+
},
8731+
{
8732+
"type": "STRING",
8733+
"value": "?."
8734+
}
8735+
]
8736+
},
8737+
{
8738+
"type": "FIELD",
8739+
"name": "property",
8740+
"content": {
8741+
"type": "CHOICE",
8742+
"members": [
8743+
{
8744+
"type": "SYMBOL",
8745+
"name": "private_property_identifier"
8746+
},
8747+
{
8748+
"type": "ALIAS",
8749+
"content": {
8750+
"type": "SYMBOL",
8751+
"name": "identifier"
8752+
},
8753+
"named": true,
8754+
"value": "property_identifier"
8755+
}
8756+
]
8757+
}
8758+
}
8759+
]
8760+
},
8761+
"_type_query_subscript_expression": {
8762+
"type": "SEQ",
8763+
"members": [
8764+
{
8765+
"type": "FIELD",
8766+
"name": "object",
8767+
"content": {
8768+
"type": "CHOICE",
8769+
"members": [
8770+
{
8771+
"type": "SYMBOL",
8772+
"name": "identifier"
8773+
},
8774+
{
8775+
"type": "ALIAS",
8776+
"content": {
8777+
"type": "SYMBOL",
8778+
"name": "_type_query_subscript_expression"
8779+
},
8780+
"named": true,
8781+
"value": "subscript_expression"
8782+
},
8783+
{
8784+
"type": "ALIAS",
8785+
"content": {
8786+
"type": "SYMBOL",
8787+
"name": "_type_query_member_expression"
8788+
},
8789+
"named": true,
8790+
"value": "member_expression"
8791+
},
8792+
{
8793+
"type": "ALIAS",
8794+
"content": {
8795+
"type": "SYMBOL",
8796+
"name": "_type_query_call_expression"
8797+
},
8798+
"named": true,
8799+
"value": "call_expression"
8800+
}
8801+
]
8802+
}
8803+
},
8804+
{
8805+
"type": "CHOICE",
8806+
"members": [
8807+
{
8808+
"type": "STRING",
8809+
"value": "?."
8810+
},
8811+
{
8812+
"type": "BLANK"
8813+
}
8814+
]
8815+
},
8816+
{
8817+
"type": "STRING",
8818+
"value": "["
8819+
},
8820+
{
8821+
"type": "FIELD",
8822+
"name": "index",
8823+
"content": {
8824+
"type": "CHOICE",
8825+
"members": [
8826+
{
8827+
"type": "SYMBOL",
8828+
"name": "predefined_type"
8829+
},
8830+
{
8831+
"type": "SYMBOL",
8832+
"name": "string"
8833+
},
8834+
{
8835+
"type": "SYMBOL",
8836+
"name": "number"
8837+
}
8838+
]
8839+
}
8840+
},
8841+
{
8842+
"type": "STRING",
8843+
"value": "]"
8844+
}
8845+
]
8846+
},
8847+
"_type_query_call_expression": {
8848+
"type": "SEQ",
8849+
"members": [
8850+
{
8851+
"type": "FIELD",
8852+
"name": "function",
8853+
"content": {
8854+
"type": "CHOICE",
8855+
"members": [
8856+
{
8857+
"type": "SYMBOL",
8858+
"name": "import"
8859+
},
8860+
{
8861+
"type": "SYMBOL",
8862+
"name": "identifier"
8863+
},
8864+
{
8865+
"type": "ALIAS",
8866+
"content": {
8867+
"type": "SYMBOL",
8868+
"name": "_type_query_member_expression"
8869+
},
8870+
"named": true,
8871+
"value": "member_expression"
8872+
},
8873+
{
8874+
"type": "ALIAS",
8875+
"content": {
8876+
"type": "SYMBOL",
8877+
"name": "_type_query_subscript_expression"
8878+
},
8879+
"named": true,
8880+
"value": "subscript_expression"
8881+
}
8882+
]
8883+
}
8884+
},
8885+
{
8886+
"type": "FIELD",
8887+
"name": "arguments",
8888+
"content": {
8889+
"type": "SYMBOL",
8890+
"name": "arguments"
8891+
}
8892+
}
8893+
]
8894+
},
86818895
"type_query": {
86828896
"type": "PREC_RIGHT",
86838897
"value": 0,
@@ -8692,12 +8906,35 @@
86928906
"type": "CHOICE",
86938907
"members": [
86948908
{
8695-
"type": "SYMBOL",
8696-
"name": "primary_expression"
8909+
"type": "ALIAS",
8910+
"content": {
8911+
"type": "SYMBOL",
8912+
"name": "_type_query_subscript_expression"
8913+
},
8914+
"named": true,
8915+
"value": "subscript_expression"
8916+
},
8917+
{
8918+
"type": "ALIAS",
8919+
"content": {
8920+
"type": "SYMBOL",
8921+
"name": "_type_query_member_expression"
8922+
},
8923+
"named": true,
8924+
"value": "member_expression"
8925+
},
8926+
{
8927+
"type": "ALIAS",
8928+
"content": {
8929+
"type": "SYMBOL",
8930+
"name": "_type_query_call_expression"
8931+
},
8932+
"named": true,
8933+
"value": "call_expression"
86978934
},
86988935
{
86998936
"type": "SYMBOL",
8700-
"name": "generic_type"
8937+
"name": "identifier"
87018938
}
87028939
]
87038940
}
@@ -10310,6 +10547,66 @@
1031010547
"type": "SYMBOL",
1031110548
"name": "_primary_type"
1031210549
}
10550+
],
10551+
[
10552+
{
10553+
"type": "SYMBOL",
10554+
"name": "_type_query_member_expression"
10555+
},
10556+
{
10557+
"type": "SYMBOL",
10558+
"name": "member_expression"
10559+
}
10560+
],
10561+
[
10562+
{
10563+
"type": "SYMBOL",
10564+
"name": "_type_query_member_expression"
10565+
},
10566+
{
10567+
"type": "SYMBOL",
10568+
"name": "primary_expression"
10569+
}
10570+
],
10571+
[
10572+
{
10573+
"type": "SYMBOL",
10574+
"name": "_type_query_subscript_expression"
10575+
},
10576+
{
10577+
"type": "SYMBOL",
10578+
"name": "subscript_expression"
10579+
}
10580+
],
10581+
[
10582+
{
10583+
"type": "SYMBOL",
10584+
"name": "_type_query_subscript_expression"
10585+
},
10586+
{
10587+
"type": "SYMBOL",
10588+
"name": "primary_expression"
10589+
}
10590+
],
10591+
[
10592+
{
10593+
"type": "SYMBOL",
10594+
"name": "_type_query_call_expression"
10595+
},
10596+
{
10597+
"type": "SYMBOL",
10598+
"name": "primary_expression"
10599+
}
10600+
],
10601+
[
10602+
{
10603+
"type": "SYMBOL",
10604+
"name": "type_query"
10605+
},
10606+
{
10607+
"type": "SYMBOL",
10608+
"name": "primary_expression"
10609+
}
1031310610
]
1031410611
],
1031510612
"externals": [

tsx/src/node-types.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4721,9 +4721,21 @@
47214721
"type": "expression",
47224722
"named": true
47234723
},
4724+
{
4725+
"type": "number",
4726+
"named": true
4727+
},
4728+
{
4729+
"type": "predefined_type",
4730+
"named": true
4731+
},
47244732
{
47254733
"type": "sequence_expression",
47264734
"named": true
4735+
},
4736+
{
4737+
"type": "string",
4738+
"named": true
47274739
}
47284740
]
47294741
},
@@ -5286,11 +5298,19 @@
52865298
"required": true,
52875299
"types": [
52885300
{
5289-
"type": "generic_type",
5301+
"type": "call_expression",
5302+
"named": true
5303+
},
5304+
{
5305+
"type": "identifier",
5306+
"named": true
5307+
},
5308+
{
5309+
"type": "member_expression",
52905310
"named": true
52915311
},
52925312
{
5293-
"type": "primary_expression",
5313+
"type": "subscript_expression",
52945314
"named": true
52955315
}
52965316
]

0 commit comments

Comments
 (0)