Skip to content

Commit d863bcb

Browse files
committed
Remove intersection/union types from _type
1 parent dfaf3d1 commit d863bcb

File tree

5 files changed

+211349
-211894
lines changed

5 files changed

+211349
-211894
lines changed

common/define-grammar.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,6 @@ module.exports = function defineGrammar(dialect) {
587587

588588
_type: $ => choice(
589589
$._primary_type,
590-
$.union_type,
591-
$.intersection_type,
592590
$.function_type,
593591
$.readonly_type,
594592
$.constructor_type,

tsx/src/grammar.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8347,14 +8347,6 @@
83478347
"type": "SYMBOL",
83488348
"name": "_primary_type"
83498349
},
8350-
{
8351-
"type": "SYMBOL",
8352-
"name": "union_type"
8353-
},
8354-
{
8355-
"type": "SYMBOL",
8356-
"name": "intersection_type"
8357-
},
83588350
{
83598351
"type": "SYMBOL",
83608352
"name": "function_type"

0 commit comments

Comments
 (0)