@@ -308,6 +308,10 @@ module SyntaxKind {
308
308
GlobalKeyword ?: number ; // 1.8 only
309
309
ThisType ?: number ; // 1.8 only
310
310
StringLiteralType ?: number ; // 1.8 only
311
+ GlobalModuleExportDeclaration ?: number ,
312
+ NonNullExpression ?: number ,
313
+ UndefinedKeyword ?: number ,
314
+ ReadonlyKeyword ?: number
311
315
}
312
316
313
317
var cachedKinds : SyntaxKind . SyntaxKind ;
@@ -1475,6 +1479,312 @@ module SyntaxKind {
1475
1479
FirstNode : 136
1476
1480
} ;
1477
1481
1482
+ var SyntaxKind_1_9 : SyntaxKind = {
1483
+ Unknown : 0 ,
1484
+ EndOfFileToken : 1 ,
1485
+ SingleLineCommentTrivia : 2 ,
1486
+ MultiLineCommentTrivia : 3 ,
1487
+ NewLineTrivia : 4 ,
1488
+ WhitespaceTrivia : 5 ,
1489
+ ShebangTrivia : 6 ,
1490
+ ConflictMarkerTrivia : 7 ,
1491
+ NumericLiteral : 8 ,
1492
+ StringLiteral : 9 ,
1493
+ RegularExpressionLiteral : 10 ,
1494
+ NoSubstitutionTemplateLiteral : 11 ,
1495
+ TemplateHead : 12 ,
1496
+ TemplateMiddle : 13 ,
1497
+ TemplateTail : 14 ,
1498
+ OpenBraceToken : 15 ,
1499
+ CloseBraceToken : 16 ,
1500
+ OpenParenToken : 17 ,
1501
+ CloseParenToken : 18 ,
1502
+ OpenBracketToken : 19 ,
1503
+ CloseBracketToken : 20 ,
1504
+ DotToken : 21 ,
1505
+ DotDotDotToken : 22 ,
1506
+ SemicolonToken : 23 ,
1507
+ CommaToken : 24 ,
1508
+ LessThanToken : 25 ,
1509
+ LessThanSlashToken : 26 ,
1510
+ GreaterThanToken : 27 ,
1511
+ LessThanEqualsToken : 28 ,
1512
+ GreaterThanEqualsToken : 29 ,
1513
+ EqualsEqualsToken : 30 ,
1514
+ ExclamationEqualsToken : 31 ,
1515
+ EqualsEqualsEqualsToken : 32 ,
1516
+ ExclamationEqualsEqualsToken : 33 ,
1517
+ EqualsGreaterThanToken : 34 ,
1518
+ PlusToken : 35 ,
1519
+ MinusToken : 36 ,
1520
+ AsteriskToken : 37 ,
1521
+ AsteriskAsteriskToken : 38 ,
1522
+ SlashToken : 39 ,
1523
+ PercentToken : 40 ,
1524
+ PlusPlusToken : 41 ,
1525
+ MinusMinusToken : 42 ,
1526
+ LessThanLessThanToken : 43 ,
1527
+ GreaterThanGreaterThanToken : 44 ,
1528
+ GreaterThanGreaterThanGreaterThanToken : 45 ,
1529
+ AmpersandToken : 46 ,
1530
+ BarToken : 47 ,
1531
+ CaretToken : 48 ,
1532
+ ExclamationToken : 49 ,
1533
+ TildeToken : 50 ,
1534
+ AmpersandAmpersandToken : 51 ,
1535
+ BarBarToken : 52 ,
1536
+ QuestionToken : 53 ,
1537
+ ColonToken : 54 ,
1538
+ AtToken : 55 ,
1539
+ EqualsToken : 56 ,
1540
+ PlusEqualsToken : 57 ,
1541
+ MinusEqualsToken : 58 ,
1542
+ AsteriskEqualsToken : 59 ,
1543
+ AsteriskAsteriskEqualsToken : 60 ,
1544
+ SlashEqualsToken : 61 ,
1545
+ PercentEqualsToken : 62 ,
1546
+ LessThanLessThanEqualsToken : 63 ,
1547
+ GreaterThanGreaterThanEqualsToken : 64 ,
1548
+ GreaterThanGreaterThanGreaterThanEqualsToken : 65 ,
1549
+ AmpersandEqualsToken : 66 ,
1550
+ BarEqualsToken : 67 ,
1551
+ CaretEqualsToken : 68 ,
1552
+ Identifier : 69 ,
1553
+ BreakKeyword : 70 ,
1554
+ CaseKeyword : 71 ,
1555
+ CatchKeyword : 72 ,
1556
+ ClassKeyword : 73 ,
1557
+ ConstKeyword : 74 ,
1558
+ ContinueKeyword : 75 ,
1559
+ DebuggerKeyword : 76 ,
1560
+ DefaultKeyword : 77 ,
1561
+ DeleteKeyword : 78 ,
1562
+ DoKeyword : 79 ,
1563
+ ElseKeyword : 80 ,
1564
+ EnumKeyword : 81 ,
1565
+ ExportKeyword : 82 ,
1566
+ ExtendsKeyword : 83 ,
1567
+ FalseKeyword : 84 ,
1568
+ FinallyKeyword : 85 ,
1569
+ ForKeyword : 86 ,
1570
+ FunctionKeyword : 87 ,
1571
+ IfKeyword : 88 ,
1572
+ ImportKeyword : 89 ,
1573
+ InKeyword : 90 ,
1574
+ InstanceOfKeyword : 91 ,
1575
+ NewKeyword : 92 ,
1576
+ NullKeyword : 93 ,
1577
+ ReturnKeyword : 94 ,
1578
+ SuperKeyword : 95 ,
1579
+ SwitchKeyword : 96 ,
1580
+ ThisKeyword : 97 ,
1581
+ ThrowKeyword : 98 ,
1582
+ TrueKeyword : 99 ,
1583
+ TryKeyword : 100 ,
1584
+ TypeOfKeyword : 101 ,
1585
+ VarKeyword : 102 ,
1586
+ VoidKeyword : 103 ,
1587
+ WhileKeyword : 104 ,
1588
+ WithKeyword : 105 ,
1589
+ ImplementsKeyword : 106 ,
1590
+ InterfaceKeyword : 107 ,
1591
+ LetKeyword : 108 ,
1592
+ PackageKeyword : 109 ,
1593
+ PrivateKeyword : 110 ,
1594
+ ProtectedKeyword : 111 ,
1595
+ PublicKeyword : 112 ,
1596
+ StaticKeyword : 113 ,
1597
+ YieldKeyword : 114 ,
1598
+ AbstractKeyword : 115 ,
1599
+ AsKeyword : 116 ,
1600
+ AnyKeyword : 117 ,
1601
+ AsyncKeyword : 118 ,
1602
+ AwaitKeyword : 119 ,
1603
+ BooleanKeyword : 120 ,
1604
+ ConstructorKeyword : 121 ,
1605
+ DeclareKeyword : 122 ,
1606
+ GetKeyword : 123 ,
1607
+ IsKeyword : 124 ,
1608
+ ModuleKeyword : 125 ,
1609
+ NamespaceKeyword : 126 ,
1610
+ RequireKeyword : 128 ,
1611
+ NumberKeyword : 129 ,
1612
+ SetKeyword : 130 ,
1613
+ StringKeyword : 131 ,
1614
+ SymbolKeyword : 132 ,
1615
+ TypeKeyword : 133 ,
1616
+ FromKeyword : 135 ,
1617
+ GlobalKeyword : 136 ,
1618
+ OfKeyword : 137 ,
1619
+ QualifiedName : 138 ,
1620
+ ComputedPropertyName : 139 ,
1621
+ TypeParameter : 140 ,
1622
+ Parameter : 141 ,
1623
+ Decorator : 142 ,
1624
+ PropertySignature : 143 ,
1625
+ PropertyDeclaration : 144 ,
1626
+ MethodSignature : 145 ,
1627
+ MethodDeclaration : 146 ,
1628
+ Constructor : 147 ,
1629
+ GetAccessor : 148 ,
1630
+ SetAccessor : 149 ,
1631
+ CallSignature : 150 ,
1632
+ ConstructSignature : 151 ,
1633
+ IndexSignature : 152 ,
1634
+ TypePredicate : 153 ,
1635
+ TypeReference : 154 ,
1636
+ FunctionType : 155 ,
1637
+ ConstructorType : 156 ,
1638
+ TypeQuery : 157 ,
1639
+ TypeLiteral : 158 ,
1640
+ ArrayType : 159 ,
1641
+ TupleType : 160 ,
1642
+ UnionType : 161 ,
1643
+ IntersectionType : 162 ,
1644
+ ParenthesizedType : 163 ,
1645
+ ThisType : 164 ,
1646
+ StringLiteralType : 165 ,
1647
+ ObjectBindingPattern : 166 ,
1648
+ ArrayBindingPattern : 167 ,
1649
+ BindingElement : 168 ,
1650
+ ArrayLiteralExpression : 169 ,
1651
+ ObjectLiteralExpression : 170 ,
1652
+ PropertyAccessExpression : 171 ,
1653
+ ElementAccessExpression : 172 ,
1654
+ CallExpression : 173 ,
1655
+ NewExpression : 174 ,
1656
+ TaggedTemplateExpression : 175 ,
1657
+ TypeAssertionExpression : 176 ,
1658
+ ParenthesizedExpression : 177 ,
1659
+ FunctionExpression : 178 ,
1660
+ ArrowFunction : 179 ,
1661
+ DeleteExpression : 180 ,
1662
+ TypeOfExpression : 181 ,
1663
+ VoidExpression : 182 ,
1664
+ AwaitExpression : 183 ,
1665
+ PrefixUnaryExpression : 184 ,
1666
+ PostfixUnaryExpression : 185 ,
1667
+ BinaryExpression : 186 ,
1668
+ ConditionalExpression : 187 ,
1669
+ TemplateExpression : 188 ,
1670
+ YieldExpression : 189 ,
1671
+ SpreadElementExpression : 190 ,
1672
+ ClassExpression : 191 ,
1673
+ OmittedExpression : 192 ,
1674
+ ExpressionWithTypeArguments : 193 ,
1675
+ AsExpression : 194 ,
1676
+ TemplateSpan : 196 ,
1677
+ SemicolonClassElement : 197 ,
1678
+ Block : 198 ,
1679
+ VariableStatement : 199 ,
1680
+ EmptyStatement : 200 ,
1681
+ ExpressionStatement : 201 ,
1682
+ IfStatement : 202 ,
1683
+ DoStatement : 203 ,
1684
+ WhileStatement : 204 ,
1685
+ ForStatement : 205 ,
1686
+ ForInStatement : 206 ,
1687
+ ForOfStatement : 207 ,
1688
+ ContinueStatement : 208 ,
1689
+ BreakStatement : 209 ,
1690
+ ReturnStatement : 210 ,
1691
+ WithStatement : 211 ,
1692
+ SwitchStatement : 212 ,
1693
+ LabeledStatement : 213 ,
1694
+ ThrowStatement : 214 ,
1695
+ TryStatement : 215 ,
1696
+ DebuggerStatement : 216 ,
1697
+ VariableDeclaration : 217 ,
1698
+ VariableDeclarationList : 218 ,
1699
+ FunctionDeclaration : 219 ,
1700
+ ClassDeclaration : 220 ,
1701
+ InterfaceDeclaration : 221 ,
1702
+ TypeAliasDeclaration : 222 ,
1703
+ EnumDeclaration : 223 ,
1704
+ ModuleDeclaration : 224 ,
1705
+ ModuleBlock : 225 ,
1706
+ CaseBlock : 226 ,
1707
+ ImportEqualsDeclaration : 228 ,
1708
+ ImportDeclaration : 229 ,
1709
+ ImportClause : 230 ,
1710
+ NamespaceImport : 231 ,
1711
+ NamedImports : 232 ,
1712
+ ImportSpecifier : 233 ,
1713
+ ExportAssignment : 234 ,
1714
+ ExportDeclaration : 235 ,
1715
+ NamedExports : 236 ,
1716
+ ExportSpecifier : 237 ,
1717
+ MissingDeclaration : 238 ,
1718
+ ExternalModuleReference : 239 ,
1719
+ JsxElement : 240 ,
1720
+ JsxSelfClosingElement : 241 ,
1721
+ JsxOpeningElement : 242 ,
1722
+ JsxText : 243 ,
1723
+ JsxClosingElement : 244 ,
1724
+ JsxAttribute : 245 ,
1725
+ JsxSpreadAttribute : 246 ,
1726
+ JsxExpression : 247 ,
1727
+ CaseClause : 248 ,
1728
+ DefaultClause : 249 ,
1729
+ HeritageClause : 250 ,
1730
+ CatchClause : 251 ,
1731
+ PropertyAssignment : 252 ,
1732
+ ShorthandPropertyAssignment : 253 ,
1733
+ EnumMember : 254 ,
1734
+ SourceFile : 255 ,
1735
+ JSDocTypeExpression : 256 ,
1736
+ JSDocAllType : 257 ,
1737
+ JSDocUnknownType : 258 ,
1738
+ JSDocArrayType : 259 ,
1739
+ JSDocUnionType : 260 ,
1740
+ JSDocTupleType : 261 ,
1741
+ JSDocNullableType : 262 ,
1742
+ JSDocNonNullableType : 263 ,
1743
+ JSDocRecordType : 264 ,
1744
+ JSDocRecordMember : 265 ,
1745
+ JSDocTypeReference : 266 ,
1746
+ JSDocOptionalType : 267 ,
1747
+ JSDocFunctionType : 268 ,
1748
+ JSDocVariadicType : 269 ,
1749
+ JSDocConstructorType : 270 ,
1750
+ JSDocThisType : 271 ,
1751
+ JSDocComment : 272 ,
1752
+ JSDocTag : 273 ,
1753
+ JSDocParameterTag : 274 ,
1754
+ JSDocReturnTag : 275 ,
1755
+ JSDocTypeTag : 276 ,
1756
+ JSDocTemplateTag : 277 ,
1757
+ SyntaxList : 278 ,
1758
+ Count : 279 ,
1759
+ FirstAssignment : 56 ,
1760
+ LastAssignment : 68 ,
1761
+ FirstReservedWord : 70 ,
1762
+ LastReservedWord : 105 ,
1763
+ FirstKeyword : 70 ,
1764
+ LastKeyword : 137 ,
1765
+ FirstFutureReservedWord : 106 ,
1766
+ LastFutureReservedWord : 114 ,
1767
+ FirstTypeNode : 153 ,
1768
+ LastTypeNode : 165 ,
1769
+ FirstPunctuation : 15 ,
1770
+ LastPunctuation : 68 ,
1771
+ FirstToken : 0 ,
1772
+ LastToken : 137 ,
1773
+ FirstTriviaToken : 2 ,
1774
+ LastTriviaToken : 7 ,
1775
+ FirstLiteralToken : 8 ,
1776
+ LastLiteralToken : 11 ,
1777
+ FirstTemplateToken : 11 ,
1778
+ LastTemplateToken : 14 ,
1779
+ FirstBinaryOperator : 25 ,
1780
+ LastBinaryOperator : 68 ,
1781
+ FirstNode : 138 ,
1782
+ GlobalModuleExportDeclaration : 227 ,
1783
+ NonNullExpression : 195 ,
1784
+ UndefinedKeyword : 134 ,
1785
+ ReadonlyKeyword : 127
1786
+ } ;
1787
+
1478
1788
export function current ( ) : SyntaxKind . SyntaxKind {
1479
1789
if ( cachedKinds == null ) {
1480
1790
if ( / 1 \. 5 \. .* / . test ( ts . version ) ) {
@@ -1485,6 +1795,8 @@ module SyntaxKind {
1485
1795
cachedKinds = SyntaxKind_1_7 ;
1486
1796
} else if ( / 1 \. 8 \. .* / . test ( ts . version ) ) {
1487
1797
cachedKinds = SyntaxKind_1_8 ;
1798
+ } else if ( / 1 \. 9 \. .* / . test ( ts . version ) ) {
1799
+ cachedKinds = SyntaxKind_1_9 ;
1488
1800
} else {
1489
1801
throw new Error ( 'Unsupported TypeScript version: ' + ts . version ) ;
1490
1802
}
0 commit comments