mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accepting new baselines
This commit is contained in:
@@ -160,129 +160,136 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
TypeKeyword = 120,
|
||||
QualifiedName = 121,
|
||||
ComputedPropertyName = 122,
|
||||
TypeParameter = 123,
|
||||
Parameter = 124,
|
||||
PropertySignature = 125,
|
||||
PropertyDeclaration = 126,
|
||||
MethodSignature = 127,
|
||||
MethodDeclaration = 128,
|
||||
Constructor = 129,
|
||||
GetAccessor = 130,
|
||||
SetAccessor = 131,
|
||||
CallSignature = 132,
|
||||
ConstructSignature = 133,
|
||||
IndexSignature = 134,
|
||||
TypeReference = 135,
|
||||
FunctionType = 136,
|
||||
ConstructorType = 137,
|
||||
TypeQuery = 138,
|
||||
TypeLiteral = 139,
|
||||
ArrayType = 140,
|
||||
TupleType = 141,
|
||||
UnionType = 142,
|
||||
ParenthesizedType = 143,
|
||||
ObjectBindingPattern = 144,
|
||||
ArrayBindingPattern = 145,
|
||||
BindingElement = 146,
|
||||
ArrayLiteralExpression = 147,
|
||||
ObjectLiteralExpression = 148,
|
||||
PropertyAccessExpression = 149,
|
||||
ElementAccessExpression = 150,
|
||||
CallExpression = 151,
|
||||
NewExpression = 152,
|
||||
TaggedTemplateExpression = 153,
|
||||
TypeAssertionExpression = 154,
|
||||
ParenthesizedExpression = 155,
|
||||
FunctionExpression = 156,
|
||||
ArrowFunction = 157,
|
||||
DeleteExpression = 158,
|
||||
TypeOfExpression = 159,
|
||||
VoidExpression = 160,
|
||||
PrefixUnaryExpression = 161,
|
||||
PostfixUnaryExpression = 162,
|
||||
BinaryExpression = 163,
|
||||
ConditionalExpression = 164,
|
||||
TemplateExpression = 165,
|
||||
YieldExpression = 166,
|
||||
SpreadElementExpression = 167,
|
||||
OmittedExpression = 168,
|
||||
TemplateSpan = 169,
|
||||
Block = 170,
|
||||
VariableStatement = 171,
|
||||
EmptyStatement = 172,
|
||||
ExpressionStatement = 173,
|
||||
IfStatement = 174,
|
||||
DoStatement = 175,
|
||||
WhileStatement = 176,
|
||||
ForStatement = 177,
|
||||
ForInStatement = 178,
|
||||
ContinueStatement = 179,
|
||||
BreakStatement = 180,
|
||||
ReturnStatement = 181,
|
||||
WithStatement = 182,
|
||||
SwitchStatement = 183,
|
||||
LabeledStatement = 184,
|
||||
ThrowStatement = 185,
|
||||
TryStatement = 186,
|
||||
DebuggerStatement = 187,
|
||||
VariableDeclaration = 188,
|
||||
VariableDeclarationList = 189,
|
||||
FunctionDeclaration = 190,
|
||||
ClassDeclaration = 191,
|
||||
InterfaceDeclaration = 192,
|
||||
TypeAliasDeclaration = 193,
|
||||
EnumDeclaration = 194,
|
||||
ModuleDeclaration = 195,
|
||||
ModuleBlock = 196,
|
||||
ImportDeclaration = 197,
|
||||
ExportAssignment = 198,
|
||||
ExternalModuleReference = 199,
|
||||
CaseClause = 200,
|
||||
DefaultClause = 201,
|
||||
HeritageClause = 202,
|
||||
CatchClause = 203,
|
||||
PropertyAssignment = 204,
|
||||
ShorthandPropertyAssignment = 205,
|
||||
EnumMember = 206,
|
||||
SourceFile = 207,
|
||||
SyntaxList = 208,
|
||||
Count = 209,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ContinueStatement = 181,
|
||||
BreakStatement = 182,
|
||||
ReturnStatement = 183,
|
||||
WithStatement = 184,
|
||||
SwitchStatement = 185,
|
||||
LabeledStatement = 186,
|
||||
ThrowStatement = 187,
|
||||
TryStatement = 188,
|
||||
DebuggerStatement = 189,
|
||||
VariableDeclaration = 190,
|
||||
VariableDeclarationList = 191,
|
||||
FunctionDeclaration = 192,
|
||||
ClassDeclaration = 193,
|
||||
InterfaceDeclaration = 194,
|
||||
TypeAliasDeclaration = 195,
|
||||
EnumDeclaration = 196,
|
||||
ModuleDeclaration = 197,
|
||||
ModuleBlock = 198,
|
||||
ImportEqualsDeclaration = 199,
|
||||
ExportAssignment = 200,
|
||||
ImportDeclaration = 201,
|
||||
ImportClause = 202,
|
||||
NamespaceImport = 203,
|
||||
NamedImports = 204,
|
||||
ImportSpecifier = 205,
|
||||
ExternalModuleReference = 206,
|
||||
CaseClause = 207,
|
||||
DefaultClause = 208,
|
||||
HeritageClause = 209,
|
||||
CatchClause = 210,
|
||||
PropertyAssignment = 211,
|
||||
ShorthandPropertyAssignment = 212,
|
||||
EnumMember = 213,
|
||||
SourceFile = 214,
|
||||
SyntaxList = 215,
|
||||
Count = 216,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 120,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 135,
|
||||
LastTypeNode = 143,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 120,
|
||||
LastToken = 122,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -291,7 +298,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 121,
|
||||
FirstNode = 123,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -702,13 +709,31 @@ declare module "typescript" {
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface NamedImports extends Node {
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
}
|
||||
interface ImportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -869,7 +894,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -880,8 +905,8 @@ declare module "typescript" {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
|
||||
@@ -496,331 +496,352 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
TypeKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,
|
||||
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
QualifiedName = 123,
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
|
||||
ComputedPropertyName = 124,
|
||||
|
||||
TypeParameter = 123,
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 125,
|
||||
|
||||
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
Parameter = 126,
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
|
||||
PropertySignature = 127,
|
||||
|
||||
PropertyDeclaration = 126,
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 128,
|
||||
|
||||
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
MethodSignature = 129,
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
|
||||
MethodDeclaration = 130,
|
||||
|
||||
Constructor = 129,
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 131,
|
||||
|
||||
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
GetAccessor = 132,
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
|
||||
SetAccessor = 133,
|
||||
|
||||
CallSignature = 132,
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 134,
|
||||
|
||||
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
ConstructSignature = 135,
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
|
||||
IndexSignature = 136,
|
||||
|
||||
TypeReference = 135,
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 137,
|
||||
|
||||
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
FunctionType = 138,
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
|
||||
ConstructorType = 139,
|
||||
|
||||
TypeQuery = 138,
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 140,
|
||||
|
||||
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
TypeLiteral = 141,
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
|
||||
ArrayType = 142,
|
||||
|
||||
TupleType = 141,
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 143,
|
||||
|
||||
UnionType = 142,
|
||||
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
UnionType = 144,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 145,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 146,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 148,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectBindingPattern = 144,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 151,
|
||||
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 152,
|
||||
ArrayLiteralExpression = 147,
|
||||
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
CallExpression = 153,
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
NewExpression = 154,
|
||||
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 155,
|
||||
ElementAccessExpression = 150,
|
||||
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
|
||||
TypeAssertionExpression = 156,
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
@@ -838,19 +859,19 @@ declare module "typescript" {
|
||||
|
||||
DeleteExpression = 160,
|
||||
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 161,
|
||||
FunctionExpression = 156,
|
||||
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
|
||||
VoidExpression = 162,
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 163,
|
||||
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 164,
|
||||
|
||||
@@ -862,7 +883,7 @@ declare module "typescript" {
|
||||
|
||||
ConditionalExpression = 166,
|
||||
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 167,
|
||||
|
||||
@@ -889,7 +910,7 @@ declare module "typescript" {
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 173,
|
||||
OmittedExpression = 168,
|
||||
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 174,
|
||||
@@ -2131,8 +2152,8 @@ declare module "typescript" {
|
||||
|
||||
>text : string
|
||||
|
||||
>StringLiteralExpression : StringLiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
isUnterminated?: boolean;
|
||||
|
||||
>isUnterminated : boolean
|
||||
}
|
||||
|
||||
@@ -2152,6 +2173,61 @@ declare module "typescript" {
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
head: LiteralExpression;
|
||||
|
||||
>head : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
|
||||
templateSpans: NodeArray<TemplateSpan>;
|
||||
|
||||
>templateSpans : NodeArray<TemplateSpan>
|
||||
>NodeArray : NodeArray<T>
|
||||
>TemplateSpan : TemplateSpan
|
||||
}
|
||||
|
||||
interface TemplateSpan extends Node {
|
||||
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
@@ -2785,9 +2861,9 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
importClause?: ImportClause;
|
||||
|
||||
>importClause : ImportClause
|
||||
>ImportClause : ImportClause
|
||||
|
||||
moduleSpecifier: Expression;
|
||||
@@ -2822,15 +2898,15 @@ declare module "typescript" {
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
}
|
||||
|
||||
interface NamedImports extends Node {
|
||||
|
||||
>NamedImports : NamedImports
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
>Node : Node
|
||||
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
|
||||
>elements : NodeArray<ImportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportSpecifier : ImportSpecifier
|
||||
|
||||
@@ -191,129 +191,136 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
TypeKeyword = 120,
|
||||
QualifiedName = 121,
|
||||
ComputedPropertyName = 122,
|
||||
TypeParameter = 123,
|
||||
Parameter = 124,
|
||||
PropertySignature = 125,
|
||||
PropertyDeclaration = 126,
|
||||
MethodSignature = 127,
|
||||
MethodDeclaration = 128,
|
||||
Constructor = 129,
|
||||
GetAccessor = 130,
|
||||
SetAccessor = 131,
|
||||
CallSignature = 132,
|
||||
ConstructSignature = 133,
|
||||
IndexSignature = 134,
|
||||
TypeReference = 135,
|
||||
FunctionType = 136,
|
||||
ConstructorType = 137,
|
||||
TypeQuery = 138,
|
||||
TypeLiteral = 139,
|
||||
ArrayType = 140,
|
||||
TupleType = 141,
|
||||
UnionType = 142,
|
||||
ParenthesizedType = 143,
|
||||
ObjectBindingPattern = 144,
|
||||
ArrayBindingPattern = 145,
|
||||
BindingElement = 146,
|
||||
ArrayLiteralExpression = 147,
|
||||
ObjectLiteralExpression = 148,
|
||||
PropertyAccessExpression = 149,
|
||||
ElementAccessExpression = 150,
|
||||
CallExpression = 151,
|
||||
NewExpression = 152,
|
||||
TaggedTemplateExpression = 153,
|
||||
TypeAssertionExpression = 154,
|
||||
ParenthesizedExpression = 155,
|
||||
FunctionExpression = 156,
|
||||
ArrowFunction = 157,
|
||||
DeleteExpression = 158,
|
||||
TypeOfExpression = 159,
|
||||
VoidExpression = 160,
|
||||
PrefixUnaryExpression = 161,
|
||||
PostfixUnaryExpression = 162,
|
||||
BinaryExpression = 163,
|
||||
ConditionalExpression = 164,
|
||||
TemplateExpression = 165,
|
||||
YieldExpression = 166,
|
||||
SpreadElementExpression = 167,
|
||||
OmittedExpression = 168,
|
||||
TemplateSpan = 169,
|
||||
Block = 170,
|
||||
VariableStatement = 171,
|
||||
EmptyStatement = 172,
|
||||
ExpressionStatement = 173,
|
||||
IfStatement = 174,
|
||||
DoStatement = 175,
|
||||
WhileStatement = 176,
|
||||
ForStatement = 177,
|
||||
ForInStatement = 178,
|
||||
ContinueStatement = 179,
|
||||
BreakStatement = 180,
|
||||
ReturnStatement = 181,
|
||||
WithStatement = 182,
|
||||
SwitchStatement = 183,
|
||||
LabeledStatement = 184,
|
||||
ThrowStatement = 185,
|
||||
TryStatement = 186,
|
||||
DebuggerStatement = 187,
|
||||
VariableDeclaration = 188,
|
||||
VariableDeclarationList = 189,
|
||||
FunctionDeclaration = 190,
|
||||
ClassDeclaration = 191,
|
||||
InterfaceDeclaration = 192,
|
||||
TypeAliasDeclaration = 193,
|
||||
EnumDeclaration = 194,
|
||||
ModuleDeclaration = 195,
|
||||
ModuleBlock = 196,
|
||||
ImportDeclaration = 197,
|
||||
ExportAssignment = 198,
|
||||
ExternalModuleReference = 199,
|
||||
CaseClause = 200,
|
||||
DefaultClause = 201,
|
||||
HeritageClause = 202,
|
||||
CatchClause = 203,
|
||||
PropertyAssignment = 204,
|
||||
ShorthandPropertyAssignment = 205,
|
||||
EnumMember = 206,
|
||||
SourceFile = 207,
|
||||
SyntaxList = 208,
|
||||
Count = 209,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ContinueStatement = 181,
|
||||
BreakStatement = 182,
|
||||
ReturnStatement = 183,
|
||||
WithStatement = 184,
|
||||
SwitchStatement = 185,
|
||||
LabeledStatement = 186,
|
||||
ThrowStatement = 187,
|
||||
TryStatement = 188,
|
||||
DebuggerStatement = 189,
|
||||
VariableDeclaration = 190,
|
||||
VariableDeclarationList = 191,
|
||||
FunctionDeclaration = 192,
|
||||
ClassDeclaration = 193,
|
||||
InterfaceDeclaration = 194,
|
||||
TypeAliasDeclaration = 195,
|
||||
EnumDeclaration = 196,
|
||||
ModuleDeclaration = 197,
|
||||
ModuleBlock = 198,
|
||||
ImportEqualsDeclaration = 199,
|
||||
ExportAssignment = 200,
|
||||
ImportDeclaration = 201,
|
||||
ImportClause = 202,
|
||||
NamespaceImport = 203,
|
||||
NamedImports = 204,
|
||||
ImportSpecifier = 205,
|
||||
ExternalModuleReference = 206,
|
||||
CaseClause = 207,
|
||||
DefaultClause = 208,
|
||||
HeritageClause = 209,
|
||||
CatchClause = 210,
|
||||
PropertyAssignment = 211,
|
||||
ShorthandPropertyAssignment = 212,
|
||||
EnumMember = 213,
|
||||
SourceFile = 214,
|
||||
SyntaxList = 215,
|
||||
Count = 216,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 120,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 135,
|
||||
LastTypeNode = 143,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 120,
|
||||
LastToken = 122,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -322,7 +329,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 121,
|
||||
FirstNode = 123,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -733,13 +740,31 @@ declare module "typescript" {
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface NamedImports extends Node {
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
}
|
||||
interface ImportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -900,7 +925,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -911,8 +936,8 @@ declare module "typescript" {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
@@ -1951,24 +1976,24 @@ function delint(sourceFile) {
|
||||
delintNode(sourceFile);
|
||||
function delintNode(node) {
|
||||
switch (node.kind) {
|
||||
case 177 /* ForStatement */:
|
||||
case 178 /* ForInStatement */:
|
||||
case 176 /* WhileStatement */:
|
||||
case 175 /* DoStatement */:
|
||||
if (node.statement.kind !== 170 /* Block */) {
|
||||
case 179 /* ForStatement */:
|
||||
case 180 /* ForInStatement */:
|
||||
case 178 /* WhileStatement */:
|
||||
case 177 /* DoStatement */:
|
||||
if (node.statement.kind !== 172 /* Block */) {
|
||||
report(node, "A looping statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 174 /* IfStatement */:
|
||||
case 176 /* IfStatement */:
|
||||
var ifStatement = node;
|
||||
if (ifStatement.thenStatement.kind !== 170 /* Block */) {
|
||||
if (ifStatement.thenStatement.kind !== 172 /* Block */) {
|
||||
report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
if (ifStatement.elseStatement && ifStatement.elseStatement.kind !== 170 /* Block */ && ifStatement.elseStatement.kind !== 174 /* IfStatement */) {
|
||||
if (ifStatement.elseStatement && ifStatement.elseStatement.kind !== 172 /* Block */ && ifStatement.elseStatement.kind !== 176 /* IfStatement */) {
|
||||
report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 163 /* BinaryExpression */:
|
||||
case 165 /* BinaryExpression */:
|
||||
var op = node.operator;
|
||||
if (op === 28 /* EqualsEqualsToken */ || op === 29 /* ExclamationEqualsToken */) {
|
||||
report(node, "Use '===' and '!=='.");
|
||||
|
||||
@@ -640,331 +640,352 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
TypeKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,
|
||||
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
QualifiedName = 123,
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
|
||||
ComputedPropertyName = 124,
|
||||
|
||||
TypeParameter = 123,
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 125,
|
||||
|
||||
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
Parameter = 126,
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
|
||||
PropertySignature = 127,
|
||||
|
||||
PropertyDeclaration = 126,
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 128,
|
||||
|
||||
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
MethodSignature = 129,
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
|
||||
MethodDeclaration = 130,
|
||||
|
||||
Constructor = 129,
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 131,
|
||||
|
||||
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
GetAccessor = 132,
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
|
||||
SetAccessor = 133,
|
||||
|
||||
CallSignature = 132,
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 134,
|
||||
|
||||
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
ConstructSignature = 135,
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
|
||||
IndexSignature = 136,
|
||||
|
||||
TypeReference = 135,
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 137,
|
||||
|
||||
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
FunctionType = 138,
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
|
||||
ConstructorType = 139,
|
||||
|
||||
TypeQuery = 138,
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 140,
|
||||
|
||||
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
TypeLiteral = 141,
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
|
||||
ArrayType = 142,
|
||||
|
||||
TupleType = 141,
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 143,
|
||||
|
||||
UnionType = 142,
|
||||
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
UnionType = 144,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 145,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 146,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 148,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectBindingPattern = 144,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 151,
|
||||
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 152,
|
||||
ArrayLiteralExpression = 147,
|
||||
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
CallExpression = 153,
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
NewExpression = 154,
|
||||
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 155,
|
||||
ElementAccessExpression = 150,
|
||||
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
|
||||
TypeAssertionExpression = 156,
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
@@ -982,19 +1003,19 @@ declare module "typescript" {
|
||||
|
||||
DeleteExpression = 160,
|
||||
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 161,
|
||||
FunctionExpression = 156,
|
||||
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
|
||||
VoidExpression = 162,
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 163,
|
||||
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 164,
|
||||
|
||||
@@ -1006,7 +1027,7 @@ declare module "typescript" {
|
||||
|
||||
ConditionalExpression = 166,
|
||||
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 167,
|
||||
|
||||
@@ -1033,7 +1054,7 @@ declare module "typescript" {
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 173,
|
||||
OmittedExpression = 168,
|
||||
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 174,
|
||||
@@ -2275,8 +2296,8 @@ declare module "typescript" {
|
||||
|
||||
>text : string
|
||||
|
||||
>StringLiteralExpression : StringLiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
isUnterminated?: boolean;
|
||||
|
||||
>isUnterminated : boolean
|
||||
}
|
||||
|
||||
@@ -2296,6 +2317,61 @@ declare module "typescript" {
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
head: LiteralExpression;
|
||||
|
||||
>head : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
|
||||
templateSpans: NodeArray<TemplateSpan>;
|
||||
|
||||
>templateSpans : NodeArray<TemplateSpan>
|
||||
>NodeArray : NodeArray<T>
|
||||
>TemplateSpan : TemplateSpan
|
||||
}
|
||||
|
||||
interface TemplateSpan extends Node {
|
||||
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
@@ -2929,9 +3005,9 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
importClause?: ImportClause;
|
||||
|
||||
>importClause : ImportClause
|
||||
>ImportClause : ImportClause
|
||||
|
||||
moduleSpecifier: Expression;
|
||||
@@ -2966,15 +3042,15 @@ declare module "typescript" {
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
}
|
||||
|
||||
interface NamedImports extends Node {
|
||||
|
||||
>NamedImports : NamedImports
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
>Node : Node
|
||||
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
|
||||
>elements : NodeArray<ImportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportSpecifier : ImportSpecifier
|
||||
|
||||
@@ -192,129 +192,136 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
TypeKeyword = 120,
|
||||
QualifiedName = 121,
|
||||
ComputedPropertyName = 122,
|
||||
TypeParameter = 123,
|
||||
Parameter = 124,
|
||||
PropertySignature = 125,
|
||||
PropertyDeclaration = 126,
|
||||
MethodSignature = 127,
|
||||
MethodDeclaration = 128,
|
||||
Constructor = 129,
|
||||
GetAccessor = 130,
|
||||
SetAccessor = 131,
|
||||
CallSignature = 132,
|
||||
ConstructSignature = 133,
|
||||
IndexSignature = 134,
|
||||
TypeReference = 135,
|
||||
FunctionType = 136,
|
||||
ConstructorType = 137,
|
||||
TypeQuery = 138,
|
||||
TypeLiteral = 139,
|
||||
ArrayType = 140,
|
||||
TupleType = 141,
|
||||
UnionType = 142,
|
||||
ParenthesizedType = 143,
|
||||
ObjectBindingPattern = 144,
|
||||
ArrayBindingPattern = 145,
|
||||
BindingElement = 146,
|
||||
ArrayLiteralExpression = 147,
|
||||
ObjectLiteralExpression = 148,
|
||||
PropertyAccessExpression = 149,
|
||||
ElementAccessExpression = 150,
|
||||
CallExpression = 151,
|
||||
NewExpression = 152,
|
||||
TaggedTemplateExpression = 153,
|
||||
TypeAssertionExpression = 154,
|
||||
ParenthesizedExpression = 155,
|
||||
FunctionExpression = 156,
|
||||
ArrowFunction = 157,
|
||||
DeleteExpression = 158,
|
||||
TypeOfExpression = 159,
|
||||
VoidExpression = 160,
|
||||
PrefixUnaryExpression = 161,
|
||||
PostfixUnaryExpression = 162,
|
||||
BinaryExpression = 163,
|
||||
ConditionalExpression = 164,
|
||||
TemplateExpression = 165,
|
||||
YieldExpression = 166,
|
||||
SpreadElementExpression = 167,
|
||||
OmittedExpression = 168,
|
||||
TemplateSpan = 169,
|
||||
Block = 170,
|
||||
VariableStatement = 171,
|
||||
EmptyStatement = 172,
|
||||
ExpressionStatement = 173,
|
||||
IfStatement = 174,
|
||||
DoStatement = 175,
|
||||
WhileStatement = 176,
|
||||
ForStatement = 177,
|
||||
ForInStatement = 178,
|
||||
ContinueStatement = 179,
|
||||
BreakStatement = 180,
|
||||
ReturnStatement = 181,
|
||||
WithStatement = 182,
|
||||
SwitchStatement = 183,
|
||||
LabeledStatement = 184,
|
||||
ThrowStatement = 185,
|
||||
TryStatement = 186,
|
||||
DebuggerStatement = 187,
|
||||
VariableDeclaration = 188,
|
||||
VariableDeclarationList = 189,
|
||||
FunctionDeclaration = 190,
|
||||
ClassDeclaration = 191,
|
||||
InterfaceDeclaration = 192,
|
||||
TypeAliasDeclaration = 193,
|
||||
EnumDeclaration = 194,
|
||||
ModuleDeclaration = 195,
|
||||
ModuleBlock = 196,
|
||||
ImportDeclaration = 197,
|
||||
ExportAssignment = 198,
|
||||
ExternalModuleReference = 199,
|
||||
CaseClause = 200,
|
||||
DefaultClause = 201,
|
||||
HeritageClause = 202,
|
||||
CatchClause = 203,
|
||||
PropertyAssignment = 204,
|
||||
ShorthandPropertyAssignment = 205,
|
||||
EnumMember = 206,
|
||||
SourceFile = 207,
|
||||
SyntaxList = 208,
|
||||
Count = 209,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ContinueStatement = 181,
|
||||
BreakStatement = 182,
|
||||
ReturnStatement = 183,
|
||||
WithStatement = 184,
|
||||
SwitchStatement = 185,
|
||||
LabeledStatement = 186,
|
||||
ThrowStatement = 187,
|
||||
TryStatement = 188,
|
||||
DebuggerStatement = 189,
|
||||
VariableDeclaration = 190,
|
||||
VariableDeclarationList = 191,
|
||||
FunctionDeclaration = 192,
|
||||
ClassDeclaration = 193,
|
||||
InterfaceDeclaration = 194,
|
||||
TypeAliasDeclaration = 195,
|
||||
EnumDeclaration = 196,
|
||||
ModuleDeclaration = 197,
|
||||
ModuleBlock = 198,
|
||||
ImportEqualsDeclaration = 199,
|
||||
ExportAssignment = 200,
|
||||
ImportDeclaration = 201,
|
||||
ImportClause = 202,
|
||||
NamespaceImport = 203,
|
||||
NamedImports = 204,
|
||||
ImportSpecifier = 205,
|
||||
ExternalModuleReference = 206,
|
||||
CaseClause = 207,
|
||||
DefaultClause = 208,
|
||||
HeritageClause = 209,
|
||||
CatchClause = 210,
|
||||
PropertyAssignment = 211,
|
||||
ShorthandPropertyAssignment = 212,
|
||||
EnumMember = 213,
|
||||
SourceFile = 214,
|
||||
SyntaxList = 215,
|
||||
Count = 216,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 120,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 135,
|
||||
LastTypeNode = 143,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 120,
|
||||
LastToken = 122,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -323,7 +330,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 121,
|
||||
FirstNode = 123,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -734,13 +741,31 @@ declare module "typescript" {
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface NamedImports extends Node {
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
}
|
||||
interface ImportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -901,7 +926,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -912,8 +937,8 @@ declare module "typescript" {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
|
||||
@@ -592,331 +592,352 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
TypeKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,
|
||||
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
QualifiedName = 123,
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
|
||||
ComputedPropertyName = 124,
|
||||
|
||||
TypeParameter = 123,
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 125,
|
||||
|
||||
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
Parameter = 126,
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
|
||||
PropertySignature = 127,
|
||||
|
||||
PropertyDeclaration = 126,
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 128,
|
||||
|
||||
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
MethodSignature = 129,
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
|
||||
MethodDeclaration = 130,
|
||||
|
||||
Constructor = 129,
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 131,
|
||||
|
||||
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
GetAccessor = 132,
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
|
||||
SetAccessor = 133,
|
||||
|
||||
CallSignature = 132,
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 134,
|
||||
|
||||
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
ConstructSignature = 135,
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
|
||||
IndexSignature = 136,
|
||||
|
||||
TypeReference = 135,
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 137,
|
||||
|
||||
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
FunctionType = 138,
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
|
||||
ConstructorType = 139,
|
||||
|
||||
TypeQuery = 138,
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 140,
|
||||
|
||||
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
TypeLiteral = 141,
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
|
||||
ArrayType = 142,
|
||||
|
||||
TupleType = 141,
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 143,
|
||||
|
||||
UnionType = 142,
|
||||
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
UnionType = 144,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 145,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 146,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 148,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectBindingPattern = 144,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 151,
|
||||
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 152,
|
||||
ArrayLiteralExpression = 147,
|
||||
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
CallExpression = 153,
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
NewExpression = 154,
|
||||
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 155,
|
||||
ElementAccessExpression = 150,
|
||||
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
|
||||
TypeAssertionExpression = 156,
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
@@ -934,19 +955,19 @@ declare module "typescript" {
|
||||
|
||||
DeleteExpression = 160,
|
||||
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 161,
|
||||
FunctionExpression = 156,
|
||||
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
|
||||
VoidExpression = 162,
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 163,
|
||||
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 164,
|
||||
|
||||
@@ -958,7 +979,7 @@ declare module "typescript" {
|
||||
|
||||
ConditionalExpression = 166,
|
||||
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 167,
|
||||
|
||||
@@ -985,7 +1006,7 @@ declare module "typescript" {
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 173,
|
||||
OmittedExpression = 168,
|
||||
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 174,
|
||||
@@ -2227,8 +2248,8 @@ declare module "typescript" {
|
||||
|
||||
>text : string
|
||||
|
||||
>StringLiteralExpression : StringLiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
isUnterminated?: boolean;
|
||||
|
||||
>isUnterminated : boolean
|
||||
}
|
||||
|
||||
@@ -2248,6 +2269,61 @@ declare module "typescript" {
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
head: LiteralExpression;
|
||||
|
||||
>head : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
|
||||
templateSpans: NodeArray<TemplateSpan>;
|
||||
|
||||
>templateSpans : NodeArray<TemplateSpan>
|
||||
>NodeArray : NodeArray<T>
|
||||
>TemplateSpan : TemplateSpan
|
||||
}
|
||||
|
||||
interface TemplateSpan extends Node {
|
||||
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
@@ -2881,9 +2957,9 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
importClause?: ImportClause;
|
||||
|
||||
>importClause : ImportClause
|
||||
>ImportClause : ImportClause
|
||||
|
||||
moduleSpecifier: Expression;
|
||||
@@ -2918,15 +2994,15 @@ declare module "typescript" {
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
}
|
||||
|
||||
interface NamedImports extends Node {
|
||||
|
||||
>NamedImports : NamedImports
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
>Node : Node
|
||||
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
|
||||
>elements : NodeArray<ImportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportSpecifier : ImportSpecifier
|
||||
|
||||
@@ -229,129 +229,136 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
TypeKeyword = 120,
|
||||
QualifiedName = 121,
|
||||
ComputedPropertyName = 122,
|
||||
TypeParameter = 123,
|
||||
Parameter = 124,
|
||||
PropertySignature = 125,
|
||||
PropertyDeclaration = 126,
|
||||
MethodSignature = 127,
|
||||
MethodDeclaration = 128,
|
||||
Constructor = 129,
|
||||
GetAccessor = 130,
|
||||
SetAccessor = 131,
|
||||
CallSignature = 132,
|
||||
ConstructSignature = 133,
|
||||
IndexSignature = 134,
|
||||
TypeReference = 135,
|
||||
FunctionType = 136,
|
||||
ConstructorType = 137,
|
||||
TypeQuery = 138,
|
||||
TypeLiteral = 139,
|
||||
ArrayType = 140,
|
||||
TupleType = 141,
|
||||
UnionType = 142,
|
||||
ParenthesizedType = 143,
|
||||
ObjectBindingPattern = 144,
|
||||
ArrayBindingPattern = 145,
|
||||
BindingElement = 146,
|
||||
ArrayLiteralExpression = 147,
|
||||
ObjectLiteralExpression = 148,
|
||||
PropertyAccessExpression = 149,
|
||||
ElementAccessExpression = 150,
|
||||
CallExpression = 151,
|
||||
NewExpression = 152,
|
||||
TaggedTemplateExpression = 153,
|
||||
TypeAssertionExpression = 154,
|
||||
ParenthesizedExpression = 155,
|
||||
FunctionExpression = 156,
|
||||
ArrowFunction = 157,
|
||||
DeleteExpression = 158,
|
||||
TypeOfExpression = 159,
|
||||
VoidExpression = 160,
|
||||
PrefixUnaryExpression = 161,
|
||||
PostfixUnaryExpression = 162,
|
||||
BinaryExpression = 163,
|
||||
ConditionalExpression = 164,
|
||||
TemplateExpression = 165,
|
||||
YieldExpression = 166,
|
||||
SpreadElementExpression = 167,
|
||||
OmittedExpression = 168,
|
||||
TemplateSpan = 169,
|
||||
Block = 170,
|
||||
VariableStatement = 171,
|
||||
EmptyStatement = 172,
|
||||
ExpressionStatement = 173,
|
||||
IfStatement = 174,
|
||||
DoStatement = 175,
|
||||
WhileStatement = 176,
|
||||
ForStatement = 177,
|
||||
ForInStatement = 178,
|
||||
ContinueStatement = 179,
|
||||
BreakStatement = 180,
|
||||
ReturnStatement = 181,
|
||||
WithStatement = 182,
|
||||
SwitchStatement = 183,
|
||||
LabeledStatement = 184,
|
||||
ThrowStatement = 185,
|
||||
TryStatement = 186,
|
||||
DebuggerStatement = 187,
|
||||
VariableDeclaration = 188,
|
||||
VariableDeclarationList = 189,
|
||||
FunctionDeclaration = 190,
|
||||
ClassDeclaration = 191,
|
||||
InterfaceDeclaration = 192,
|
||||
TypeAliasDeclaration = 193,
|
||||
EnumDeclaration = 194,
|
||||
ModuleDeclaration = 195,
|
||||
ModuleBlock = 196,
|
||||
ImportDeclaration = 197,
|
||||
ExportAssignment = 198,
|
||||
ExternalModuleReference = 199,
|
||||
CaseClause = 200,
|
||||
DefaultClause = 201,
|
||||
HeritageClause = 202,
|
||||
CatchClause = 203,
|
||||
PropertyAssignment = 204,
|
||||
ShorthandPropertyAssignment = 205,
|
||||
EnumMember = 206,
|
||||
SourceFile = 207,
|
||||
SyntaxList = 208,
|
||||
Count = 209,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ContinueStatement = 181,
|
||||
BreakStatement = 182,
|
||||
ReturnStatement = 183,
|
||||
WithStatement = 184,
|
||||
SwitchStatement = 185,
|
||||
LabeledStatement = 186,
|
||||
ThrowStatement = 187,
|
||||
TryStatement = 188,
|
||||
DebuggerStatement = 189,
|
||||
VariableDeclaration = 190,
|
||||
VariableDeclarationList = 191,
|
||||
FunctionDeclaration = 192,
|
||||
ClassDeclaration = 193,
|
||||
InterfaceDeclaration = 194,
|
||||
TypeAliasDeclaration = 195,
|
||||
EnumDeclaration = 196,
|
||||
ModuleDeclaration = 197,
|
||||
ModuleBlock = 198,
|
||||
ImportEqualsDeclaration = 199,
|
||||
ExportAssignment = 200,
|
||||
ImportDeclaration = 201,
|
||||
ImportClause = 202,
|
||||
NamespaceImport = 203,
|
||||
NamedImports = 204,
|
||||
ImportSpecifier = 205,
|
||||
ExternalModuleReference = 206,
|
||||
CaseClause = 207,
|
||||
DefaultClause = 208,
|
||||
HeritageClause = 209,
|
||||
CatchClause = 210,
|
||||
PropertyAssignment = 211,
|
||||
ShorthandPropertyAssignment = 212,
|
||||
EnumMember = 213,
|
||||
SourceFile = 214,
|
||||
SyntaxList = 215,
|
||||
Count = 216,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 120,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 135,
|
||||
LastTypeNode = 143,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 120,
|
||||
LastToken = 122,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -360,7 +367,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 121,
|
||||
FirstNode = 123,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -771,13 +778,31 @@ declare module "typescript" {
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface NamedImports extends Node {
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
}
|
||||
interface ImportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -938,7 +963,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -949,8 +974,8 @@ declare module "typescript" {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
|
||||
@@ -765,331 +765,352 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
TypeKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,
|
||||
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
QualifiedName = 123,
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
|
||||
ComputedPropertyName = 124,
|
||||
|
||||
TypeParameter = 123,
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 125,
|
||||
|
||||
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
Parameter = 126,
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
|
||||
PropertySignature = 127,
|
||||
|
||||
PropertyDeclaration = 126,
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 128,
|
||||
|
||||
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
MethodSignature = 129,
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
|
||||
MethodDeclaration = 130,
|
||||
|
||||
Constructor = 129,
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 131,
|
||||
|
||||
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
GetAccessor = 132,
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
|
||||
SetAccessor = 133,
|
||||
|
||||
CallSignature = 132,
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 134,
|
||||
|
||||
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
ConstructSignature = 135,
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
|
||||
IndexSignature = 136,
|
||||
|
||||
TypeReference = 135,
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 137,
|
||||
|
||||
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
FunctionType = 138,
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
|
||||
ConstructorType = 139,
|
||||
|
||||
TypeQuery = 138,
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 140,
|
||||
|
||||
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
TypeLiteral = 141,
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
|
||||
ArrayType = 142,
|
||||
|
||||
TupleType = 141,
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 143,
|
||||
|
||||
UnionType = 142,
|
||||
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
UnionType = 144,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 145,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 146,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 148,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectBindingPattern = 144,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 151,
|
||||
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 152,
|
||||
ArrayLiteralExpression = 147,
|
||||
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
CallExpression = 153,
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
NewExpression = 154,
|
||||
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 155,
|
||||
ElementAccessExpression = 150,
|
||||
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
|
||||
TypeAssertionExpression = 156,
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
@@ -1107,19 +1128,19 @@ declare module "typescript" {
|
||||
|
||||
DeleteExpression = 160,
|
||||
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 161,
|
||||
FunctionExpression = 156,
|
||||
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
|
||||
VoidExpression = 162,
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 163,
|
||||
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 164,
|
||||
|
||||
@@ -1131,7 +1152,7 @@ declare module "typescript" {
|
||||
|
||||
ConditionalExpression = 166,
|
||||
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 167,
|
||||
|
||||
@@ -1158,7 +1179,7 @@ declare module "typescript" {
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 173,
|
||||
OmittedExpression = 168,
|
||||
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 174,
|
||||
@@ -2400,8 +2421,8 @@ declare module "typescript" {
|
||||
|
||||
>text : string
|
||||
|
||||
>StringLiteralExpression : StringLiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
isUnterminated?: boolean;
|
||||
|
||||
>isUnterminated : boolean
|
||||
}
|
||||
|
||||
@@ -2421,6 +2442,61 @@ declare module "typescript" {
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
head: LiteralExpression;
|
||||
|
||||
>head : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
|
||||
templateSpans: NodeArray<TemplateSpan>;
|
||||
|
||||
>templateSpans : NodeArray<TemplateSpan>
|
||||
>NodeArray : NodeArray<T>
|
||||
>TemplateSpan : TemplateSpan
|
||||
}
|
||||
|
||||
interface TemplateSpan extends Node {
|
||||
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
@@ -3054,9 +3130,9 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
importClause?: ImportClause;
|
||||
|
||||
>importClause : ImportClause
|
||||
>ImportClause : ImportClause
|
||||
|
||||
moduleSpecifier: Expression;
|
||||
@@ -3091,15 +3167,15 @@ declare module "typescript" {
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
}
|
||||
|
||||
interface NamedImports extends Node {
|
||||
|
||||
>NamedImports : NamedImports
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
>Node : Node
|
||||
|
||||
elements: NodeArray<ImportSpecifier>;
|
||||
|
||||
>elements : NodeArray<ImportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportSpecifier : ImportSpecifier
|
||||
|
||||
@@ -5,4 +5,5 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBinding_1.ts ===
|
||||
import defaultBinding from "es6ImportDefaultBinding_0";
|
||||
No type information for this code.
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (6 errors) ====
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
@@ -1,21 +0,0 @@
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
export var x = a;
|
||||
>x : number
|
||||
>a : number
|
||||
|
||||
export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts ===
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
No type information for this code.
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (6 errors) ====
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
@@ -1,21 +0,0 @@
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
export var x = a;
|
||||
>x : number
|
||||
>a : number
|
||||
|
||||
export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts ===
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
No type information for this code.
|
||||
@@ -5,4 +5,6 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
|
||||
No type information for this code.
|
||||
>defaultBinding : typeof defaultBinding
|
||||
>nameSpaceBinding : typeof defaultBinding
|
||||
|
||||
|
||||
+3
-1
@@ -5,4 +5,6 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
No type information for this code.
|
||||
>defaultBinding : typeof defaultBinding
|
||||
>nameSpaceBinding : typeof defaultBinding
|
||||
|
||||
|
||||
@@ -5,4 +5,5 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts ===
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
No type information for this code.
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
|
||||
@@ -5,4 +5,5 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImport_1.ts ===
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImport_0";
|
||||
No type information for this code.
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
|
||||
@@ -5,4 +5,5 @@ export var a = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImportInEs5_1.ts ===
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImportInEs5_0";
|
||||
No type information for this code.
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
|
||||
@@ -19,11 +19,32 @@ export var x1 = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImport_1.ts ===
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a as b } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { x, a as y } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { x as z, } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { m, } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
No type information for this code.
|
||||
import { a } from "es6ImportNamedImport_0";
|
||||
>a : number
|
||||
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
>a : unknown
|
||||
>b : number
|
||||
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
>x : number
|
||||
>a : unknown
|
||||
>y : number
|
||||
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
>x : unknown
|
||||
>z : number
|
||||
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
>m : number
|
||||
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
>a1 : number
|
||||
>x1 : number
|
||||
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
>a1 : unknown
|
||||
>a11 : number
|
||||
>x1 : unknown
|
||||
>x11 : number
|
||||
|
||||
|
||||
@@ -1,18 +1,33 @@
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS2300: Duplicate identifier 'yield'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,10): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,10): error TS2300: Duplicate identifier 'default'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,19): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,19): error TS2300: Duplicate identifier 'default'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS2300: Duplicate identifier 'yield'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(6,21): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(6,21): error TS2300: Duplicate identifier 'default'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts (3 errors) ====
|
||||
==== tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts (8 errors) ====
|
||||
|
||||
import { yield } from "somemodule"; // Allowed
|
||||
~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'yield'.
|
||||
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
import { yield as default } from "somemodule"; // error to use default as binding name
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
import { default as yield } from "somemodule"; // no error
|
||||
~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'yield'.
|
||||
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
@@ -0,0 +1,9 @@
|
||||
//// [es6ImportNamedImportIdentifiersParsing.ts]
|
||||
|
||||
import { yield } from "somemodule"; // Allowed
|
||||
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
||||
import { yield as default } from "somemodule"; // error to use default as binding name
|
||||
import { default as yield } from "somemodule"; // no error
|
||||
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
||||
|
||||
//// [es6ImportNamedImportIdentifiersParsing.js]
|
||||
@@ -19,11 +19,32 @@ export var x1 = 10;
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImportInEs5_1.ts ===
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.
|
||||
import { a } from "es6ImportNamedImportInEs5_0";
|
||||
>a : number
|
||||
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
>a : unknown
|
||||
>b : number
|
||||
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
>x : number
|
||||
>a : unknown
|
||||
>y : number
|
||||
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
>x : unknown
|
||||
>z : number
|
||||
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
>m : number
|
||||
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
>a1 : number
|
||||
>x1 : number
|
||||
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
>a1 : unknown
|
||||
>a11 : number
|
||||
>x1 : unknown
|
||||
>x11 : number
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,10): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,12): error TS1109: Expression expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,14): error TS2304: Cannot find name 'from'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,19): error TS1005: ';' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,24): error TS1005: '{' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,1): error TS1128: Declaration or statement expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,8): error TS1128: Declaration or statement expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,12): error TS2304: Cannot find name 'a'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,16): error TS2304: Cannot find name 'from'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,21): error TS1005: ';' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,13): error TS1005: 'from' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,15): error TS2304: Cannot find name 'from'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportParsingError_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportParsingError_1.ts (13 errors) ====
|
||||
import { * } from "es6ImportNamedImportParsingError_0";
|
||||
~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'from'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
import defaultBinding, from "es6ImportNamedImportParsingError_0";
|
||||
~~~~
|
||||
!!! error TS1005: '{' expected.
|
||||
import , { a } from "es6ImportNamedImportParsingError_0";
|
||||
~~~~~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'a'.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'from'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
import { a }, from "es6ImportNamedImportParsingError_0";
|
||||
~
|
||||
!!! error TS1005: 'from' expected.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'from'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
@@ -0,0 +1,6 @@
|
||||
//// [es6ImportParseErrors.ts]
|
||||
|
||||
import 10;
|
||||
|
||||
//// [es6ImportParseErrors.js]
|
||||
10;
|
||||
@@ -10,3 +10,4 @@ import "es6ImportWithoutFromClause_0";
|
||||
//// [es6ImportWithoutFromClause_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportWithoutFromClause_1.js]
|
||||
require("es6ImportWithoutFromClause_0");
|
||||
|
||||
@@ -10,3 +10,4 @@ import "es6ImportWithoutFromClauseInEs5_0";
|
||||
//// [es6ImportWithoutFromClauseInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportWithoutFromClauseInEs5_1.js]
|
||||
require("es6ImportWithoutFromClauseInEs5_0");
|
||||
|
||||
Reference in New Issue
Block a user