mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge branch 'master' into transitiveExports
Conflicts: src/compiler/checker.ts
This commit is contained in:
@@ -111,192 +111,195 @@ declare module "typescript" {
|
||||
BarBarToken = 49,
|
||||
QuestionToken = 50,
|
||||
ColonToken = 51,
|
||||
EqualsToken = 52,
|
||||
PlusEqualsToken = 53,
|
||||
MinusEqualsToken = 54,
|
||||
AsteriskEqualsToken = 55,
|
||||
SlashEqualsToken = 56,
|
||||
PercentEqualsToken = 57,
|
||||
LessThanLessThanEqualsToken = 58,
|
||||
GreaterThanGreaterThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,
|
||||
AmpersandEqualsToken = 61,
|
||||
BarEqualsToken = 62,
|
||||
CaretEqualsToken = 63,
|
||||
Identifier = 64,
|
||||
BreakKeyword = 65,
|
||||
CaseKeyword = 66,
|
||||
CatchKeyword = 67,
|
||||
ClassKeyword = 68,
|
||||
ConstKeyword = 69,
|
||||
ContinueKeyword = 70,
|
||||
DebuggerKeyword = 71,
|
||||
DefaultKeyword = 72,
|
||||
DeleteKeyword = 73,
|
||||
DoKeyword = 74,
|
||||
ElseKeyword = 75,
|
||||
EnumKeyword = 76,
|
||||
ExportKeyword = 77,
|
||||
ExtendsKeyword = 78,
|
||||
FalseKeyword = 79,
|
||||
FinallyKeyword = 80,
|
||||
ForKeyword = 81,
|
||||
FunctionKeyword = 82,
|
||||
IfKeyword = 83,
|
||||
ImportKeyword = 84,
|
||||
InKeyword = 85,
|
||||
InstanceOfKeyword = 86,
|
||||
NewKeyword = 87,
|
||||
NullKeyword = 88,
|
||||
ReturnKeyword = 89,
|
||||
SuperKeyword = 90,
|
||||
SwitchKeyword = 91,
|
||||
ThisKeyword = 92,
|
||||
ThrowKeyword = 93,
|
||||
TrueKeyword = 94,
|
||||
TryKeyword = 95,
|
||||
TypeOfKeyword = 96,
|
||||
VarKeyword = 97,
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
AsKeyword = 101,
|
||||
ImplementsKeyword = 102,
|
||||
InterfaceKeyword = 103,
|
||||
LetKeyword = 104,
|
||||
PackageKeyword = 105,
|
||||
PrivateKeyword = 106,
|
||||
ProtectedKeyword = 107,
|
||||
PublicKeyword = 108,
|
||||
StaticKeyword = 109,
|
||||
YieldKeyword = 110,
|
||||
AnyKeyword = 111,
|
||||
BooleanKeyword = 112,
|
||||
ConstructorKeyword = 113,
|
||||
DeclareKeyword = 114,
|
||||
GetKeyword = 115,
|
||||
ModuleKeyword = 116,
|
||||
RequireKeyword = 117,
|
||||
NumberKeyword = 118,
|
||||
SetKeyword = 119,
|
||||
StringKeyword = 120,
|
||||
SymbolKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
FromKeyword = 123,
|
||||
OfKeyword = 124,
|
||||
QualifiedName = 125,
|
||||
ComputedPropertyName = 126,
|
||||
TypeParameter = 127,
|
||||
Parameter = 128,
|
||||
PropertySignature = 129,
|
||||
PropertyDeclaration = 130,
|
||||
MethodSignature = 131,
|
||||
MethodDeclaration = 132,
|
||||
Constructor = 133,
|
||||
GetAccessor = 134,
|
||||
SetAccessor = 135,
|
||||
CallSignature = 136,
|
||||
ConstructSignature = 137,
|
||||
IndexSignature = 138,
|
||||
TypeReference = 139,
|
||||
FunctionType = 140,
|
||||
ConstructorType = 141,
|
||||
TypeQuery = 142,
|
||||
TypeLiteral = 143,
|
||||
ArrayType = 144,
|
||||
TupleType = 145,
|
||||
UnionType = 146,
|
||||
ParenthesizedType = 147,
|
||||
ObjectBindingPattern = 148,
|
||||
ArrayBindingPattern = 149,
|
||||
BindingElement = 150,
|
||||
ArrayLiteralExpression = 151,
|
||||
ObjectLiteralExpression = 152,
|
||||
PropertyAccessExpression = 153,
|
||||
ElementAccessExpression = 154,
|
||||
CallExpression = 155,
|
||||
NewExpression = 156,
|
||||
TaggedTemplateExpression = 157,
|
||||
TypeAssertionExpression = 158,
|
||||
ParenthesizedExpression = 159,
|
||||
FunctionExpression = 160,
|
||||
ArrowFunction = 161,
|
||||
DeleteExpression = 162,
|
||||
TypeOfExpression = 163,
|
||||
VoidExpression = 164,
|
||||
PrefixUnaryExpression = 165,
|
||||
PostfixUnaryExpression = 166,
|
||||
BinaryExpression = 167,
|
||||
ConditionalExpression = 168,
|
||||
TemplateExpression = 169,
|
||||
YieldExpression = 170,
|
||||
SpreadElementExpression = 171,
|
||||
OmittedExpression = 172,
|
||||
TemplateSpan = 173,
|
||||
Block = 174,
|
||||
VariableStatement = 175,
|
||||
EmptyStatement = 176,
|
||||
ExpressionStatement = 177,
|
||||
IfStatement = 178,
|
||||
DoStatement = 179,
|
||||
WhileStatement = 180,
|
||||
ForStatement = 181,
|
||||
ForInStatement = 182,
|
||||
ForOfStatement = 183,
|
||||
ContinueStatement = 184,
|
||||
BreakStatement = 185,
|
||||
ReturnStatement = 186,
|
||||
WithStatement = 187,
|
||||
SwitchStatement = 188,
|
||||
LabeledStatement = 189,
|
||||
ThrowStatement = 190,
|
||||
TryStatement = 191,
|
||||
DebuggerStatement = 192,
|
||||
VariableDeclaration = 193,
|
||||
VariableDeclarationList = 194,
|
||||
FunctionDeclaration = 195,
|
||||
ClassDeclaration = 196,
|
||||
InterfaceDeclaration = 197,
|
||||
TypeAliasDeclaration = 198,
|
||||
EnumDeclaration = 199,
|
||||
ModuleDeclaration = 200,
|
||||
ModuleBlock = 201,
|
||||
CaseBlock = 202,
|
||||
ImportEqualsDeclaration = 203,
|
||||
ImportDeclaration = 204,
|
||||
ImportClause = 205,
|
||||
NamespaceImport = 206,
|
||||
NamedImports = 207,
|
||||
ImportSpecifier = 208,
|
||||
ExportAssignment = 209,
|
||||
ExportDeclaration = 210,
|
||||
NamedExports = 211,
|
||||
ExportSpecifier = 212,
|
||||
ExternalModuleReference = 213,
|
||||
CaseClause = 214,
|
||||
DefaultClause = 215,
|
||||
HeritageClause = 216,
|
||||
CatchClause = 217,
|
||||
PropertyAssignment = 218,
|
||||
ShorthandPropertyAssignment = 219,
|
||||
EnumMember = 220,
|
||||
SourceFile = 221,
|
||||
SyntaxList = 222,
|
||||
Count = 223,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 102,
|
||||
LastFutureReservedWord = 110,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
AtToken = 52,
|
||||
EqualsToken = 53,
|
||||
PlusEqualsToken = 54,
|
||||
MinusEqualsToken = 55,
|
||||
AsteriskEqualsToken = 56,
|
||||
SlashEqualsToken = 57,
|
||||
PercentEqualsToken = 58,
|
||||
LessThanLessThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanEqualsToken = 60,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,
|
||||
AmpersandEqualsToken = 62,
|
||||
BarEqualsToken = 63,
|
||||
CaretEqualsToken = 64,
|
||||
Identifier = 65,
|
||||
BreakKeyword = 66,
|
||||
CaseKeyword = 67,
|
||||
CatchKeyword = 68,
|
||||
ClassKeyword = 69,
|
||||
ConstKeyword = 70,
|
||||
ContinueKeyword = 71,
|
||||
DebuggerKeyword = 72,
|
||||
DefaultKeyword = 73,
|
||||
DeleteKeyword = 74,
|
||||
DoKeyword = 75,
|
||||
ElseKeyword = 76,
|
||||
EnumKeyword = 77,
|
||||
ExportKeyword = 78,
|
||||
ExtendsKeyword = 79,
|
||||
FalseKeyword = 80,
|
||||
FinallyKeyword = 81,
|
||||
ForKeyword = 82,
|
||||
FunctionKeyword = 83,
|
||||
IfKeyword = 84,
|
||||
ImportKeyword = 85,
|
||||
InKeyword = 86,
|
||||
InstanceOfKeyword = 87,
|
||||
NewKeyword = 88,
|
||||
NullKeyword = 89,
|
||||
ReturnKeyword = 90,
|
||||
SuperKeyword = 91,
|
||||
SwitchKeyword = 92,
|
||||
ThisKeyword = 93,
|
||||
ThrowKeyword = 94,
|
||||
TrueKeyword = 95,
|
||||
TryKeyword = 96,
|
||||
TypeOfKeyword = 97,
|
||||
VarKeyword = 98,
|
||||
VoidKeyword = 99,
|
||||
WhileKeyword = 100,
|
||||
WithKeyword = 101,
|
||||
AsKeyword = 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,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 123,
|
||||
FromKeyword = 124,
|
||||
OfKeyword = 125,
|
||||
QualifiedName = 126,
|
||||
ComputedPropertyName = 127,
|
||||
TypeParameter = 128,
|
||||
Parameter = 129,
|
||||
Decorator = 130,
|
||||
PropertySignature = 131,
|
||||
PropertyDeclaration = 132,
|
||||
MethodSignature = 133,
|
||||
MethodDeclaration = 134,
|
||||
Constructor = 135,
|
||||
GetAccessor = 136,
|
||||
SetAccessor = 137,
|
||||
CallSignature = 138,
|
||||
ConstructSignature = 139,
|
||||
IndexSignature = 140,
|
||||
TypeReference = 141,
|
||||
FunctionType = 142,
|
||||
ConstructorType = 143,
|
||||
TypeQuery = 144,
|
||||
TypeLiteral = 145,
|
||||
ArrayType = 146,
|
||||
TupleType = 147,
|
||||
UnionType = 148,
|
||||
ParenthesizedType = 149,
|
||||
ObjectBindingPattern = 150,
|
||||
ArrayBindingPattern = 151,
|
||||
BindingElement = 152,
|
||||
ArrayLiteralExpression = 153,
|
||||
ObjectLiteralExpression = 154,
|
||||
PropertyAccessExpression = 155,
|
||||
ElementAccessExpression = 156,
|
||||
CallExpression = 157,
|
||||
NewExpression = 158,
|
||||
TaggedTemplateExpression = 159,
|
||||
TypeAssertionExpression = 160,
|
||||
ParenthesizedExpression = 161,
|
||||
FunctionExpression = 162,
|
||||
ArrowFunction = 163,
|
||||
DeleteExpression = 164,
|
||||
TypeOfExpression = 165,
|
||||
VoidExpression = 166,
|
||||
PrefixUnaryExpression = 167,
|
||||
PostfixUnaryExpression = 168,
|
||||
BinaryExpression = 169,
|
||||
ConditionalExpression = 170,
|
||||
TemplateExpression = 171,
|
||||
YieldExpression = 172,
|
||||
SpreadElementExpression = 173,
|
||||
OmittedExpression = 174,
|
||||
TemplateSpan = 175,
|
||||
Block = 176,
|
||||
VariableStatement = 177,
|
||||
EmptyStatement = 178,
|
||||
ExpressionStatement = 179,
|
||||
IfStatement = 180,
|
||||
DoStatement = 181,
|
||||
WhileStatement = 182,
|
||||
ForStatement = 183,
|
||||
ForInStatement = 184,
|
||||
ForOfStatement = 185,
|
||||
ContinueStatement = 186,
|
||||
BreakStatement = 187,
|
||||
ReturnStatement = 188,
|
||||
WithStatement = 189,
|
||||
SwitchStatement = 190,
|
||||
LabeledStatement = 191,
|
||||
ThrowStatement = 192,
|
||||
TryStatement = 193,
|
||||
DebuggerStatement = 194,
|
||||
VariableDeclaration = 195,
|
||||
VariableDeclarationList = 196,
|
||||
FunctionDeclaration = 197,
|
||||
ClassDeclaration = 198,
|
||||
InterfaceDeclaration = 199,
|
||||
TypeAliasDeclaration = 200,
|
||||
EnumDeclaration = 201,
|
||||
ModuleDeclaration = 202,
|
||||
ModuleBlock = 203,
|
||||
CaseBlock = 204,
|
||||
ImportEqualsDeclaration = 205,
|
||||
ImportDeclaration = 206,
|
||||
ImportClause = 207,
|
||||
NamespaceImport = 208,
|
||||
NamedImports = 209,
|
||||
ImportSpecifier = 210,
|
||||
ExportAssignment = 211,
|
||||
ExportDeclaration = 212,
|
||||
NamedExports = 213,
|
||||
ExportSpecifier = 214,
|
||||
MissingDeclaration = 215,
|
||||
ExternalModuleReference = 216,
|
||||
CaseClause = 217,
|
||||
DefaultClause = 218,
|
||||
HeritageClause = 219,
|
||||
CatchClause = 220,
|
||||
PropertyAssignment = 221,
|
||||
ShorthandPropertyAssignment = 222,
|
||||
EnumMember = 223,
|
||||
SourceFile = 224,
|
||||
SyntaxList = 225,
|
||||
Count = 226,
|
||||
FirstAssignment = 53,
|
||||
LastAssignment = 64,
|
||||
FirstReservedWord = 66,
|
||||
LastReservedWord = 101,
|
||||
FirstKeyword = 66,
|
||||
LastKeyword = 125,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 141,
|
||||
LastTypeNode = 149,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
LastPunctuation = 64,
|
||||
FirstToken = 0,
|
||||
LastToken = 124,
|
||||
LastToken = 125,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -304,8 +307,8 @@ declare module "typescript" {
|
||||
FirstTemplateToken = 10,
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 125,
|
||||
LastBinaryOperator = 64,
|
||||
FirstNode = 126,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -321,6 +324,7 @@ declare module "typescript" {
|
||||
Let = 4096,
|
||||
Const = 8192,
|
||||
OctalLiteral = 16384,
|
||||
ExportContext = 32768,
|
||||
Modifier = 499,
|
||||
AccessibilityModifier = 112,
|
||||
BlockScoped = 12288,
|
||||
@@ -330,10 +334,11 @@ declare module "typescript" {
|
||||
DisallowIn = 2,
|
||||
Yield = 4,
|
||||
GeneratorParameter = 8,
|
||||
ThisNodeHasError = 16,
|
||||
ParserGeneratedFlags = 31,
|
||||
ThisNodeOrAnySubNodesHasError = 32,
|
||||
HasAggregatedChildData = 64,
|
||||
Decorator = 16,
|
||||
ThisNodeHasError = 32,
|
||||
ParserGeneratedFlags = 63,
|
||||
ThisNodeOrAnySubNodesHasError = 64,
|
||||
HasAggregatedChildData = 128,
|
||||
}
|
||||
const enum RelationComparisonResult {
|
||||
Succeeded = 1,
|
||||
@@ -344,6 +349,7 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
decorators?: NodeArray<Decorator>;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
@@ -374,6 +380,9 @@ declare module "typescript" {
|
||||
interface ComputedPropertyName extends Node {
|
||||
expression: Expression;
|
||||
}
|
||||
interface Decorator extends Node {
|
||||
expression: LeftHandSideExpression;
|
||||
}
|
||||
interface TypeParameterDeclaration extends Declaration {
|
||||
name: Identifier;
|
||||
constraint?: TypeNode;
|
||||
@@ -940,8 +949,8 @@ declare module "typescript" {
|
||||
interface EmitResolver {
|
||||
hasGlobalName(name: string): boolean;
|
||||
getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string;
|
||||
hasExportDefaultValue(node: SourceFile): boolean;
|
||||
isReferencedAliasDeclaration(node: Node): boolean;
|
||||
isValueAliasDeclaration(node: Node): boolean;
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
@@ -1060,6 +1069,7 @@ declare module "typescript" {
|
||||
ContextChecked = 64,
|
||||
EnumValuesComputed = 128,
|
||||
BlockScopedBindingInLoop = 256,
|
||||
EmitDecorate = 512,
|
||||
}
|
||||
interface NodeLinks {
|
||||
resolvedType?: Type;
|
||||
|
||||
@@ -351,562 +351,571 @@ declare module "typescript" {
|
||||
ColonToken = 51,␍
|
||||
>ColonToken : SyntaxKind
|
||||
|
||||
EqualsToken = 52,␍
|
||||
AtToken = 52,␍
|
||||
>AtToken : SyntaxKind
|
||||
|
||||
EqualsToken = 53,␍
|
||||
>EqualsToken : SyntaxKind
|
||||
|
||||
PlusEqualsToken = 53,␍
|
||||
PlusEqualsToken = 54,␍
|
||||
>PlusEqualsToken : SyntaxKind
|
||||
|
||||
MinusEqualsToken = 54,␍
|
||||
MinusEqualsToken = 55,␍
|
||||
>MinusEqualsToken : SyntaxKind
|
||||
|
||||
AsteriskEqualsToken = 55,␍
|
||||
AsteriskEqualsToken = 56,␍
|
||||
>AsteriskEqualsToken : SyntaxKind
|
||||
|
||||
SlashEqualsToken = 56,␍
|
||||
SlashEqualsToken = 57,␍
|
||||
>SlashEqualsToken : SyntaxKind
|
||||
|
||||
PercentEqualsToken = 57,␍
|
||||
PercentEqualsToken = 58,␍
|
||||
>PercentEqualsToken : SyntaxKind
|
||||
|
||||
LessThanLessThanEqualsToken = 58,␍
|
||||
LessThanLessThanEqualsToken = 59,␍
|
||||
>LessThanLessThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanEqualsToken = 59,␍
|
||||
GreaterThanGreaterThanEqualsToken = 60,␍
|
||||
>GreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,␍
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,␍
|
||||
>GreaterThanGreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
AmpersandEqualsToken = 61,␍
|
||||
AmpersandEqualsToken = 62,␍
|
||||
>AmpersandEqualsToken : SyntaxKind
|
||||
|
||||
BarEqualsToken = 62,␍
|
||||
BarEqualsToken = 63,␍
|
||||
>BarEqualsToken : SyntaxKind
|
||||
|
||||
CaretEqualsToken = 63,␍
|
||||
CaretEqualsToken = 64,␍
|
||||
>CaretEqualsToken : SyntaxKind
|
||||
|
||||
Identifier = 64,␍
|
||||
Identifier = 65,␍
|
||||
>Identifier : SyntaxKind
|
||||
|
||||
BreakKeyword = 65,␍
|
||||
BreakKeyword = 66,␍
|
||||
>BreakKeyword : SyntaxKind
|
||||
|
||||
CaseKeyword = 66,␍
|
||||
CaseKeyword = 67,␍
|
||||
>CaseKeyword : SyntaxKind
|
||||
|
||||
CatchKeyword = 67,␍
|
||||
CatchKeyword = 68,␍
|
||||
>CatchKeyword : SyntaxKind
|
||||
|
||||
ClassKeyword = 68,␍
|
||||
ClassKeyword = 69,␍
|
||||
>ClassKeyword : SyntaxKind
|
||||
|
||||
ConstKeyword = 69,␍
|
||||
ConstKeyword = 70,␍
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
ContinueKeyword = 70,␍
|
||||
ContinueKeyword = 71,␍
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,␍
|
||||
DebuggerKeyword = 72,␍
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
DefaultKeyword = 72,␍
|
||||
DefaultKeyword = 73,␍
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
DeleteKeyword = 73,␍
|
||||
DeleteKeyword = 74,␍
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,␍
|
||||
DoKeyword = 75,␍
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
ElseKeyword = 75,␍
|
||||
ElseKeyword = 76,␍
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
EnumKeyword = 76,␍
|
||||
EnumKeyword = 77,␍
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,␍
|
||||
ExportKeyword = 78,␍
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
ExtendsKeyword = 78,␍
|
||||
ExtendsKeyword = 79,␍
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
FalseKeyword = 79,␍
|
||||
FalseKeyword = 80,␍
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,␍
|
||||
FinallyKeyword = 81,␍
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
ForKeyword = 81,␍
|
||||
ForKeyword = 82,␍
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
FunctionKeyword = 82,␍
|
||||
FunctionKeyword = 83,␍
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,␍
|
||||
IfKeyword = 84,␍
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
ImportKeyword = 84,␍
|
||||
ImportKeyword = 85,␍
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
InKeyword = 85,␍
|
||||
InKeyword = 86,␍
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,␍
|
||||
InstanceOfKeyword = 87,␍
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
NewKeyword = 87,␍
|
||||
NewKeyword = 88,␍
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
NullKeyword = 88,␍
|
||||
NullKeyword = 89,␍
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,␍
|
||||
ReturnKeyword = 90,␍
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
SuperKeyword = 90,␍
|
||||
SuperKeyword = 91,␍
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
SwitchKeyword = 91,␍
|
||||
SwitchKeyword = 92,␍
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,␍
|
||||
ThisKeyword = 93,␍
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
ThrowKeyword = 93,␍
|
||||
ThrowKeyword = 94,␍
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
TrueKeyword = 94,␍
|
||||
TrueKeyword = 95,␍
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,␍
|
||||
TryKeyword = 96,␍
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
TypeOfKeyword = 96,␍
|
||||
TypeOfKeyword = 97,␍
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
VarKeyword = 97,␍
|
||||
VarKeyword = 98,␍
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,␍
|
||||
VoidKeyword = 99,␍
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
WhileKeyword = 99,␍
|
||||
WhileKeyword = 100,␍
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
WithKeyword = 100,␍
|
||||
WithKeyword = 101,␍
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,␍
|
||||
AsKeyword = 102,␍
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
ImplementsKeyword = 102,␍
|
||||
ImplementsKeyword = 103,␍
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 103,␍
|
||||
InterfaceKeyword = 104,␍
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
LetKeyword = 104,␍
|
||||
LetKeyword = 105,␍
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
PackageKeyword = 105,␍
|
||||
PackageKeyword = 106,␍
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 106,␍
|
||||
PrivateKeyword = 107,␍
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
ProtectedKeyword = 107,␍
|
||||
ProtectedKeyword = 108,␍
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
PublicKeyword = 108,␍
|
||||
PublicKeyword = 109,␍
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 109,␍
|
||||
StaticKeyword = 110,␍
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
YieldKeyword = 110,␍
|
||||
YieldKeyword = 111,␍
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
AnyKeyword = 111,␍
|
||||
AnyKeyword = 112,␍
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 112,␍
|
||||
BooleanKeyword = 113,␍
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
ConstructorKeyword = 113,␍
|
||||
ConstructorKeyword = 114,␍
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
DeclareKeyword = 114,␍
|
||||
DeclareKeyword = 115,␍
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 115,␍
|
||||
GetKeyword = 116,␍
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
ModuleKeyword = 116,␍
|
||||
ModuleKeyword = 117,␍
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
RequireKeyword = 117,␍
|
||||
RequireKeyword = 118,␍
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 118,␍
|
||||
NumberKeyword = 119,␍
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
SetKeyword = 119,␍
|
||||
SetKeyword = 120,␍
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
StringKeyword = 120,␍
|
||||
StringKeyword = 121,␍
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 121,␍
|
||||
SymbolKeyword = 122,␍
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,␍
|
||||
TypeKeyword = 123,␍
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
FromKeyword = 123,␍
|
||||
FromKeyword = 124,␍
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
OfKeyword = 124,␍
|
||||
OfKeyword = 125,␍
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,␍
|
||||
QualifiedName = 126,␍
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
ComputedPropertyName = 126,␍
|
||||
ComputedPropertyName = 127,␍
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 127,␍
|
||||
TypeParameter = 128,␍
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,␍
|
||||
Parameter = 129,␍
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
PropertySignature = 129,␍
|
||||
Decorator = 130,␍
|
||||
>Decorator : SyntaxKind
|
||||
|
||||
PropertySignature = 131,␍
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 130,␍
|
||||
PropertyDeclaration = 132,␍
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,␍
|
||||
MethodSignature = 133,␍
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
MethodDeclaration = 132,␍
|
||||
MethodDeclaration = 134,␍
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 133,␍
|
||||
Constructor = 135,␍
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,␍
|
||||
GetAccessor = 136,␍
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
SetAccessor = 135,␍
|
||||
SetAccessor = 137,␍
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 136,␍
|
||||
CallSignature = 138,␍
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,␍
|
||||
ConstructSignature = 139,␍
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
IndexSignature = 138,␍
|
||||
IndexSignature = 140,␍
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 139,␍
|
||||
TypeReference = 141,␍
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,␍
|
||||
FunctionType = 142,␍
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
ConstructorType = 141,␍
|
||||
ConstructorType = 143,␍
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 142,␍
|
||||
TypeQuery = 144,␍
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,␍
|
||||
TypeLiteral = 145,␍
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
ArrayType = 144,␍
|
||||
ArrayType = 146,␍
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 145,␍
|
||||
TupleType = 147,␍
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,␍
|
||||
UnionType = 148,␍
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
ParenthesizedType = 147,␍
|
||||
ParenthesizedType = 149,␍
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,␍
|
||||
ObjectBindingPattern = 150,␍
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,␍
|
||||
ArrayBindingPattern = 151,␍
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,␍
|
||||
BindingElement = 152,␍
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,␍
|
||||
ArrayLiteralExpression = 153,␍
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,␍
|
||||
ObjectLiteralExpression = 154,␍
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,␍
|
||||
PropertyAccessExpression = 155,␍
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 154,␍
|
||||
ElementAccessExpression = 156,␍
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,␍
|
||||
CallExpression = 157,␍
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
NewExpression = 156,␍
|
||||
NewExpression = 158,␍
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 157,␍
|
||||
TaggedTemplateExpression = 159,␍
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,␍
|
||||
TypeAssertionExpression = 160,␍
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
ParenthesizedExpression = 159,␍
|
||||
ParenthesizedExpression = 161,␍
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
FunctionExpression = 160,␍
|
||||
FunctionExpression = 162,␍
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,␍
|
||||
ArrowFunction = 163,␍
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
DeleteExpression = 162,␍
|
||||
DeleteExpression = 164,␍
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 163,␍
|
||||
TypeOfExpression = 165,␍
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
VoidExpression = 164,␍
|
||||
VoidExpression = 166,␍
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 165,␍
|
||||
PrefixUnaryExpression = 167,␍
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 166,␍
|
||||
PostfixUnaryExpression = 168,␍
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,␍
|
||||
BinaryExpression = 169,␍
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
ConditionalExpression = 168,␍
|
||||
ConditionalExpression = 170,␍
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 169,␍
|
||||
TemplateExpression = 171,␍
|
||||
>TemplateExpression : SyntaxKind
|
||||
|
||||
YieldExpression = 170,␍
|
||||
YieldExpression = 172,␍
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
SpreadElementExpression = 171,␍
|
||||
SpreadElementExpression = 173,␍
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
OmittedExpression = 172,␍
|
||||
OmittedExpression = 174,␍
|
||||
>OmittedExpression : SyntaxKind
|
||||
|
||||
TemplateSpan = 173,␍
|
||||
TemplateSpan = 175,␍
|
||||
>TemplateSpan : SyntaxKind
|
||||
|
||||
Block = 174,␍
|
||||
Block = 176,␍
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 175,␍
|
||||
VariableStatement = 177,␍
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 176,␍
|
||||
EmptyStatement = 178,␍
|
||||
>EmptyStatement : SyntaxKind
|
||||
|
||||
ExpressionStatement = 177,␍
|
||||
ExpressionStatement = 179,␍
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
IfStatement = 178,␍
|
||||
IfStatement = 180,␍
|
||||
>IfStatement : SyntaxKind
|
||||
|
||||
DoStatement = 179,␍
|
||||
DoStatement = 181,␍
|
||||
>DoStatement : SyntaxKind
|
||||
|
||||
WhileStatement = 180,␍
|
||||
WhileStatement = 182,␍
|
||||
>WhileStatement : SyntaxKind
|
||||
|
||||
ForStatement = 181,␍
|
||||
ForStatement = 183,␍
|
||||
>ForStatement : SyntaxKind
|
||||
|
||||
ForInStatement = 182,␍
|
||||
ForInStatement = 184,␍
|
||||
>ForInStatement : SyntaxKind
|
||||
|
||||
ForOfStatement = 183,␍
|
||||
ForOfStatement = 185,␍
|
||||
>ForOfStatement : SyntaxKind
|
||||
|
||||
ContinueStatement = 184,␍
|
||||
ContinueStatement = 186,␍
|
||||
>ContinueStatement : SyntaxKind
|
||||
|
||||
BreakStatement = 185,␍
|
||||
BreakStatement = 187,␍
|
||||
>BreakStatement : SyntaxKind
|
||||
|
||||
ReturnStatement = 186,␍
|
||||
ReturnStatement = 188,␍
|
||||
>ReturnStatement : SyntaxKind
|
||||
|
||||
WithStatement = 187,␍
|
||||
WithStatement = 189,␍
|
||||
>WithStatement : SyntaxKind
|
||||
|
||||
SwitchStatement = 188,␍
|
||||
SwitchStatement = 190,␍
|
||||
>SwitchStatement : SyntaxKind
|
||||
|
||||
LabeledStatement = 189,␍
|
||||
LabeledStatement = 191,␍
|
||||
>LabeledStatement : SyntaxKind
|
||||
|
||||
ThrowStatement = 190,␍
|
||||
ThrowStatement = 192,␍
|
||||
>ThrowStatement : SyntaxKind
|
||||
|
||||
TryStatement = 191,␍
|
||||
TryStatement = 193,␍
|
||||
>TryStatement : SyntaxKind
|
||||
|
||||
DebuggerStatement = 192,␍
|
||||
DebuggerStatement = 194,␍
|
||||
>DebuggerStatement : SyntaxKind
|
||||
|
||||
VariableDeclaration = 193,␍
|
||||
VariableDeclaration = 195,␍
|
||||
>VariableDeclaration : SyntaxKind
|
||||
|
||||
VariableDeclarationList = 194,␍
|
||||
VariableDeclarationList = 196,␍
|
||||
>VariableDeclarationList : SyntaxKind
|
||||
|
||||
FunctionDeclaration = 195,␍
|
||||
FunctionDeclaration = 197,␍
|
||||
>FunctionDeclaration : SyntaxKind
|
||||
|
||||
ClassDeclaration = 196,␍
|
||||
ClassDeclaration = 198,␍
|
||||
>ClassDeclaration : SyntaxKind
|
||||
|
||||
InterfaceDeclaration = 197,␍
|
||||
InterfaceDeclaration = 199,␍
|
||||
>InterfaceDeclaration : SyntaxKind
|
||||
|
||||
TypeAliasDeclaration = 198,␍
|
||||
TypeAliasDeclaration = 200,␍
|
||||
>TypeAliasDeclaration : SyntaxKind
|
||||
|
||||
EnumDeclaration = 199,␍
|
||||
EnumDeclaration = 201,␍
|
||||
>EnumDeclaration : SyntaxKind
|
||||
|
||||
ModuleDeclaration = 200,␍
|
||||
ModuleDeclaration = 202,␍
|
||||
>ModuleDeclaration : SyntaxKind
|
||||
|
||||
ModuleBlock = 201,␍
|
||||
ModuleBlock = 203,␍
|
||||
>ModuleBlock : SyntaxKind
|
||||
|
||||
CaseBlock = 202,␍
|
||||
CaseBlock = 204,␍
|
||||
>CaseBlock : SyntaxKind
|
||||
|
||||
ImportEqualsDeclaration = 203,␍
|
||||
ImportEqualsDeclaration = 205,␍
|
||||
>ImportEqualsDeclaration : SyntaxKind
|
||||
|
||||
ImportDeclaration = 204,␍
|
||||
ImportDeclaration = 206,␍
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 205,␍
|
||||
ImportClause = 207,␍
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 206,␍
|
||||
NamespaceImport = 208,␍
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
NamedImports = 207,␍
|
||||
NamedImports = 209,␍
|
||||
>NamedImports : SyntaxKind
|
||||
|
||||
ImportSpecifier = 208,␍
|
||||
ImportSpecifier = 210,␍
|
||||
>ImportSpecifier : SyntaxKind
|
||||
|
||||
ExportAssignment = 209,␍
|
||||
ExportAssignment = 211,␍
|
||||
>ExportAssignment : SyntaxKind
|
||||
|
||||
ExportDeclaration = 210,␍
|
||||
ExportDeclaration = 212,␍
|
||||
>ExportDeclaration : SyntaxKind
|
||||
|
||||
NamedExports = 211,␍
|
||||
NamedExports = 213,␍
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
ExportSpecifier = 212,␍
|
||||
ExportSpecifier = 214,␍
|
||||
>ExportSpecifier : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 213,␍
|
||||
MissingDeclaration = 215,␍
|
||||
>MissingDeclaration : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 216,␍
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 214,␍
|
||||
CaseClause = 217,␍
|
||||
>CaseClause : SyntaxKind
|
||||
|
||||
DefaultClause = 215,␍
|
||||
DefaultClause = 218,␍
|
||||
>DefaultClause : SyntaxKind
|
||||
|
||||
HeritageClause = 216,␍
|
||||
HeritageClause = 219,␍
|
||||
>HeritageClause : SyntaxKind
|
||||
|
||||
CatchClause = 217,␍
|
||||
CatchClause = 220,␍
|
||||
>CatchClause : SyntaxKind
|
||||
|
||||
PropertyAssignment = 218,␍
|
||||
PropertyAssignment = 221,␍
|
||||
>PropertyAssignment : SyntaxKind
|
||||
|
||||
ShorthandPropertyAssignment = 219,␍
|
||||
ShorthandPropertyAssignment = 222,␍
|
||||
>ShorthandPropertyAssignment : SyntaxKind
|
||||
|
||||
EnumMember = 220,␍
|
||||
EnumMember = 223,␍
|
||||
>EnumMember : SyntaxKind
|
||||
|
||||
SourceFile = 221,␍
|
||||
SourceFile = 224,␍
|
||||
>SourceFile : SyntaxKind
|
||||
|
||||
SyntaxList = 222,␍
|
||||
SyntaxList = 225,␍
|
||||
>SyntaxList : SyntaxKind
|
||||
|
||||
Count = 223,␍
|
||||
Count = 226,␍
|
||||
>Count : SyntaxKind
|
||||
|
||||
FirstAssignment = 52,␍
|
||||
FirstAssignment = 53,␍
|
||||
>FirstAssignment : SyntaxKind
|
||||
|
||||
LastAssignment = 63,␍
|
||||
LastAssignment = 64,␍
|
||||
>LastAssignment : SyntaxKind
|
||||
|
||||
FirstReservedWord = 65,␍
|
||||
FirstReservedWord = 66,␍
|
||||
>FirstReservedWord : SyntaxKind
|
||||
|
||||
LastReservedWord = 100,␍
|
||||
LastReservedWord = 101,␍
|
||||
>LastReservedWord : SyntaxKind
|
||||
|
||||
FirstKeyword = 65,␍
|
||||
FirstKeyword = 66,␍
|
||||
>FirstKeyword : SyntaxKind
|
||||
|
||||
LastKeyword = 124,␍
|
||||
LastKeyword = 125,␍
|
||||
>LastKeyword : SyntaxKind
|
||||
|
||||
FirstFutureReservedWord = 102,␍
|
||||
FirstFutureReservedWord = 103,␍
|
||||
>FirstFutureReservedWord : SyntaxKind
|
||||
|
||||
LastFutureReservedWord = 110,␍
|
||||
LastFutureReservedWord = 111,␍
|
||||
>LastFutureReservedWord : SyntaxKind
|
||||
|
||||
FirstTypeNode = 139,␍
|
||||
FirstTypeNode = 141,␍
|
||||
>FirstTypeNode : SyntaxKind
|
||||
|
||||
LastTypeNode = 147,␍
|
||||
LastTypeNode = 149,␍
|
||||
>LastTypeNode : SyntaxKind
|
||||
|
||||
FirstPunctuation = 14,␍
|
||||
>FirstPunctuation : SyntaxKind
|
||||
|
||||
LastPunctuation = 63,␍
|
||||
LastPunctuation = 64,␍
|
||||
>LastPunctuation : SyntaxKind
|
||||
|
||||
FirstToken = 0,␍
|
||||
>FirstToken : SyntaxKind
|
||||
|
||||
LastToken = 124,␍
|
||||
LastToken = 125,␍
|
||||
>LastToken : SyntaxKind
|
||||
|
||||
FirstTriviaToken = 2,␍
|
||||
@@ -930,10 +939,10 @@ declare module "typescript" {
|
||||
FirstBinaryOperator = 24,␍
|
||||
>FirstBinaryOperator : SyntaxKind
|
||||
|
||||
LastBinaryOperator = 63,␍
|
||||
LastBinaryOperator = 64,␍
|
||||
>LastBinaryOperator : SyntaxKind
|
||||
|
||||
FirstNode = 125,␍
|
||||
FirstNode = 126,␍
|
||||
>FirstNode : SyntaxKind
|
||||
}␍
|
||||
const enum NodeFlags {␍
|
||||
@@ -978,6 +987,9 @@ declare module "typescript" {
|
||||
OctalLiteral = 16384,␍
|
||||
>OctalLiteral : NodeFlags
|
||||
|
||||
ExportContext = 32768,␍
|
||||
>ExportContext : NodeFlags
|
||||
|
||||
Modifier = 499,␍
|
||||
>Modifier : NodeFlags
|
||||
|
||||
@@ -1002,16 +1014,19 @@ declare module "typescript" {
|
||||
GeneratorParameter = 8,␍
|
||||
>GeneratorParameter : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 16,␍
|
||||
Decorator = 16,␍
|
||||
>Decorator : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 32,␍
|
||||
>ThisNodeHasError : ParserContextFlags
|
||||
|
||||
ParserGeneratedFlags = 31,␍
|
||||
ParserGeneratedFlags = 63,␍
|
||||
>ParserGeneratedFlags : ParserContextFlags
|
||||
|
||||
ThisNodeOrAnySubNodesHasError = 32,␍
|
||||
ThisNodeOrAnySubNodesHasError = 64,␍
|
||||
>ThisNodeOrAnySubNodesHasError : ParserContextFlags
|
||||
|
||||
HasAggregatedChildData = 64,␍
|
||||
HasAggregatedChildData = 128,␍
|
||||
>HasAggregatedChildData : ParserContextFlags
|
||||
}␍
|
||||
const enum RelationComparisonResult {␍
|
||||
@@ -1042,6 +1057,11 @@ declare module "typescript" {
|
||||
>parserContextFlags : ParserContextFlags
|
||||
>ParserContextFlags : ParserContextFlags
|
||||
|
||||
decorators?: NodeArray<Decorator>;␍
|
||||
>decorators : NodeArray<Decorator>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Decorator : Decorator
|
||||
|
||||
modifiers?: ModifiersArray;␍
|
||||
>modifiers : ModifiersArray
|
||||
>ModifiersArray : ModifiersArray
|
||||
@@ -1136,6 +1156,14 @@ declare module "typescript" {
|
||||
expression: Expression;␍
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}␍
|
||||
interface Decorator extends Node {␍
|
||||
>Decorator : Decorator
|
||||
>Node : Node
|
||||
|
||||
expression: LeftHandSideExpression;␍
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
}␍
|
||||
interface TypeParameterDeclaration extends Declaration {␍
|
||||
>TypeParameterDeclaration : TypeParameterDeclaration
|
||||
@@ -3015,16 +3043,17 @@ declare module "typescript" {
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
hasExportDefaultValue(node: SourceFile): boolean;␍
|
||||
>hasExportDefaultValue : (node: SourceFile) => boolean
|
||||
>node : SourceFile
|
||||
>SourceFile : SourceFile
|
||||
|
||||
isReferencedAliasDeclaration(node: Node): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node) => boolean
|
||||
isValueAliasDeclaration(node: Node): boolean;␍
|
||||
>isValueAliasDeclaration : (node: Node) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node, checkChildren?: boolean) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>checkChildren : boolean
|
||||
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;␍
|
||||
>isTopLevelValueImportEqualsWithEntityName : (node: ImportEqualsDeclaration) => boolean
|
||||
>node : ImportEqualsDeclaration
|
||||
@@ -3434,6 +3463,9 @@ declare module "typescript" {
|
||||
|
||||
BlockScopedBindingInLoop = 256,␍
|
||||
>BlockScopedBindingInLoop : NodeCheckFlags
|
||||
|
||||
EmitDecorate = 512,␍
|
||||
>EmitDecorate : NodeCheckFlags
|
||||
}␍
|
||||
interface NodeLinks {␍
|
||||
>NodeLinks : NodeLinks
|
||||
|
||||
@@ -142,192 +142,195 @@ declare module "typescript" {
|
||||
BarBarToken = 49,
|
||||
QuestionToken = 50,
|
||||
ColonToken = 51,
|
||||
EqualsToken = 52,
|
||||
PlusEqualsToken = 53,
|
||||
MinusEqualsToken = 54,
|
||||
AsteriskEqualsToken = 55,
|
||||
SlashEqualsToken = 56,
|
||||
PercentEqualsToken = 57,
|
||||
LessThanLessThanEqualsToken = 58,
|
||||
GreaterThanGreaterThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,
|
||||
AmpersandEqualsToken = 61,
|
||||
BarEqualsToken = 62,
|
||||
CaretEqualsToken = 63,
|
||||
Identifier = 64,
|
||||
BreakKeyword = 65,
|
||||
CaseKeyword = 66,
|
||||
CatchKeyword = 67,
|
||||
ClassKeyword = 68,
|
||||
ConstKeyword = 69,
|
||||
ContinueKeyword = 70,
|
||||
DebuggerKeyword = 71,
|
||||
DefaultKeyword = 72,
|
||||
DeleteKeyword = 73,
|
||||
DoKeyword = 74,
|
||||
ElseKeyword = 75,
|
||||
EnumKeyword = 76,
|
||||
ExportKeyword = 77,
|
||||
ExtendsKeyword = 78,
|
||||
FalseKeyword = 79,
|
||||
FinallyKeyword = 80,
|
||||
ForKeyword = 81,
|
||||
FunctionKeyword = 82,
|
||||
IfKeyword = 83,
|
||||
ImportKeyword = 84,
|
||||
InKeyword = 85,
|
||||
InstanceOfKeyword = 86,
|
||||
NewKeyword = 87,
|
||||
NullKeyword = 88,
|
||||
ReturnKeyword = 89,
|
||||
SuperKeyword = 90,
|
||||
SwitchKeyword = 91,
|
||||
ThisKeyword = 92,
|
||||
ThrowKeyword = 93,
|
||||
TrueKeyword = 94,
|
||||
TryKeyword = 95,
|
||||
TypeOfKeyword = 96,
|
||||
VarKeyword = 97,
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
AsKeyword = 101,
|
||||
ImplementsKeyword = 102,
|
||||
InterfaceKeyword = 103,
|
||||
LetKeyword = 104,
|
||||
PackageKeyword = 105,
|
||||
PrivateKeyword = 106,
|
||||
ProtectedKeyword = 107,
|
||||
PublicKeyword = 108,
|
||||
StaticKeyword = 109,
|
||||
YieldKeyword = 110,
|
||||
AnyKeyword = 111,
|
||||
BooleanKeyword = 112,
|
||||
ConstructorKeyword = 113,
|
||||
DeclareKeyword = 114,
|
||||
GetKeyword = 115,
|
||||
ModuleKeyword = 116,
|
||||
RequireKeyword = 117,
|
||||
NumberKeyword = 118,
|
||||
SetKeyword = 119,
|
||||
StringKeyword = 120,
|
||||
SymbolKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
FromKeyword = 123,
|
||||
OfKeyword = 124,
|
||||
QualifiedName = 125,
|
||||
ComputedPropertyName = 126,
|
||||
TypeParameter = 127,
|
||||
Parameter = 128,
|
||||
PropertySignature = 129,
|
||||
PropertyDeclaration = 130,
|
||||
MethodSignature = 131,
|
||||
MethodDeclaration = 132,
|
||||
Constructor = 133,
|
||||
GetAccessor = 134,
|
||||
SetAccessor = 135,
|
||||
CallSignature = 136,
|
||||
ConstructSignature = 137,
|
||||
IndexSignature = 138,
|
||||
TypeReference = 139,
|
||||
FunctionType = 140,
|
||||
ConstructorType = 141,
|
||||
TypeQuery = 142,
|
||||
TypeLiteral = 143,
|
||||
ArrayType = 144,
|
||||
TupleType = 145,
|
||||
UnionType = 146,
|
||||
ParenthesizedType = 147,
|
||||
ObjectBindingPattern = 148,
|
||||
ArrayBindingPattern = 149,
|
||||
BindingElement = 150,
|
||||
ArrayLiteralExpression = 151,
|
||||
ObjectLiteralExpression = 152,
|
||||
PropertyAccessExpression = 153,
|
||||
ElementAccessExpression = 154,
|
||||
CallExpression = 155,
|
||||
NewExpression = 156,
|
||||
TaggedTemplateExpression = 157,
|
||||
TypeAssertionExpression = 158,
|
||||
ParenthesizedExpression = 159,
|
||||
FunctionExpression = 160,
|
||||
ArrowFunction = 161,
|
||||
DeleteExpression = 162,
|
||||
TypeOfExpression = 163,
|
||||
VoidExpression = 164,
|
||||
PrefixUnaryExpression = 165,
|
||||
PostfixUnaryExpression = 166,
|
||||
BinaryExpression = 167,
|
||||
ConditionalExpression = 168,
|
||||
TemplateExpression = 169,
|
||||
YieldExpression = 170,
|
||||
SpreadElementExpression = 171,
|
||||
OmittedExpression = 172,
|
||||
TemplateSpan = 173,
|
||||
Block = 174,
|
||||
VariableStatement = 175,
|
||||
EmptyStatement = 176,
|
||||
ExpressionStatement = 177,
|
||||
IfStatement = 178,
|
||||
DoStatement = 179,
|
||||
WhileStatement = 180,
|
||||
ForStatement = 181,
|
||||
ForInStatement = 182,
|
||||
ForOfStatement = 183,
|
||||
ContinueStatement = 184,
|
||||
BreakStatement = 185,
|
||||
ReturnStatement = 186,
|
||||
WithStatement = 187,
|
||||
SwitchStatement = 188,
|
||||
LabeledStatement = 189,
|
||||
ThrowStatement = 190,
|
||||
TryStatement = 191,
|
||||
DebuggerStatement = 192,
|
||||
VariableDeclaration = 193,
|
||||
VariableDeclarationList = 194,
|
||||
FunctionDeclaration = 195,
|
||||
ClassDeclaration = 196,
|
||||
InterfaceDeclaration = 197,
|
||||
TypeAliasDeclaration = 198,
|
||||
EnumDeclaration = 199,
|
||||
ModuleDeclaration = 200,
|
||||
ModuleBlock = 201,
|
||||
CaseBlock = 202,
|
||||
ImportEqualsDeclaration = 203,
|
||||
ImportDeclaration = 204,
|
||||
ImportClause = 205,
|
||||
NamespaceImport = 206,
|
||||
NamedImports = 207,
|
||||
ImportSpecifier = 208,
|
||||
ExportAssignment = 209,
|
||||
ExportDeclaration = 210,
|
||||
NamedExports = 211,
|
||||
ExportSpecifier = 212,
|
||||
ExternalModuleReference = 213,
|
||||
CaseClause = 214,
|
||||
DefaultClause = 215,
|
||||
HeritageClause = 216,
|
||||
CatchClause = 217,
|
||||
PropertyAssignment = 218,
|
||||
ShorthandPropertyAssignment = 219,
|
||||
EnumMember = 220,
|
||||
SourceFile = 221,
|
||||
SyntaxList = 222,
|
||||
Count = 223,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 102,
|
||||
LastFutureReservedWord = 110,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
AtToken = 52,
|
||||
EqualsToken = 53,
|
||||
PlusEqualsToken = 54,
|
||||
MinusEqualsToken = 55,
|
||||
AsteriskEqualsToken = 56,
|
||||
SlashEqualsToken = 57,
|
||||
PercentEqualsToken = 58,
|
||||
LessThanLessThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanEqualsToken = 60,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,
|
||||
AmpersandEqualsToken = 62,
|
||||
BarEqualsToken = 63,
|
||||
CaretEqualsToken = 64,
|
||||
Identifier = 65,
|
||||
BreakKeyword = 66,
|
||||
CaseKeyword = 67,
|
||||
CatchKeyword = 68,
|
||||
ClassKeyword = 69,
|
||||
ConstKeyword = 70,
|
||||
ContinueKeyword = 71,
|
||||
DebuggerKeyword = 72,
|
||||
DefaultKeyword = 73,
|
||||
DeleteKeyword = 74,
|
||||
DoKeyword = 75,
|
||||
ElseKeyword = 76,
|
||||
EnumKeyword = 77,
|
||||
ExportKeyword = 78,
|
||||
ExtendsKeyword = 79,
|
||||
FalseKeyword = 80,
|
||||
FinallyKeyword = 81,
|
||||
ForKeyword = 82,
|
||||
FunctionKeyword = 83,
|
||||
IfKeyword = 84,
|
||||
ImportKeyword = 85,
|
||||
InKeyword = 86,
|
||||
InstanceOfKeyword = 87,
|
||||
NewKeyword = 88,
|
||||
NullKeyword = 89,
|
||||
ReturnKeyword = 90,
|
||||
SuperKeyword = 91,
|
||||
SwitchKeyword = 92,
|
||||
ThisKeyword = 93,
|
||||
ThrowKeyword = 94,
|
||||
TrueKeyword = 95,
|
||||
TryKeyword = 96,
|
||||
TypeOfKeyword = 97,
|
||||
VarKeyword = 98,
|
||||
VoidKeyword = 99,
|
||||
WhileKeyword = 100,
|
||||
WithKeyword = 101,
|
||||
AsKeyword = 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,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 123,
|
||||
FromKeyword = 124,
|
||||
OfKeyword = 125,
|
||||
QualifiedName = 126,
|
||||
ComputedPropertyName = 127,
|
||||
TypeParameter = 128,
|
||||
Parameter = 129,
|
||||
Decorator = 130,
|
||||
PropertySignature = 131,
|
||||
PropertyDeclaration = 132,
|
||||
MethodSignature = 133,
|
||||
MethodDeclaration = 134,
|
||||
Constructor = 135,
|
||||
GetAccessor = 136,
|
||||
SetAccessor = 137,
|
||||
CallSignature = 138,
|
||||
ConstructSignature = 139,
|
||||
IndexSignature = 140,
|
||||
TypeReference = 141,
|
||||
FunctionType = 142,
|
||||
ConstructorType = 143,
|
||||
TypeQuery = 144,
|
||||
TypeLiteral = 145,
|
||||
ArrayType = 146,
|
||||
TupleType = 147,
|
||||
UnionType = 148,
|
||||
ParenthesizedType = 149,
|
||||
ObjectBindingPattern = 150,
|
||||
ArrayBindingPattern = 151,
|
||||
BindingElement = 152,
|
||||
ArrayLiteralExpression = 153,
|
||||
ObjectLiteralExpression = 154,
|
||||
PropertyAccessExpression = 155,
|
||||
ElementAccessExpression = 156,
|
||||
CallExpression = 157,
|
||||
NewExpression = 158,
|
||||
TaggedTemplateExpression = 159,
|
||||
TypeAssertionExpression = 160,
|
||||
ParenthesizedExpression = 161,
|
||||
FunctionExpression = 162,
|
||||
ArrowFunction = 163,
|
||||
DeleteExpression = 164,
|
||||
TypeOfExpression = 165,
|
||||
VoidExpression = 166,
|
||||
PrefixUnaryExpression = 167,
|
||||
PostfixUnaryExpression = 168,
|
||||
BinaryExpression = 169,
|
||||
ConditionalExpression = 170,
|
||||
TemplateExpression = 171,
|
||||
YieldExpression = 172,
|
||||
SpreadElementExpression = 173,
|
||||
OmittedExpression = 174,
|
||||
TemplateSpan = 175,
|
||||
Block = 176,
|
||||
VariableStatement = 177,
|
||||
EmptyStatement = 178,
|
||||
ExpressionStatement = 179,
|
||||
IfStatement = 180,
|
||||
DoStatement = 181,
|
||||
WhileStatement = 182,
|
||||
ForStatement = 183,
|
||||
ForInStatement = 184,
|
||||
ForOfStatement = 185,
|
||||
ContinueStatement = 186,
|
||||
BreakStatement = 187,
|
||||
ReturnStatement = 188,
|
||||
WithStatement = 189,
|
||||
SwitchStatement = 190,
|
||||
LabeledStatement = 191,
|
||||
ThrowStatement = 192,
|
||||
TryStatement = 193,
|
||||
DebuggerStatement = 194,
|
||||
VariableDeclaration = 195,
|
||||
VariableDeclarationList = 196,
|
||||
FunctionDeclaration = 197,
|
||||
ClassDeclaration = 198,
|
||||
InterfaceDeclaration = 199,
|
||||
TypeAliasDeclaration = 200,
|
||||
EnumDeclaration = 201,
|
||||
ModuleDeclaration = 202,
|
||||
ModuleBlock = 203,
|
||||
CaseBlock = 204,
|
||||
ImportEqualsDeclaration = 205,
|
||||
ImportDeclaration = 206,
|
||||
ImportClause = 207,
|
||||
NamespaceImport = 208,
|
||||
NamedImports = 209,
|
||||
ImportSpecifier = 210,
|
||||
ExportAssignment = 211,
|
||||
ExportDeclaration = 212,
|
||||
NamedExports = 213,
|
||||
ExportSpecifier = 214,
|
||||
MissingDeclaration = 215,
|
||||
ExternalModuleReference = 216,
|
||||
CaseClause = 217,
|
||||
DefaultClause = 218,
|
||||
HeritageClause = 219,
|
||||
CatchClause = 220,
|
||||
PropertyAssignment = 221,
|
||||
ShorthandPropertyAssignment = 222,
|
||||
EnumMember = 223,
|
||||
SourceFile = 224,
|
||||
SyntaxList = 225,
|
||||
Count = 226,
|
||||
FirstAssignment = 53,
|
||||
LastAssignment = 64,
|
||||
FirstReservedWord = 66,
|
||||
LastReservedWord = 101,
|
||||
FirstKeyword = 66,
|
||||
LastKeyword = 125,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 141,
|
||||
LastTypeNode = 149,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
LastPunctuation = 64,
|
||||
FirstToken = 0,
|
||||
LastToken = 124,
|
||||
LastToken = 125,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -335,8 +338,8 @@ declare module "typescript" {
|
||||
FirstTemplateToken = 10,
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 125,
|
||||
LastBinaryOperator = 64,
|
||||
FirstNode = 126,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -352,6 +355,7 @@ declare module "typescript" {
|
||||
Let = 4096,
|
||||
Const = 8192,
|
||||
OctalLiteral = 16384,
|
||||
ExportContext = 32768,
|
||||
Modifier = 499,
|
||||
AccessibilityModifier = 112,
|
||||
BlockScoped = 12288,
|
||||
@@ -361,10 +365,11 @@ declare module "typescript" {
|
||||
DisallowIn = 2,
|
||||
Yield = 4,
|
||||
GeneratorParameter = 8,
|
||||
ThisNodeHasError = 16,
|
||||
ParserGeneratedFlags = 31,
|
||||
ThisNodeOrAnySubNodesHasError = 32,
|
||||
HasAggregatedChildData = 64,
|
||||
Decorator = 16,
|
||||
ThisNodeHasError = 32,
|
||||
ParserGeneratedFlags = 63,
|
||||
ThisNodeOrAnySubNodesHasError = 64,
|
||||
HasAggregatedChildData = 128,
|
||||
}
|
||||
const enum RelationComparisonResult {
|
||||
Succeeded = 1,
|
||||
@@ -375,6 +380,7 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
decorators?: NodeArray<Decorator>;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
@@ -405,6 +411,9 @@ declare module "typescript" {
|
||||
interface ComputedPropertyName extends Node {
|
||||
expression: Expression;
|
||||
}
|
||||
interface Decorator extends Node {
|
||||
expression: LeftHandSideExpression;
|
||||
}
|
||||
interface TypeParameterDeclaration extends Declaration {
|
||||
name: Identifier;
|
||||
constraint?: TypeNode;
|
||||
@@ -971,8 +980,8 @@ declare module "typescript" {
|
||||
interface EmitResolver {
|
||||
hasGlobalName(name: string): boolean;
|
||||
getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string;
|
||||
hasExportDefaultValue(node: SourceFile): boolean;
|
||||
isReferencedAliasDeclaration(node: Node): boolean;
|
||||
isValueAliasDeclaration(node: Node): boolean;
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
@@ -1091,6 +1100,7 @@ declare module "typescript" {
|
||||
ContextChecked = 64,
|
||||
EnumValuesComputed = 128,
|
||||
BlockScopedBindingInLoop = 256,
|
||||
EmitDecorate = 512,
|
||||
}
|
||||
interface NodeLinks {
|
||||
resolvedType?: Type;
|
||||
@@ -2032,24 +2042,24 @@ function delint(sourceFile) {
|
||||
delintNode(sourceFile);
|
||||
function delintNode(node) {
|
||||
switch (node.kind) {
|
||||
case 181 /* ForStatement */:
|
||||
case 182 /* ForInStatement */:
|
||||
case 180 /* WhileStatement */:
|
||||
case 179 /* DoStatement */:
|
||||
if (node.statement.kind !== 174 /* Block */) {
|
||||
case 183 /* ForStatement */:
|
||||
case 184 /* ForInStatement */:
|
||||
case 182 /* WhileStatement */:
|
||||
case 181 /* DoStatement */:
|
||||
if (node.statement.kind !== 176 /* Block */) {
|
||||
report(node, "A looping statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 178 /* IfStatement */:
|
||||
case 180 /* IfStatement */:
|
||||
var ifStatement = node;
|
||||
if (ifStatement.thenStatement.kind !== 174 /* Block */) {
|
||||
if (ifStatement.thenStatement.kind !== 176 /* Block */) {
|
||||
report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
if (ifStatement.elseStatement && ifStatement.elseStatement.kind !== 174 /* Block */ && ifStatement.elseStatement.kind !== 178 /* IfStatement */) {
|
||||
if (ifStatement.elseStatement && ifStatement.elseStatement.kind !== 176 /* Block */ && ifStatement.elseStatement.kind !== 180 /* IfStatement */) {
|
||||
report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 167 /* BinaryExpression */:
|
||||
case 169 /* BinaryExpression */:
|
||||
var op = node.operatorToken.kind;
|
||||
if (op === 28 /* EqualsEqualsToken */ || op === 29 /* ExclamationEqualsToken */) {
|
||||
report(node, "Use '===' and '!=='.");
|
||||
|
||||
@@ -497,562 +497,571 @@ declare module "typescript" {
|
||||
ColonToken = 51,␍
|
||||
>ColonToken : SyntaxKind
|
||||
|
||||
EqualsToken = 52,␍
|
||||
AtToken = 52,␍
|
||||
>AtToken : SyntaxKind
|
||||
|
||||
EqualsToken = 53,␍
|
||||
>EqualsToken : SyntaxKind
|
||||
|
||||
PlusEqualsToken = 53,␍
|
||||
PlusEqualsToken = 54,␍
|
||||
>PlusEqualsToken : SyntaxKind
|
||||
|
||||
MinusEqualsToken = 54,␍
|
||||
MinusEqualsToken = 55,␍
|
||||
>MinusEqualsToken : SyntaxKind
|
||||
|
||||
AsteriskEqualsToken = 55,␍
|
||||
AsteriskEqualsToken = 56,␍
|
||||
>AsteriskEqualsToken : SyntaxKind
|
||||
|
||||
SlashEqualsToken = 56,␍
|
||||
SlashEqualsToken = 57,␍
|
||||
>SlashEqualsToken : SyntaxKind
|
||||
|
||||
PercentEqualsToken = 57,␍
|
||||
PercentEqualsToken = 58,␍
|
||||
>PercentEqualsToken : SyntaxKind
|
||||
|
||||
LessThanLessThanEqualsToken = 58,␍
|
||||
LessThanLessThanEqualsToken = 59,␍
|
||||
>LessThanLessThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanEqualsToken = 59,␍
|
||||
GreaterThanGreaterThanEqualsToken = 60,␍
|
||||
>GreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,␍
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,␍
|
||||
>GreaterThanGreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
AmpersandEqualsToken = 61,␍
|
||||
AmpersandEqualsToken = 62,␍
|
||||
>AmpersandEqualsToken : SyntaxKind
|
||||
|
||||
BarEqualsToken = 62,␍
|
||||
BarEqualsToken = 63,␍
|
||||
>BarEqualsToken : SyntaxKind
|
||||
|
||||
CaretEqualsToken = 63,␍
|
||||
CaretEqualsToken = 64,␍
|
||||
>CaretEqualsToken : SyntaxKind
|
||||
|
||||
Identifier = 64,␍
|
||||
Identifier = 65,␍
|
||||
>Identifier : SyntaxKind
|
||||
|
||||
BreakKeyword = 65,␍
|
||||
BreakKeyword = 66,␍
|
||||
>BreakKeyword : SyntaxKind
|
||||
|
||||
CaseKeyword = 66,␍
|
||||
CaseKeyword = 67,␍
|
||||
>CaseKeyword : SyntaxKind
|
||||
|
||||
CatchKeyword = 67,␍
|
||||
CatchKeyword = 68,␍
|
||||
>CatchKeyword : SyntaxKind
|
||||
|
||||
ClassKeyword = 68,␍
|
||||
ClassKeyword = 69,␍
|
||||
>ClassKeyword : SyntaxKind
|
||||
|
||||
ConstKeyword = 69,␍
|
||||
ConstKeyword = 70,␍
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
ContinueKeyword = 70,␍
|
||||
ContinueKeyword = 71,␍
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,␍
|
||||
DebuggerKeyword = 72,␍
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
DefaultKeyword = 72,␍
|
||||
DefaultKeyword = 73,␍
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
DeleteKeyword = 73,␍
|
||||
DeleteKeyword = 74,␍
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,␍
|
||||
DoKeyword = 75,␍
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
ElseKeyword = 75,␍
|
||||
ElseKeyword = 76,␍
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
EnumKeyword = 76,␍
|
||||
EnumKeyword = 77,␍
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,␍
|
||||
ExportKeyword = 78,␍
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
ExtendsKeyword = 78,␍
|
||||
ExtendsKeyword = 79,␍
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
FalseKeyword = 79,␍
|
||||
FalseKeyword = 80,␍
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,␍
|
||||
FinallyKeyword = 81,␍
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
ForKeyword = 81,␍
|
||||
ForKeyword = 82,␍
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
FunctionKeyword = 82,␍
|
||||
FunctionKeyword = 83,␍
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,␍
|
||||
IfKeyword = 84,␍
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
ImportKeyword = 84,␍
|
||||
ImportKeyword = 85,␍
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
InKeyword = 85,␍
|
||||
InKeyword = 86,␍
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,␍
|
||||
InstanceOfKeyword = 87,␍
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
NewKeyword = 87,␍
|
||||
NewKeyword = 88,␍
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
NullKeyword = 88,␍
|
||||
NullKeyword = 89,␍
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,␍
|
||||
ReturnKeyword = 90,␍
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
SuperKeyword = 90,␍
|
||||
SuperKeyword = 91,␍
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
SwitchKeyword = 91,␍
|
||||
SwitchKeyword = 92,␍
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,␍
|
||||
ThisKeyword = 93,␍
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
ThrowKeyword = 93,␍
|
||||
ThrowKeyword = 94,␍
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
TrueKeyword = 94,␍
|
||||
TrueKeyword = 95,␍
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,␍
|
||||
TryKeyword = 96,␍
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
TypeOfKeyword = 96,␍
|
||||
TypeOfKeyword = 97,␍
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
VarKeyword = 97,␍
|
||||
VarKeyword = 98,␍
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,␍
|
||||
VoidKeyword = 99,␍
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
WhileKeyword = 99,␍
|
||||
WhileKeyword = 100,␍
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
WithKeyword = 100,␍
|
||||
WithKeyword = 101,␍
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,␍
|
||||
AsKeyword = 102,␍
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
ImplementsKeyword = 102,␍
|
||||
ImplementsKeyword = 103,␍
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 103,␍
|
||||
InterfaceKeyword = 104,␍
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
LetKeyword = 104,␍
|
||||
LetKeyword = 105,␍
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
PackageKeyword = 105,␍
|
||||
PackageKeyword = 106,␍
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 106,␍
|
||||
PrivateKeyword = 107,␍
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
ProtectedKeyword = 107,␍
|
||||
ProtectedKeyword = 108,␍
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
PublicKeyword = 108,␍
|
||||
PublicKeyword = 109,␍
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 109,␍
|
||||
StaticKeyword = 110,␍
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
YieldKeyword = 110,␍
|
||||
YieldKeyword = 111,␍
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
AnyKeyword = 111,␍
|
||||
AnyKeyword = 112,␍
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 112,␍
|
||||
BooleanKeyword = 113,␍
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
ConstructorKeyword = 113,␍
|
||||
ConstructorKeyword = 114,␍
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
DeclareKeyword = 114,␍
|
||||
DeclareKeyword = 115,␍
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 115,␍
|
||||
GetKeyword = 116,␍
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
ModuleKeyword = 116,␍
|
||||
ModuleKeyword = 117,␍
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
RequireKeyword = 117,␍
|
||||
RequireKeyword = 118,␍
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 118,␍
|
||||
NumberKeyword = 119,␍
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
SetKeyword = 119,␍
|
||||
SetKeyword = 120,␍
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
StringKeyword = 120,␍
|
||||
StringKeyword = 121,␍
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 121,␍
|
||||
SymbolKeyword = 122,␍
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,␍
|
||||
TypeKeyword = 123,␍
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
FromKeyword = 123,␍
|
||||
FromKeyword = 124,␍
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
OfKeyword = 124,␍
|
||||
OfKeyword = 125,␍
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,␍
|
||||
QualifiedName = 126,␍
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
ComputedPropertyName = 126,␍
|
||||
ComputedPropertyName = 127,␍
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 127,␍
|
||||
TypeParameter = 128,␍
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,␍
|
||||
Parameter = 129,␍
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
PropertySignature = 129,␍
|
||||
Decorator = 130,␍
|
||||
>Decorator : SyntaxKind
|
||||
|
||||
PropertySignature = 131,␍
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 130,␍
|
||||
PropertyDeclaration = 132,␍
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,␍
|
||||
MethodSignature = 133,␍
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
MethodDeclaration = 132,␍
|
||||
MethodDeclaration = 134,␍
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 133,␍
|
||||
Constructor = 135,␍
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,␍
|
||||
GetAccessor = 136,␍
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
SetAccessor = 135,␍
|
||||
SetAccessor = 137,␍
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 136,␍
|
||||
CallSignature = 138,␍
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,␍
|
||||
ConstructSignature = 139,␍
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
IndexSignature = 138,␍
|
||||
IndexSignature = 140,␍
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 139,␍
|
||||
TypeReference = 141,␍
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,␍
|
||||
FunctionType = 142,␍
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
ConstructorType = 141,␍
|
||||
ConstructorType = 143,␍
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 142,␍
|
||||
TypeQuery = 144,␍
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,␍
|
||||
TypeLiteral = 145,␍
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
ArrayType = 144,␍
|
||||
ArrayType = 146,␍
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 145,␍
|
||||
TupleType = 147,␍
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,␍
|
||||
UnionType = 148,␍
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
ParenthesizedType = 147,␍
|
||||
ParenthesizedType = 149,␍
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,␍
|
||||
ObjectBindingPattern = 150,␍
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,␍
|
||||
ArrayBindingPattern = 151,␍
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,␍
|
||||
BindingElement = 152,␍
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,␍
|
||||
ArrayLiteralExpression = 153,␍
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,␍
|
||||
ObjectLiteralExpression = 154,␍
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,␍
|
||||
PropertyAccessExpression = 155,␍
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 154,␍
|
||||
ElementAccessExpression = 156,␍
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,␍
|
||||
CallExpression = 157,␍
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
NewExpression = 156,␍
|
||||
NewExpression = 158,␍
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 157,␍
|
||||
TaggedTemplateExpression = 159,␍
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,␍
|
||||
TypeAssertionExpression = 160,␍
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
ParenthesizedExpression = 159,␍
|
||||
ParenthesizedExpression = 161,␍
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
FunctionExpression = 160,␍
|
||||
FunctionExpression = 162,␍
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,␍
|
||||
ArrowFunction = 163,␍
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
DeleteExpression = 162,␍
|
||||
DeleteExpression = 164,␍
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 163,␍
|
||||
TypeOfExpression = 165,␍
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
VoidExpression = 164,␍
|
||||
VoidExpression = 166,␍
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 165,␍
|
||||
PrefixUnaryExpression = 167,␍
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 166,␍
|
||||
PostfixUnaryExpression = 168,␍
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,␍
|
||||
BinaryExpression = 169,␍
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
ConditionalExpression = 168,␍
|
||||
ConditionalExpression = 170,␍
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 169,␍
|
||||
TemplateExpression = 171,␍
|
||||
>TemplateExpression : SyntaxKind
|
||||
|
||||
YieldExpression = 170,␍
|
||||
YieldExpression = 172,␍
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
SpreadElementExpression = 171,␍
|
||||
SpreadElementExpression = 173,␍
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
OmittedExpression = 172,␍
|
||||
OmittedExpression = 174,␍
|
||||
>OmittedExpression : SyntaxKind
|
||||
|
||||
TemplateSpan = 173,␍
|
||||
TemplateSpan = 175,␍
|
||||
>TemplateSpan : SyntaxKind
|
||||
|
||||
Block = 174,␍
|
||||
Block = 176,␍
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 175,␍
|
||||
VariableStatement = 177,␍
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 176,␍
|
||||
EmptyStatement = 178,␍
|
||||
>EmptyStatement : SyntaxKind
|
||||
|
||||
ExpressionStatement = 177,␍
|
||||
ExpressionStatement = 179,␍
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
IfStatement = 178,␍
|
||||
IfStatement = 180,␍
|
||||
>IfStatement : SyntaxKind
|
||||
|
||||
DoStatement = 179,␍
|
||||
DoStatement = 181,␍
|
||||
>DoStatement : SyntaxKind
|
||||
|
||||
WhileStatement = 180,␍
|
||||
WhileStatement = 182,␍
|
||||
>WhileStatement : SyntaxKind
|
||||
|
||||
ForStatement = 181,␍
|
||||
ForStatement = 183,␍
|
||||
>ForStatement : SyntaxKind
|
||||
|
||||
ForInStatement = 182,␍
|
||||
ForInStatement = 184,␍
|
||||
>ForInStatement : SyntaxKind
|
||||
|
||||
ForOfStatement = 183,␍
|
||||
ForOfStatement = 185,␍
|
||||
>ForOfStatement : SyntaxKind
|
||||
|
||||
ContinueStatement = 184,␍
|
||||
ContinueStatement = 186,␍
|
||||
>ContinueStatement : SyntaxKind
|
||||
|
||||
BreakStatement = 185,␍
|
||||
BreakStatement = 187,␍
|
||||
>BreakStatement : SyntaxKind
|
||||
|
||||
ReturnStatement = 186,␍
|
||||
ReturnStatement = 188,␍
|
||||
>ReturnStatement : SyntaxKind
|
||||
|
||||
WithStatement = 187,␍
|
||||
WithStatement = 189,␍
|
||||
>WithStatement : SyntaxKind
|
||||
|
||||
SwitchStatement = 188,␍
|
||||
SwitchStatement = 190,␍
|
||||
>SwitchStatement : SyntaxKind
|
||||
|
||||
LabeledStatement = 189,␍
|
||||
LabeledStatement = 191,␍
|
||||
>LabeledStatement : SyntaxKind
|
||||
|
||||
ThrowStatement = 190,␍
|
||||
ThrowStatement = 192,␍
|
||||
>ThrowStatement : SyntaxKind
|
||||
|
||||
TryStatement = 191,␍
|
||||
TryStatement = 193,␍
|
||||
>TryStatement : SyntaxKind
|
||||
|
||||
DebuggerStatement = 192,␍
|
||||
DebuggerStatement = 194,␍
|
||||
>DebuggerStatement : SyntaxKind
|
||||
|
||||
VariableDeclaration = 193,␍
|
||||
VariableDeclaration = 195,␍
|
||||
>VariableDeclaration : SyntaxKind
|
||||
|
||||
VariableDeclarationList = 194,␍
|
||||
VariableDeclarationList = 196,␍
|
||||
>VariableDeclarationList : SyntaxKind
|
||||
|
||||
FunctionDeclaration = 195,␍
|
||||
FunctionDeclaration = 197,␍
|
||||
>FunctionDeclaration : SyntaxKind
|
||||
|
||||
ClassDeclaration = 196,␍
|
||||
ClassDeclaration = 198,␍
|
||||
>ClassDeclaration : SyntaxKind
|
||||
|
||||
InterfaceDeclaration = 197,␍
|
||||
InterfaceDeclaration = 199,␍
|
||||
>InterfaceDeclaration : SyntaxKind
|
||||
|
||||
TypeAliasDeclaration = 198,␍
|
||||
TypeAliasDeclaration = 200,␍
|
||||
>TypeAliasDeclaration : SyntaxKind
|
||||
|
||||
EnumDeclaration = 199,␍
|
||||
EnumDeclaration = 201,␍
|
||||
>EnumDeclaration : SyntaxKind
|
||||
|
||||
ModuleDeclaration = 200,␍
|
||||
ModuleDeclaration = 202,␍
|
||||
>ModuleDeclaration : SyntaxKind
|
||||
|
||||
ModuleBlock = 201,␍
|
||||
ModuleBlock = 203,␍
|
||||
>ModuleBlock : SyntaxKind
|
||||
|
||||
CaseBlock = 202,␍
|
||||
CaseBlock = 204,␍
|
||||
>CaseBlock : SyntaxKind
|
||||
|
||||
ImportEqualsDeclaration = 203,␍
|
||||
ImportEqualsDeclaration = 205,␍
|
||||
>ImportEqualsDeclaration : SyntaxKind
|
||||
|
||||
ImportDeclaration = 204,␍
|
||||
ImportDeclaration = 206,␍
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 205,␍
|
||||
ImportClause = 207,␍
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 206,␍
|
||||
NamespaceImport = 208,␍
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
NamedImports = 207,␍
|
||||
NamedImports = 209,␍
|
||||
>NamedImports : SyntaxKind
|
||||
|
||||
ImportSpecifier = 208,␍
|
||||
ImportSpecifier = 210,␍
|
||||
>ImportSpecifier : SyntaxKind
|
||||
|
||||
ExportAssignment = 209,␍
|
||||
ExportAssignment = 211,␍
|
||||
>ExportAssignment : SyntaxKind
|
||||
|
||||
ExportDeclaration = 210,␍
|
||||
ExportDeclaration = 212,␍
|
||||
>ExportDeclaration : SyntaxKind
|
||||
|
||||
NamedExports = 211,␍
|
||||
NamedExports = 213,␍
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
ExportSpecifier = 212,␍
|
||||
ExportSpecifier = 214,␍
|
||||
>ExportSpecifier : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 213,␍
|
||||
MissingDeclaration = 215,␍
|
||||
>MissingDeclaration : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 216,␍
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 214,␍
|
||||
CaseClause = 217,␍
|
||||
>CaseClause : SyntaxKind
|
||||
|
||||
DefaultClause = 215,␍
|
||||
DefaultClause = 218,␍
|
||||
>DefaultClause : SyntaxKind
|
||||
|
||||
HeritageClause = 216,␍
|
||||
HeritageClause = 219,␍
|
||||
>HeritageClause : SyntaxKind
|
||||
|
||||
CatchClause = 217,␍
|
||||
CatchClause = 220,␍
|
||||
>CatchClause : SyntaxKind
|
||||
|
||||
PropertyAssignment = 218,␍
|
||||
PropertyAssignment = 221,␍
|
||||
>PropertyAssignment : SyntaxKind
|
||||
|
||||
ShorthandPropertyAssignment = 219,␍
|
||||
ShorthandPropertyAssignment = 222,␍
|
||||
>ShorthandPropertyAssignment : SyntaxKind
|
||||
|
||||
EnumMember = 220,␍
|
||||
EnumMember = 223,␍
|
||||
>EnumMember : SyntaxKind
|
||||
|
||||
SourceFile = 221,␍
|
||||
SourceFile = 224,␍
|
||||
>SourceFile : SyntaxKind
|
||||
|
||||
SyntaxList = 222,␍
|
||||
SyntaxList = 225,␍
|
||||
>SyntaxList : SyntaxKind
|
||||
|
||||
Count = 223,␍
|
||||
Count = 226,␍
|
||||
>Count : SyntaxKind
|
||||
|
||||
FirstAssignment = 52,␍
|
||||
FirstAssignment = 53,␍
|
||||
>FirstAssignment : SyntaxKind
|
||||
|
||||
LastAssignment = 63,␍
|
||||
LastAssignment = 64,␍
|
||||
>LastAssignment : SyntaxKind
|
||||
|
||||
FirstReservedWord = 65,␍
|
||||
FirstReservedWord = 66,␍
|
||||
>FirstReservedWord : SyntaxKind
|
||||
|
||||
LastReservedWord = 100,␍
|
||||
LastReservedWord = 101,␍
|
||||
>LastReservedWord : SyntaxKind
|
||||
|
||||
FirstKeyword = 65,␍
|
||||
FirstKeyword = 66,␍
|
||||
>FirstKeyword : SyntaxKind
|
||||
|
||||
LastKeyword = 124,␍
|
||||
LastKeyword = 125,␍
|
||||
>LastKeyword : SyntaxKind
|
||||
|
||||
FirstFutureReservedWord = 102,␍
|
||||
FirstFutureReservedWord = 103,␍
|
||||
>FirstFutureReservedWord : SyntaxKind
|
||||
|
||||
LastFutureReservedWord = 110,␍
|
||||
LastFutureReservedWord = 111,␍
|
||||
>LastFutureReservedWord : SyntaxKind
|
||||
|
||||
FirstTypeNode = 139,␍
|
||||
FirstTypeNode = 141,␍
|
||||
>FirstTypeNode : SyntaxKind
|
||||
|
||||
LastTypeNode = 147,␍
|
||||
LastTypeNode = 149,␍
|
||||
>LastTypeNode : SyntaxKind
|
||||
|
||||
FirstPunctuation = 14,␍
|
||||
>FirstPunctuation : SyntaxKind
|
||||
|
||||
LastPunctuation = 63,␍
|
||||
LastPunctuation = 64,␍
|
||||
>LastPunctuation : SyntaxKind
|
||||
|
||||
FirstToken = 0,␍
|
||||
>FirstToken : SyntaxKind
|
||||
|
||||
LastToken = 124,␍
|
||||
LastToken = 125,␍
|
||||
>LastToken : SyntaxKind
|
||||
|
||||
FirstTriviaToken = 2,␍
|
||||
@@ -1076,10 +1085,10 @@ declare module "typescript" {
|
||||
FirstBinaryOperator = 24,␍
|
||||
>FirstBinaryOperator : SyntaxKind
|
||||
|
||||
LastBinaryOperator = 63,␍
|
||||
LastBinaryOperator = 64,␍
|
||||
>LastBinaryOperator : SyntaxKind
|
||||
|
||||
FirstNode = 125,␍
|
||||
FirstNode = 126,␍
|
||||
>FirstNode : SyntaxKind
|
||||
}␍
|
||||
const enum NodeFlags {␍
|
||||
@@ -1124,6 +1133,9 @@ declare module "typescript" {
|
||||
OctalLiteral = 16384,␍
|
||||
>OctalLiteral : NodeFlags
|
||||
|
||||
ExportContext = 32768,␍
|
||||
>ExportContext : NodeFlags
|
||||
|
||||
Modifier = 499,␍
|
||||
>Modifier : NodeFlags
|
||||
|
||||
@@ -1148,16 +1160,19 @@ declare module "typescript" {
|
||||
GeneratorParameter = 8,␍
|
||||
>GeneratorParameter : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 16,␍
|
||||
Decorator = 16,␍
|
||||
>Decorator : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 32,␍
|
||||
>ThisNodeHasError : ParserContextFlags
|
||||
|
||||
ParserGeneratedFlags = 31,␍
|
||||
ParserGeneratedFlags = 63,␍
|
||||
>ParserGeneratedFlags : ParserContextFlags
|
||||
|
||||
ThisNodeOrAnySubNodesHasError = 32,␍
|
||||
ThisNodeOrAnySubNodesHasError = 64,␍
|
||||
>ThisNodeOrAnySubNodesHasError : ParserContextFlags
|
||||
|
||||
HasAggregatedChildData = 64,␍
|
||||
HasAggregatedChildData = 128,␍
|
||||
>HasAggregatedChildData : ParserContextFlags
|
||||
}␍
|
||||
const enum RelationComparisonResult {␍
|
||||
@@ -1188,6 +1203,11 @@ declare module "typescript" {
|
||||
>parserContextFlags : ParserContextFlags
|
||||
>ParserContextFlags : ParserContextFlags
|
||||
|
||||
decorators?: NodeArray<Decorator>;␍
|
||||
>decorators : NodeArray<Decorator>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Decorator : Decorator
|
||||
|
||||
modifiers?: ModifiersArray;␍
|
||||
>modifiers : ModifiersArray
|
||||
>ModifiersArray : ModifiersArray
|
||||
@@ -1282,6 +1302,14 @@ declare module "typescript" {
|
||||
expression: Expression;␍
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}␍
|
||||
interface Decorator extends Node {␍
|
||||
>Decorator : Decorator
|
||||
>Node : Node
|
||||
|
||||
expression: LeftHandSideExpression;␍
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
}␍
|
||||
interface TypeParameterDeclaration extends Declaration {␍
|
||||
>TypeParameterDeclaration : TypeParameterDeclaration
|
||||
@@ -3161,16 +3189,17 @@ declare module "typescript" {
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
hasExportDefaultValue(node: SourceFile): boolean;␍
|
||||
>hasExportDefaultValue : (node: SourceFile) => boolean
|
||||
>node : SourceFile
|
||||
>SourceFile : SourceFile
|
||||
|
||||
isReferencedAliasDeclaration(node: Node): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node) => boolean
|
||||
isValueAliasDeclaration(node: Node): boolean;␍
|
||||
>isValueAliasDeclaration : (node: Node) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node, checkChildren?: boolean) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>checkChildren : boolean
|
||||
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;␍
|
||||
>isTopLevelValueImportEqualsWithEntityName : (node: ImportEqualsDeclaration) => boolean
|
||||
>node : ImportEqualsDeclaration
|
||||
@@ -3580,6 +3609,9 @@ declare module "typescript" {
|
||||
|
||||
BlockScopedBindingInLoop = 256,␍
|
||||
>BlockScopedBindingInLoop : NodeCheckFlags
|
||||
|
||||
EmitDecorate = 512,␍
|
||||
>EmitDecorate : NodeCheckFlags
|
||||
}␍
|
||||
interface NodeLinks {␍
|
||||
>NodeLinks : NodeLinks
|
||||
|
||||
@@ -143,192 +143,195 @@ declare module "typescript" {
|
||||
BarBarToken = 49,
|
||||
QuestionToken = 50,
|
||||
ColonToken = 51,
|
||||
EqualsToken = 52,
|
||||
PlusEqualsToken = 53,
|
||||
MinusEqualsToken = 54,
|
||||
AsteriskEqualsToken = 55,
|
||||
SlashEqualsToken = 56,
|
||||
PercentEqualsToken = 57,
|
||||
LessThanLessThanEqualsToken = 58,
|
||||
GreaterThanGreaterThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,
|
||||
AmpersandEqualsToken = 61,
|
||||
BarEqualsToken = 62,
|
||||
CaretEqualsToken = 63,
|
||||
Identifier = 64,
|
||||
BreakKeyword = 65,
|
||||
CaseKeyword = 66,
|
||||
CatchKeyword = 67,
|
||||
ClassKeyword = 68,
|
||||
ConstKeyword = 69,
|
||||
ContinueKeyword = 70,
|
||||
DebuggerKeyword = 71,
|
||||
DefaultKeyword = 72,
|
||||
DeleteKeyword = 73,
|
||||
DoKeyword = 74,
|
||||
ElseKeyword = 75,
|
||||
EnumKeyword = 76,
|
||||
ExportKeyword = 77,
|
||||
ExtendsKeyword = 78,
|
||||
FalseKeyword = 79,
|
||||
FinallyKeyword = 80,
|
||||
ForKeyword = 81,
|
||||
FunctionKeyword = 82,
|
||||
IfKeyword = 83,
|
||||
ImportKeyword = 84,
|
||||
InKeyword = 85,
|
||||
InstanceOfKeyword = 86,
|
||||
NewKeyword = 87,
|
||||
NullKeyword = 88,
|
||||
ReturnKeyword = 89,
|
||||
SuperKeyword = 90,
|
||||
SwitchKeyword = 91,
|
||||
ThisKeyword = 92,
|
||||
ThrowKeyword = 93,
|
||||
TrueKeyword = 94,
|
||||
TryKeyword = 95,
|
||||
TypeOfKeyword = 96,
|
||||
VarKeyword = 97,
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
AsKeyword = 101,
|
||||
ImplementsKeyword = 102,
|
||||
InterfaceKeyword = 103,
|
||||
LetKeyword = 104,
|
||||
PackageKeyword = 105,
|
||||
PrivateKeyword = 106,
|
||||
ProtectedKeyword = 107,
|
||||
PublicKeyword = 108,
|
||||
StaticKeyword = 109,
|
||||
YieldKeyword = 110,
|
||||
AnyKeyword = 111,
|
||||
BooleanKeyword = 112,
|
||||
ConstructorKeyword = 113,
|
||||
DeclareKeyword = 114,
|
||||
GetKeyword = 115,
|
||||
ModuleKeyword = 116,
|
||||
RequireKeyword = 117,
|
||||
NumberKeyword = 118,
|
||||
SetKeyword = 119,
|
||||
StringKeyword = 120,
|
||||
SymbolKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
FromKeyword = 123,
|
||||
OfKeyword = 124,
|
||||
QualifiedName = 125,
|
||||
ComputedPropertyName = 126,
|
||||
TypeParameter = 127,
|
||||
Parameter = 128,
|
||||
PropertySignature = 129,
|
||||
PropertyDeclaration = 130,
|
||||
MethodSignature = 131,
|
||||
MethodDeclaration = 132,
|
||||
Constructor = 133,
|
||||
GetAccessor = 134,
|
||||
SetAccessor = 135,
|
||||
CallSignature = 136,
|
||||
ConstructSignature = 137,
|
||||
IndexSignature = 138,
|
||||
TypeReference = 139,
|
||||
FunctionType = 140,
|
||||
ConstructorType = 141,
|
||||
TypeQuery = 142,
|
||||
TypeLiteral = 143,
|
||||
ArrayType = 144,
|
||||
TupleType = 145,
|
||||
UnionType = 146,
|
||||
ParenthesizedType = 147,
|
||||
ObjectBindingPattern = 148,
|
||||
ArrayBindingPattern = 149,
|
||||
BindingElement = 150,
|
||||
ArrayLiteralExpression = 151,
|
||||
ObjectLiteralExpression = 152,
|
||||
PropertyAccessExpression = 153,
|
||||
ElementAccessExpression = 154,
|
||||
CallExpression = 155,
|
||||
NewExpression = 156,
|
||||
TaggedTemplateExpression = 157,
|
||||
TypeAssertionExpression = 158,
|
||||
ParenthesizedExpression = 159,
|
||||
FunctionExpression = 160,
|
||||
ArrowFunction = 161,
|
||||
DeleteExpression = 162,
|
||||
TypeOfExpression = 163,
|
||||
VoidExpression = 164,
|
||||
PrefixUnaryExpression = 165,
|
||||
PostfixUnaryExpression = 166,
|
||||
BinaryExpression = 167,
|
||||
ConditionalExpression = 168,
|
||||
TemplateExpression = 169,
|
||||
YieldExpression = 170,
|
||||
SpreadElementExpression = 171,
|
||||
OmittedExpression = 172,
|
||||
TemplateSpan = 173,
|
||||
Block = 174,
|
||||
VariableStatement = 175,
|
||||
EmptyStatement = 176,
|
||||
ExpressionStatement = 177,
|
||||
IfStatement = 178,
|
||||
DoStatement = 179,
|
||||
WhileStatement = 180,
|
||||
ForStatement = 181,
|
||||
ForInStatement = 182,
|
||||
ForOfStatement = 183,
|
||||
ContinueStatement = 184,
|
||||
BreakStatement = 185,
|
||||
ReturnStatement = 186,
|
||||
WithStatement = 187,
|
||||
SwitchStatement = 188,
|
||||
LabeledStatement = 189,
|
||||
ThrowStatement = 190,
|
||||
TryStatement = 191,
|
||||
DebuggerStatement = 192,
|
||||
VariableDeclaration = 193,
|
||||
VariableDeclarationList = 194,
|
||||
FunctionDeclaration = 195,
|
||||
ClassDeclaration = 196,
|
||||
InterfaceDeclaration = 197,
|
||||
TypeAliasDeclaration = 198,
|
||||
EnumDeclaration = 199,
|
||||
ModuleDeclaration = 200,
|
||||
ModuleBlock = 201,
|
||||
CaseBlock = 202,
|
||||
ImportEqualsDeclaration = 203,
|
||||
ImportDeclaration = 204,
|
||||
ImportClause = 205,
|
||||
NamespaceImport = 206,
|
||||
NamedImports = 207,
|
||||
ImportSpecifier = 208,
|
||||
ExportAssignment = 209,
|
||||
ExportDeclaration = 210,
|
||||
NamedExports = 211,
|
||||
ExportSpecifier = 212,
|
||||
ExternalModuleReference = 213,
|
||||
CaseClause = 214,
|
||||
DefaultClause = 215,
|
||||
HeritageClause = 216,
|
||||
CatchClause = 217,
|
||||
PropertyAssignment = 218,
|
||||
ShorthandPropertyAssignment = 219,
|
||||
EnumMember = 220,
|
||||
SourceFile = 221,
|
||||
SyntaxList = 222,
|
||||
Count = 223,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 102,
|
||||
LastFutureReservedWord = 110,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
AtToken = 52,
|
||||
EqualsToken = 53,
|
||||
PlusEqualsToken = 54,
|
||||
MinusEqualsToken = 55,
|
||||
AsteriskEqualsToken = 56,
|
||||
SlashEqualsToken = 57,
|
||||
PercentEqualsToken = 58,
|
||||
LessThanLessThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanEqualsToken = 60,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,
|
||||
AmpersandEqualsToken = 62,
|
||||
BarEqualsToken = 63,
|
||||
CaretEqualsToken = 64,
|
||||
Identifier = 65,
|
||||
BreakKeyword = 66,
|
||||
CaseKeyword = 67,
|
||||
CatchKeyword = 68,
|
||||
ClassKeyword = 69,
|
||||
ConstKeyword = 70,
|
||||
ContinueKeyword = 71,
|
||||
DebuggerKeyword = 72,
|
||||
DefaultKeyword = 73,
|
||||
DeleteKeyword = 74,
|
||||
DoKeyword = 75,
|
||||
ElseKeyword = 76,
|
||||
EnumKeyword = 77,
|
||||
ExportKeyword = 78,
|
||||
ExtendsKeyword = 79,
|
||||
FalseKeyword = 80,
|
||||
FinallyKeyword = 81,
|
||||
ForKeyword = 82,
|
||||
FunctionKeyword = 83,
|
||||
IfKeyword = 84,
|
||||
ImportKeyword = 85,
|
||||
InKeyword = 86,
|
||||
InstanceOfKeyword = 87,
|
||||
NewKeyword = 88,
|
||||
NullKeyword = 89,
|
||||
ReturnKeyword = 90,
|
||||
SuperKeyword = 91,
|
||||
SwitchKeyword = 92,
|
||||
ThisKeyword = 93,
|
||||
ThrowKeyword = 94,
|
||||
TrueKeyword = 95,
|
||||
TryKeyword = 96,
|
||||
TypeOfKeyword = 97,
|
||||
VarKeyword = 98,
|
||||
VoidKeyword = 99,
|
||||
WhileKeyword = 100,
|
||||
WithKeyword = 101,
|
||||
AsKeyword = 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,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 123,
|
||||
FromKeyword = 124,
|
||||
OfKeyword = 125,
|
||||
QualifiedName = 126,
|
||||
ComputedPropertyName = 127,
|
||||
TypeParameter = 128,
|
||||
Parameter = 129,
|
||||
Decorator = 130,
|
||||
PropertySignature = 131,
|
||||
PropertyDeclaration = 132,
|
||||
MethodSignature = 133,
|
||||
MethodDeclaration = 134,
|
||||
Constructor = 135,
|
||||
GetAccessor = 136,
|
||||
SetAccessor = 137,
|
||||
CallSignature = 138,
|
||||
ConstructSignature = 139,
|
||||
IndexSignature = 140,
|
||||
TypeReference = 141,
|
||||
FunctionType = 142,
|
||||
ConstructorType = 143,
|
||||
TypeQuery = 144,
|
||||
TypeLiteral = 145,
|
||||
ArrayType = 146,
|
||||
TupleType = 147,
|
||||
UnionType = 148,
|
||||
ParenthesizedType = 149,
|
||||
ObjectBindingPattern = 150,
|
||||
ArrayBindingPattern = 151,
|
||||
BindingElement = 152,
|
||||
ArrayLiteralExpression = 153,
|
||||
ObjectLiteralExpression = 154,
|
||||
PropertyAccessExpression = 155,
|
||||
ElementAccessExpression = 156,
|
||||
CallExpression = 157,
|
||||
NewExpression = 158,
|
||||
TaggedTemplateExpression = 159,
|
||||
TypeAssertionExpression = 160,
|
||||
ParenthesizedExpression = 161,
|
||||
FunctionExpression = 162,
|
||||
ArrowFunction = 163,
|
||||
DeleteExpression = 164,
|
||||
TypeOfExpression = 165,
|
||||
VoidExpression = 166,
|
||||
PrefixUnaryExpression = 167,
|
||||
PostfixUnaryExpression = 168,
|
||||
BinaryExpression = 169,
|
||||
ConditionalExpression = 170,
|
||||
TemplateExpression = 171,
|
||||
YieldExpression = 172,
|
||||
SpreadElementExpression = 173,
|
||||
OmittedExpression = 174,
|
||||
TemplateSpan = 175,
|
||||
Block = 176,
|
||||
VariableStatement = 177,
|
||||
EmptyStatement = 178,
|
||||
ExpressionStatement = 179,
|
||||
IfStatement = 180,
|
||||
DoStatement = 181,
|
||||
WhileStatement = 182,
|
||||
ForStatement = 183,
|
||||
ForInStatement = 184,
|
||||
ForOfStatement = 185,
|
||||
ContinueStatement = 186,
|
||||
BreakStatement = 187,
|
||||
ReturnStatement = 188,
|
||||
WithStatement = 189,
|
||||
SwitchStatement = 190,
|
||||
LabeledStatement = 191,
|
||||
ThrowStatement = 192,
|
||||
TryStatement = 193,
|
||||
DebuggerStatement = 194,
|
||||
VariableDeclaration = 195,
|
||||
VariableDeclarationList = 196,
|
||||
FunctionDeclaration = 197,
|
||||
ClassDeclaration = 198,
|
||||
InterfaceDeclaration = 199,
|
||||
TypeAliasDeclaration = 200,
|
||||
EnumDeclaration = 201,
|
||||
ModuleDeclaration = 202,
|
||||
ModuleBlock = 203,
|
||||
CaseBlock = 204,
|
||||
ImportEqualsDeclaration = 205,
|
||||
ImportDeclaration = 206,
|
||||
ImportClause = 207,
|
||||
NamespaceImport = 208,
|
||||
NamedImports = 209,
|
||||
ImportSpecifier = 210,
|
||||
ExportAssignment = 211,
|
||||
ExportDeclaration = 212,
|
||||
NamedExports = 213,
|
||||
ExportSpecifier = 214,
|
||||
MissingDeclaration = 215,
|
||||
ExternalModuleReference = 216,
|
||||
CaseClause = 217,
|
||||
DefaultClause = 218,
|
||||
HeritageClause = 219,
|
||||
CatchClause = 220,
|
||||
PropertyAssignment = 221,
|
||||
ShorthandPropertyAssignment = 222,
|
||||
EnumMember = 223,
|
||||
SourceFile = 224,
|
||||
SyntaxList = 225,
|
||||
Count = 226,
|
||||
FirstAssignment = 53,
|
||||
LastAssignment = 64,
|
||||
FirstReservedWord = 66,
|
||||
LastReservedWord = 101,
|
||||
FirstKeyword = 66,
|
||||
LastKeyword = 125,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 141,
|
||||
LastTypeNode = 149,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
LastPunctuation = 64,
|
||||
FirstToken = 0,
|
||||
LastToken = 124,
|
||||
LastToken = 125,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -336,8 +339,8 @@ declare module "typescript" {
|
||||
FirstTemplateToken = 10,
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 125,
|
||||
LastBinaryOperator = 64,
|
||||
FirstNode = 126,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -353,6 +356,7 @@ declare module "typescript" {
|
||||
Let = 4096,
|
||||
Const = 8192,
|
||||
OctalLiteral = 16384,
|
||||
ExportContext = 32768,
|
||||
Modifier = 499,
|
||||
AccessibilityModifier = 112,
|
||||
BlockScoped = 12288,
|
||||
@@ -362,10 +366,11 @@ declare module "typescript" {
|
||||
DisallowIn = 2,
|
||||
Yield = 4,
|
||||
GeneratorParameter = 8,
|
||||
ThisNodeHasError = 16,
|
||||
ParserGeneratedFlags = 31,
|
||||
ThisNodeOrAnySubNodesHasError = 32,
|
||||
HasAggregatedChildData = 64,
|
||||
Decorator = 16,
|
||||
ThisNodeHasError = 32,
|
||||
ParserGeneratedFlags = 63,
|
||||
ThisNodeOrAnySubNodesHasError = 64,
|
||||
HasAggregatedChildData = 128,
|
||||
}
|
||||
const enum RelationComparisonResult {
|
||||
Succeeded = 1,
|
||||
@@ -376,6 +381,7 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
decorators?: NodeArray<Decorator>;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
@@ -406,6 +412,9 @@ declare module "typescript" {
|
||||
interface ComputedPropertyName extends Node {
|
||||
expression: Expression;
|
||||
}
|
||||
interface Decorator extends Node {
|
||||
expression: LeftHandSideExpression;
|
||||
}
|
||||
interface TypeParameterDeclaration extends Declaration {
|
||||
name: Identifier;
|
||||
constraint?: TypeNode;
|
||||
@@ -972,8 +981,8 @@ declare module "typescript" {
|
||||
interface EmitResolver {
|
||||
hasGlobalName(name: string): boolean;
|
||||
getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string;
|
||||
hasExportDefaultValue(node: SourceFile): boolean;
|
||||
isReferencedAliasDeclaration(node: Node): boolean;
|
||||
isValueAliasDeclaration(node: Node): boolean;
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
@@ -1092,6 +1101,7 @@ declare module "typescript" {
|
||||
ContextChecked = 64,
|
||||
EnumValuesComputed = 128,
|
||||
BlockScopedBindingInLoop = 256,
|
||||
EmitDecorate = 512,
|
||||
}
|
||||
interface NodeLinks {
|
||||
resolvedType?: Type;
|
||||
|
||||
@@ -447,562 +447,571 @@ declare module "typescript" {
|
||||
ColonToken = 51,␍
|
||||
>ColonToken : SyntaxKind
|
||||
|
||||
EqualsToken = 52,␍
|
||||
AtToken = 52,␍
|
||||
>AtToken : SyntaxKind
|
||||
|
||||
EqualsToken = 53,␍
|
||||
>EqualsToken : SyntaxKind
|
||||
|
||||
PlusEqualsToken = 53,␍
|
||||
PlusEqualsToken = 54,␍
|
||||
>PlusEqualsToken : SyntaxKind
|
||||
|
||||
MinusEqualsToken = 54,␍
|
||||
MinusEqualsToken = 55,␍
|
||||
>MinusEqualsToken : SyntaxKind
|
||||
|
||||
AsteriskEqualsToken = 55,␍
|
||||
AsteriskEqualsToken = 56,␍
|
||||
>AsteriskEqualsToken : SyntaxKind
|
||||
|
||||
SlashEqualsToken = 56,␍
|
||||
SlashEqualsToken = 57,␍
|
||||
>SlashEqualsToken : SyntaxKind
|
||||
|
||||
PercentEqualsToken = 57,␍
|
||||
PercentEqualsToken = 58,␍
|
||||
>PercentEqualsToken : SyntaxKind
|
||||
|
||||
LessThanLessThanEqualsToken = 58,␍
|
||||
LessThanLessThanEqualsToken = 59,␍
|
||||
>LessThanLessThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanEqualsToken = 59,␍
|
||||
GreaterThanGreaterThanEqualsToken = 60,␍
|
||||
>GreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,␍
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,␍
|
||||
>GreaterThanGreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
AmpersandEqualsToken = 61,␍
|
||||
AmpersandEqualsToken = 62,␍
|
||||
>AmpersandEqualsToken : SyntaxKind
|
||||
|
||||
BarEqualsToken = 62,␍
|
||||
BarEqualsToken = 63,␍
|
||||
>BarEqualsToken : SyntaxKind
|
||||
|
||||
CaretEqualsToken = 63,␍
|
||||
CaretEqualsToken = 64,␍
|
||||
>CaretEqualsToken : SyntaxKind
|
||||
|
||||
Identifier = 64,␍
|
||||
Identifier = 65,␍
|
||||
>Identifier : SyntaxKind
|
||||
|
||||
BreakKeyword = 65,␍
|
||||
BreakKeyword = 66,␍
|
||||
>BreakKeyword : SyntaxKind
|
||||
|
||||
CaseKeyword = 66,␍
|
||||
CaseKeyword = 67,␍
|
||||
>CaseKeyword : SyntaxKind
|
||||
|
||||
CatchKeyword = 67,␍
|
||||
CatchKeyword = 68,␍
|
||||
>CatchKeyword : SyntaxKind
|
||||
|
||||
ClassKeyword = 68,␍
|
||||
ClassKeyword = 69,␍
|
||||
>ClassKeyword : SyntaxKind
|
||||
|
||||
ConstKeyword = 69,␍
|
||||
ConstKeyword = 70,␍
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
ContinueKeyword = 70,␍
|
||||
ContinueKeyword = 71,␍
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,␍
|
||||
DebuggerKeyword = 72,␍
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
DefaultKeyword = 72,␍
|
||||
DefaultKeyword = 73,␍
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
DeleteKeyword = 73,␍
|
||||
DeleteKeyword = 74,␍
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,␍
|
||||
DoKeyword = 75,␍
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
ElseKeyword = 75,␍
|
||||
ElseKeyword = 76,␍
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
EnumKeyword = 76,␍
|
||||
EnumKeyword = 77,␍
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,␍
|
||||
ExportKeyword = 78,␍
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
ExtendsKeyword = 78,␍
|
||||
ExtendsKeyword = 79,␍
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
FalseKeyword = 79,␍
|
||||
FalseKeyword = 80,␍
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,␍
|
||||
FinallyKeyword = 81,␍
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
ForKeyword = 81,␍
|
||||
ForKeyword = 82,␍
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
FunctionKeyword = 82,␍
|
||||
FunctionKeyword = 83,␍
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,␍
|
||||
IfKeyword = 84,␍
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
ImportKeyword = 84,␍
|
||||
ImportKeyword = 85,␍
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
InKeyword = 85,␍
|
||||
InKeyword = 86,␍
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,␍
|
||||
InstanceOfKeyword = 87,␍
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
NewKeyword = 87,␍
|
||||
NewKeyword = 88,␍
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
NullKeyword = 88,␍
|
||||
NullKeyword = 89,␍
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,␍
|
||||
ReturnKeyword = 90,␍
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
SuperKeyword = 90,␍
|
||||
SuperKeyword = 91,␍
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
SwitchKeyword = 91,␍
|
||||
SwitchKeyword = 92,␍
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,␍
|
||||
ThisKeyword = 93,␍
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
ThrowKeyword = 93,␍
|
||||
ThrowKeyword = 94,␍
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
TrueKeyword = 94,␍
|
||||
TrueKeyword = 95,␍
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,␍
|
||||
TryKeyword = 96,␍
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
TypeOfKeyword = 96,␍
|
||||
TypeOfKeyword = 97,␍
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
VarKeyword = 97,␍
|
||||
VarKeyword = 98,␍
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,␍
|
||||
VoidKeyword = 99,␍
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
WhileKeyword = 99,␍
|
||||
WhileKeyword = 100,␍
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
WithKeyword = 100,␍
|
||||
WithKeyword = 101,␍
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,␍
|
||||
AsKeyword = 102,␍
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
ImplementsKeyword = 102,␍
|
||||
ImplementsKeyword = 103,␍
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 103,␍
|
||||
InterfaceKeyword = 104,␍
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
LetKeyword = 104,␍
|
||||
LetKeyword = 105,␍
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
PackageKeyword = 105,␍
|
||||
PackageKeyword = 106,␍
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 106,␍
|
||||
PrivateKeyword = 107,␍
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
ProtectedKeyword = 107,␍
|
||||
ProtectedKeyword = 108,␍
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
PublicKeyword = 108,␍
|
||||
PublicKeyword = 109,␍
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 109,␍
|
||||
StaticKeyword = 110,␍
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
YieldKeyword = 110,␍
|
||||
YieldKeyword = 111,␍
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
AnyKeyword = 111,␍
|
||||
AnyKeyword = 112,␍
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 112,␍
|
||||
BooleanKeyword = 113,␍
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
ConstructorKeyword = 113,␍
|
||||
ConstructorKeyword = 114,␍
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
DeclareKeyword = 114,␍
|
||||
DeclareKeyword = 115,␍
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 115,␍
|
||||
GetKeyword = 116,␍
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
ModuleKeyword = 116,␍
|
||||
ModuleKeyword = 117,␍
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
RequireKeyword = 117,␍
|
||||
RequireKeyword = 118,␍
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 118,␍
|
||||
NumberKeyword = 119,␍
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
SetKeyword = 119,␍
|
||||
SetKeyword = 120,␍
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
StringKeyword = 120,␍
|
||||
StringKeyword = 121,␍
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 121,␍
|
||||
SymbolKeyword = 122,␍
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,␍
|
||||
TypeKeyword = 123,␍
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
FromKeyword = 123,␍
|
||||
FromKeyword = 124,␍
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
OfKeyword = 124,␍
|
||||
OfKeyword = 125,␍
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,␍
|
||||
QualifiedName = 126,␍
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
ComputedPropertyName = 126,␍
|
||||
ComputedPropertyName = 127,␍
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 127,␍
|
||||
TypeParameter = 128,␍
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,␍
|
||||
Parameter = 129,␍
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
PropertySignature = 129,␍
|
||||
Decorator = 130,␍
|
||||
>Decorator : SyntaxKind
|
||||
|
||||
PropertySignature = 131,␍
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 130,␍
|
||||
PropertyDeclaration = 132,␍
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,␍
|
||||
MethodSignature = 133,␍
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
MethodDeclaration = 132,␍
|
||||
MethodDeclaration = 134,␍
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 133,␍
|
||||
Constructor = 135,␍
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,␍
|
||||
GetAccessor = 136,␍
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
SetAccessor = 135,␍
|
||||
SetAccessor = 137,␍
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 136,␍
|
||||
CallSignature = 138,␍
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,␍
|
||||
ConstructSignature = 139,␍
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
IndexSignature = 138,␍
|
||||
IndexSignature = 140,␍
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 139,␍
|
||||
TypeReference = 141,␍
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,␍
|
||||
FunctionType = 142,␍
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
ConstructorType = 141,␍
|
||||
ConstructorType = 143,␍
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 142,␍
|
||||
TypeQuery = 144,␍
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,␍
|
||||
TypeLiteral = 145,␍
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
ArrayType = 144,␍
|
||||
ArrayType = 146,␍
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 145,␍
|
||||
TupleType = 147,␍
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,␍
|
||||
UnionType = 148,␍
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
ParenthesizedType = 147,␍
|
||||
ParenthesizedType = 149,␍
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,␍
|
||||
ObjectBindingPattern = 150,␍
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,␍
|
||||
ArrayBindingPattern = 151,␍
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,␍
|
||||
BindingElement = 152,␍
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,␍
|
||||
ArrayLiteralExpression = 153,␍
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,␍
|
||||
ObjectLiteralExpression = 154,␍
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,␍
|
||||
PropertyAccessExpression = 155,␍
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 154,␍
|
||||
ElementAccessExpression = 156,␍
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,␍
|
||||
CallExpression = 157,␍
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
NewExpression = 156,␍
|
||||
NewExpression = 158,␍
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 157,␍
|
||||
TaggedTemplateExpression = 159,␍
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,␍
|
||||
TypeAssertionExpression = 160,␍
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
ParenthesizedExpression = 159,␍
|
||||
ParenthesizedExpression = 161,␍
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
FunctionExpression = 160,␍
|
||||
FunctionExpression = 162,␍
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,␍
|
||||
ArrowFunction = 163,␍
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
DeleteExpression = 162,␍
|
||||
DeleteExpression = 164,␍
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 163,␍
|
||||
TypeOfExpression = 165,␍
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
VoidExpression = 164,␍
|
||||
VoidExpression = 166,␍
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 165,␍
|
||||
PrefixUnaryExpression = 167,␍
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 166,␍
|
||||
PostfixUnaryExpression = 168,␍
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,␍
|
||||
BinaryExpression = 169,␍
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
ConditionalExpression = 168,␍
|
||||
ConditionalExpression = 170,␍
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 169,␍
|
||||
TemplateExpression = 171,␍
|
||||
>TemplateExpression : SyntaxKind
|
||||
|
||||
YieldExpression = 170,␍
|
||||
YieldExpression = 172,␍
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
SpreadElementExpression = 171,␍
|
||||
SpreadElementExpression = 173,␍
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
OmittedExpression = 172,␍
|
||||
OmittedExpression = 174,␍
|
||||
>OmittedExpression : SyntaxKind
|
||||
|
||||
TemplateSpan = 173,␍
|
||||
TemplateSpan = 175,␍
|
||||
>TemplateSpan : SyntaxKind
|
||||
|
||||
Block = 174,␍
|
||||
Block = 176,␍
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 175,␍
|
||||
VariableStatement = 177,␍
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 176,␍
|
||||
EmptyStatement = 178,␍
|
||||
>EmptyStatement : SyntaxKind
|
||||
|
||||
ExpressionStatement = 177,␍
|
||||
ExpressionStatement = 179,␍
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
IfStatement = 178,␍
|
||||
IfStatement = 180,␍
|
||||
>IfStatement : SyntaxKind
|
||||
|
||||
DoStatement = 179,␍
|
||||
DoStatement = 181,␍
|
||||
>DoStatement : SyntaxKind
|
||||
|
||||
WhileStatement = 180,␍
|
||||
WhileStatement = 182,␍
|
||||
>WhileStatement : SyntaxKind
|
||||
|
||||
ForStatement = 181,␍
|
||||
ForStatement = 183,␍
|
||||
>ForStatement : SyntaxKind
|
||||
|
||||
ForInStatement = 182,␍
|
||||
ForInStatement = 184,␍
|
||||
>ForInStatement : SyntaxKind
|
||||
|
||||
ForOfStatement = 183,␍
|
||||
ForOfStatement = 185,␍
|
||||
>ForOfStatement : SyntaxKind
|
||||
|
||||
ContinueStatement = 184,␍
|
||||
ContinueStatement = 186,␍
|
||||
>ContinueStatement : SyntaxKind
|
||||
|
||||
BreakStatement = 185,␍
|
||||
BreakStatement = 187,␍
|
||||
>BreakStatement : SyntaxKind
|
||||
|
||||
ReturnStatement = 186,␍
|
||||
ReturnStatement = 188,␍
|
||||
>ReturnStatement : SyntaxKind
|
||||
|
||||
WithStatement = 187,␍
|
||||
WithStatement = 189,␍
|
||||
>WithStatement : SyntaxKind
|
||||
|
||||
SwitchStatement = 188,␍
|
||||
SwitchStatement = 190,␍
|
||||
>SwitchStatement : SyntaxKind
|
||||
|
||||
LabeledStatement = 189,␍
|
||||
LabeledStatement = 191,␍
|
||||
>LabeledStatement : SyntaxKind
|
||||
|
||||
ThrowStatement = 190,␍
|
||||
ThrowStatement = 192,␍
|
||||
>ThrowStatement : SyntaxKind
|
||||
|
||||
TryStatement = 191,␍
|
||||
TryStatement = 193,␍
|
||||
>TryStatement : SyntaxKind
|
||||
|
||||
DebuggerStatement = 192,␍
|
||||
DebuggerStatement = 194,␍
|
||||
>DebuggerStatement : SyntaxKind
|
||||
|
||||
VariableDeclaration = 193,␍
|
||||
VariableDeclaration = 195,␍
|
||||
>VariableDeclaration : SyntaxKind
|
||||
|
||||
VariableDeclarationList = 194,␍
|
||||
VariableDeclarationList = 196,␍
|
||||
>VariableDeclarationList : SyntaxKind
|
||||
|
||||
FunctionDeclaration = 195,␍
|
||||
FunctionDeclaration = 197,␍
|
||||
>FunctionDeclaration : SyntaxKind
|
||||
|
||||
ClassDeclaration = 196,␍
|
||||
ClassDeclaration = 198,␍
|
||||
>ClassDeclaration : SyntaxKind
|
||||
|
||||
InterfaceDeclaration = 197,␍
|
||||
InterfaceDeclaration = 199,␍
|
||||
>InterfaceDeclaration : SyntaxKind
|
||||
|
||||
TypeAliasDeclaration = 198,␍
|
||||
TypeAliasDeclaration = 200,␍
|
||||
>TypeAliasDeclaration : SyntaxKind
|
||||
|
||||
EnumDeclaration = 199,␍
|
||||
EnumDeclaration = 201,␍
|
||||
>EnumDeclaration : SyntaxKind
|
||||
|
||||
ModuleDeclaration = 200,␍
|
||||
ModuleDeclaration = 202,␍
|
||||
>ModuleDeclaration : SyntaxKind
|
||||
|
||||
ModuleBlock = 201,␍
|
||||
ModuleBlock = 203,␍
|
||||
>ModuleBlock : SyntaxKind
|
||||
|
||||
CaseBlock = 202,␍
|
||||
CaseBlock = 204,␍
|
||||
>CaseBlock : SyntaxKind
|
||||
|
||||
ImportEqualsDeclaration = 203,␍
|
||||
ImportEqualsDeclaration = 205,␍
|
||||
>ImportEqualsDeclaration : SyntaxKind
|
||||
|
||||
ImportDeclaration = 204,␍
|
||||
ImportDeclaration = 206,␍
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 205,␍
|
||||
ImportClause = 207,␍
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 206,␍
|
||||
NamespaceImport = 208,␍
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
NamedImports = 207,␍
|
||||
NamedImports = 209,␍
|
||||
>NamedImports : SyntaxKind
|
||||
|
||||
ImportSpecifier = 208,␍
|
||||
ImportSpecifier = 210,␍
|
||||
>ImportSpecifier : SyntaxKind
|
||||
|
||||
ExportAssignment = 209,␍
|
||||
ExportAssignment = 211,␍
|
||||
>ExportAssignment : SyntaxKind
|
||||
|
||||
ExportDeclaration = 210,␍
|
||||
ExportDeclaration = 212,␍
|
||||
>ExportDeclaration : SyntaxKind
|
||||
|
||||
NamedExports = 211,␍
|
||||
NamedExports = 213,␍
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
ExportSpecifier = 212,␍
|
||||
ExportSpecifier = 214,␍
|
||||
>ExportSpecifier : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 213,␍
|
||||
MissingDeclaration = 215,␍
|
||||
>MissingDeclaration : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 216,␍
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 214,␍
|
||||
CaseClause = 217,␍
|
||||
>CaseClause : SyntaxKind
|
||||
|
||||
DefaultClause = 215,␍
|
||||
DefaultClause = 218,␍
|
||||
>DefaultClause : SyntaxKind
|
||||
|
||||
HeritageClause = 216,␍
|
||||
HeritageClause = 219,␍
|
||||
>HeritageClause : SyntaxKind
|
||||
|
||||
CatchClause = 217,␍
|
||||
CatchClause = 220,␍
|
||||
>CatchClause : SyntaxKind
|
||||
|
||||
PropertyAssignment = 218,␍
|
||||
PropertyAssignment = 221,␍
|
||||
>PropertyAssignment : SyntaxKind
|
||||
|
||||
ShorthandPropertyAssignment = 219,␍
|
||||
ShorthandPropertyAssignment = 222,␍
|
||||
>ShorthandPropertyAssignment : SyntaxKind
|
||||
|
||||
EnumMember = 220,␍
|
||||
EnumMember = 223,␍
|
||||
>EnumMember : SyntaxKind
|
||||
|
||||
SourceFile = 221,␍
|
||||
SourceFile = 224,␍
|
||||
>SourceFile : SyntaxKind
|
||||
|
||||
SyntaxList = 222,␍
|
||||
SyntaxList = 225,␍
|
||||
>SyntaxList : SyntaxKind
|
||||
|
||||
Count = 223,␍
|
||||
Count = 226,␍
|
||||
>Count : SyntaxKind
|
||||
|
||||
FirstAssignment = 52,␍
|
||||
FirstAssignment = 53,␍
|
||||
>FirstAssignment : SyntaxKind
|
||||
|
||||
LastAssignment = 63,␍
|
||||
LastAssignment = 64,␍
|
||||
>LastAssignment : SyntaxKind
|
||||
|
||||
FirstReservedWord = 65,␍
|
||||
FirstReservedWord = 66,␍
|
||||
>FirstReservedWord : SyntaxKind
|
||||
|
||||
LastReservedWord = 100,␍
|
||||
LastReservedWord = 101,␍
|
||||
>LastReservedWord : SyntaxKind
|
||||
|
||||
FirstKeyword = 65,␍
|
||||
FirstKeyword = 66,␍
|
||||
>FirstKeyword : SyntaxKind
|
||||
|
||||
LastKeyword = 124,␍
|
||||
LastKeyword = 125,␍
|
||||
>LastKeyword : SyntaxKind
|
||||
|
||||
FirstFutureReservedWord = 102,␍
|
||||
FirstFutureReservedWord = 103,␍
|
||||
>FirstFutureReservedWord : SyntaxKind
|
||||
|
||||
LastFutureReservedWord = 110,␍
|
||||
LastFutureReservedWord = 111,␍
|
||||
>LastFutureReservedWord : SyntaxKind
|
||||
|
||||
FirstTypeNode = 139,␍
|
||||
FirstTypeNode = 141,␍
|
||||
>FirstTypeNode : SyntaxKind
|
||||
|
||||
LastTypeNode = 147,␍
|
||||
LastTypeNode = 149,␍
|
||||
>LastTypeNode : SyntaxKind
|
||||
|
||||
FirstPunctuation = 14,␍
|
||||
>FirstPunctuation : SyntaxKind
|
||||
|
||||
LastPunctuation = 63,␍
|
||||
LastPunctuation = 64,␍
|
||||
>LastPunctuation : SyntaxKind
|
||||
|
||||
FirstToken = 0,␍
|
||||
>FirstToken : SyntaxKind
|
||||
|
||||
LastToken = 124,␍
|
||||
LastToken = 125,␍
|
||||
>LastToken : SyntaxKind
|
||||
|
||||
FirstTriviaToken = 2,␍
|
||||
@@ -1026,10 +1035,10 @@ declare module "typescript" {
|
||||
FirstBinaryOperator = 24,␍
|
||||
>FirstBinaryOperator : SyntaxKind
|
||||
|
||||
LastBinaryOperator = 63,␍
|
||||
LastBinaryOperator = 64,␍
|
||||
>LastBinaryOperator : SyntaxKind
|
||||
|
||||
FirstNode = 125,␍
|
||||
FirstNode = 126,␍
|
||||
>FirstNode : SyntaxKind
|
||||
}␍
|
||||
const enum NodeFlags {␍
|
||||
@@ -1074,6 +1083,9 @@ declare module "typescript" {
|
||||
OctalLiteral = 16384,␍
|
||||
>OctalLiteral : NodeFlags
|
||||
|
||||
ExportContext = 32768,␍
|
||||
>ExportContext : NodeFlags
|
||||
|
||||
Modifier = 499,␍
|
||||
>Modifier : NodeFlags
|
||||
|
||||
@@ -1098,16 +1110,19 @@ declare module "typescript" {
|
||||
GeneratorParameter = 8,␍
|
||||
>GeneratorParameter : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 16,␍
|
||||
Decorator = 16,␍
|
||||
>Decorator : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 32,␍
|
||||
>ThisNodeHasError : ParserContextFlags
|
||||
|
||||
ParserGeneratedFlags = 31,␍
|
||||
ParserGeneratedFlags = 63,␍
|
||||
>ParserGeneratedFlags : ParserContextFlags
|
||||
|
||||
ThisNodeOrAnySubNodesHasError = 32,␍
|
||||
ThisNodeOrAnySubNodesHasError = 64,␍
|
||||
>ThisNodeOrAnySubNodesHasError : ParserContextFlags
|
||||
|
||||
HasAggregatedChildData = 64,␍
|
||||
HasAggregatedChildData = 128,␍
|
||||
>HasAggregatedChildData : ParserContextFlags
|
||||
}␍
|
||||
const enum RelationComparisonResult {␍
|
||||
@@ -1138,6 +1153,11 @@ declare module "typescript" {
|
||||
>parserContextFlags : ParserContextFlags
|
||||
>ParserContextFlags : ParserContextFlags
|
||||
|
||||
decorators?: NodeArray<Decorator>;␍
|
||||
>decorators : NodeArray<Decorator>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Decorator : Decorator
|
||||
|
||||
modifiers?: ModifiersArray;␍
|
||||
>modifiers : ModifiersArray
|
||||
>ModifiersArray : ModifiersArray
|
||||
@@ -1232,6 +1252,14 @@ declare module "typescript" {
|
||||
expression: Expression;␍
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}␍
|
||||
interface Decorator extends Node {␍
|
||||
>Decorator : Decorator
|
||||
>Node : Node
|
||||
|
||||
expression: LeftHandSideExpression;␍
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
}␍
|
||||
interface TypeParameterDeclaration extends Declaration {␍
|
||||
>TypeParameterDeclaration : TypeParameterDeclaration
|
||||
@@ -3111,16 +3139,17 @@ declare module "typescript" {
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
hasExportDefaultValue(node: SourceFile): boolean;␍
|
||||
>hasExportDefaultValue : (node: SourceFile) => boolean
|
||||
>node : SourceFile
|
||||
>SourceFile : SourceFile
|
||||
|
||||
isReferencedAliasDeclaration(node: Node): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node) => boolean
|
||||
isValueAliasDeclaration(node: Node): boolean;␍
|
||||
>isValueAliasDeclaration : (node: Node) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node, checkChildren?: boolean) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>checkChildren : boolean
|
||||
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;␍
|
||||
>isTopLevelValueImportEqualsWithEntityName : (node: ImportEqualsDeclaration) => boolean
|
||||
>node : ImportEqualsDeclaration
|
||||
@@ -3530,6 +3559,9 @@ declare module "typescript" {
|
||||
|
||||
BlockScopedBindingInLoop = 256,␍
|
||||
>BlockScopedBindingInLoop : NodeCheckFlags
|
||||
|
||||
EmitDecorate = 512,␍
|
||||
>EmitDecorate : NodeCheckFlags
|
||||
}␍
|
||||
interface NodeLinks {␍
|
||||
>NodeLinks : NodeLinks
|
||||
|
||||
@@ -180,192 +180,195 @@ declare module "typescript" {
|
||||
BarBarToken = 49,
|
||||
QuestionToken = 50,
|
||||
ColonToken = 51,
|
||||
EqualsToken = 52,
|
||||
PlusEqualsToken = 53,
|
||||
MinusEqualsToken = 54,
|
||||
AsteriskEqualsToken = 55,
|
||||
SlashEqualsToken = 56,
|
||||
PercentEqualsToken = 57,
|
||||
LessThanLessThanEqualsToken = 58,
|
||||
GreaterThanGreaterThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,
|
||||
AmpersandEqualsToken = 61,
|
||||
BarEqualsToken = 62,
|
||||
CaretEqualsToken = 63,
|
||||
Identifier = 64,
|
||||
BreakKeyword = 65,
|
||||
CaseKeyword = 66,
|
||||
CatchKeyword = 67,
|
||||
ClassKeyword = 68,
|
||||
ConstKeyword = 69,
|
||||
ContinueKeyword = 70,
|
||||
DebuggerKeyword = 71,
|
||||
DefaultKeyword = 72,
|
||||
DeleteKeyword = 73,
|
||||
DoKeyword = 74,
|
||||
ElseKeyword = 75,
|
||||
EnumKeyword = 76,
|
||||
ExportKeyword = 77,
|
||||
ExtendsKeyword = 78,
|
||||
FalseKeyword = 79,
|
||||
FinallyKeyword = 80,
|
||||
ForKeyword = 81,
|
||||
FunctionKeyword = 82,
|
||||
IfKeyword = 83,
|
||||
ImportKeyword = 84,
|
||||
InKeyword = 85,
|
||||
InstanceOfKeyword = 86,
|
||||
NewKeyword = 87,
|
||||
NullKeyword = 88,
|
||||
ReturnKeyword = 89,
|
||||
SuperKeyword = 90,
|
||||
SwitchKeyword = 91,
|
||||
ThisKeyword = 92,
|
||||
ThrowKeyword = 93,
|
||||
TrueKeyword = 94,
|
||||
TryKeyword = 95,
|
||||
TypeOfKeyword = 96,
|
||||
VarKeyword = 97,
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
AsKeyword = 101,
|
||||
ImplementsKeyword = 102,
|
||||
InterfaceKeyword = 103,
|
||||
LetKeyword = 104,
|
||||
PackageKeyword = 105,
|
||||
PrivateKeyword = 106,
|
||||
ProtectedKeyword = 107,
|
||||
PublicKeyword = 108,
|
||||
StaticKeyword = 109,
|
||||
YieldKeyword = 110,
|
||||
AnyKeyword = 111,
|
||||
BooleanKeyword = 112,
|
||||
ConstructorKeyword = 113,
|
||||
DeclareKeyword = 114,
|
||||
GetKeyword = 115,
|
||||
ModuleKeyword = 116,
|
||||
RequireKeyword = 117,
|
||||
NumberKeyword = 118,
|
||||
SetKeyword = 119,
|
||||
StringKeyword = 120,
|
||||
SymbolKeyword = 121,
|
||||
TypeKeyword = 122,
|
||||
FromKeyword = 123,
|
||||
OfKeyword = 124,
|
||||
QualifiedName = 125,
|
||||
ComputedPropertyName = 126,
|
||||
TypeParameter = 127,
|
||||
Parameter = 128,
|
||||
PropertySignature = 129,
|
||||
PropertyDeclaration = 130,
|
||||
MethodSignature = 131,
|
||||
MethodDeclaration = 132,
|
||||
Constructor = 133,
|
||||
GetAccessor = 134,
|
||||
SetAccessor = 135,
|
||||
CallSignature = 136,
|
||||
ConstructSignature = 137,
|
||||
IndexSignature = 138,
|
||||
TypeReference = 139,
|
||||
FunctionType = 140,
|
||||
ConstructorType = 141,
|
||||
TypeQuery = 142,
|
||||
TypeLiteral = 143,
|
||||
ArrayType = 144,
|
||||
TupleType = 145,
|
||||
UnionType = 146,
|
||||
ParenthesizedType = 147,
|
||||
ObjectBindingPattern = 148,
|
||||
ArrayBindingPattern = 149,
|
||||
BindingElement = 150,
|
||||
ArrayLiteralExpression = 151,
|
||||
ObjectLiteralExpression = 152,
|
||||
PropertyAccessExpression = 153,
|
||||
ElementAccessExpression = 154,
|
||||
CallExpression = 155,
|
||||
NewExpression = 156,
|
||||
TaggedTemplateExpression = 157,
|
||||
TypeAssertionExpression = 158,
|
||||
ParenthesizedExpression = 159,
|
||||
FunctionExpression = 160,
|
||||
ArrowFunction = 161,
|
||||
DeleteExpression = 162,
|
||||
TypeOfExpression = 163,
|
||||
VoidExpression = 164,
|
||||
PrefixUnaryExpression = 165,
|
||||
PostfixUnaryExpression = 166,
|
||||
BinaryExpression = 167,
|
||||
ConditionalExpression = 168,
|
||||
TemplateExpression = 169,
|
||||
YieldExpression = 170,
|
||||
SpreadElementExpression = 171,
|
||||
OmittedExpression = 172,
|
||||
TemplateSpan = 173,
|
||||
Block = 174,
|
||||
VariableStatement = 175,
|
||||
EmptyStatement = 176,
|
||||
ExpressionStatement = 177,
|
||||
IfStatement = 178,
|
||||
DoStatement = 179,
|
||||
WhileStatement = 180,
|
||||
ForStatement = 181,
|
||||
ForInStatement = 182,
|
||||
ForOfStatement = 183,
|
||||
ContinueStatement = 184,
|
||||
BreakStatement = 185,
|
||||
ReturnStatement = 186,
|
||||
WithStatement = 187,
|
||||
SwitchStatement = 188,
|
||||
LabeledStatement = 189,
|
||||
ThrowStatement = 190,
|
||||
TryStatement = 191,
|
||||
DebuggerStatement = 192,
|
||||
VariableDeclaration = 193,
|
||||
VariableDeclarationList = 194,
|
||||
FunctionDeclaration = 195,
|
||||
ClassDeclaration = 196,
|
||||
InterfaceDeclaration = 197,
|
||||
TypeAliasDeclaration = 198,
|
||||
EnumDeclaration = 199,
|
||||
ModuleDeclaration = 200,
|
||||
ModuleBlock = 201,
|
||||
CaseBlock = 202,
|
||||
ImportEqualsDeclaration = 203,
|
||||
ImportDeclaration = 204,
|
||||
ImportClause = 205,
|
||||
NamespaceImport = 206,
|
||||
NamedImports = 207,
|
||||
ImportSpecifier = 208,
|
||||
ExportAssignment = 209,
|
||||
ExportDeclaration = 210,
|
||||
NamedExports = 211,
|
||||
ExportSpecifier = 212,
|
||||
ExternalModuleReference = 213,
|
||||
CaseClause = 214,
|
||||
DefaultClause = 215,
|
||||
HeritageClause = 216,
|
||||
CatchClause = 217,
|
||||
PropertyAssignment = 218,
|
||||
ShorthandPropertyAssignment = 219,
|
||||
EnumMember = 220,
|
||||
SourceFile = 221,
|
||||
SyntaxList = 222,
|
||||
Count = 223,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 102,
|
||||
LastFutureReservedWord = 110,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
AtToken = 52,
|
||||
EqualsToken = 53,
|
||||
PlusEqualsToken = 54,
|
||||
MinusEqualsToken = 55,
|
||||
AsteriskEqualsToken = 56,
|
||||
SlashEqualsToken = 57,
|
||||
PercentEqualsToken = 58,
|
||||
LessThanLessThanEqualsToken = 59,
|
||||
GreaterThanGreaterThanEqualsToken = 60,
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,
|
||||
AmpersandEqualsToken = 62,
|
||||
BarEqualsToken = 63,
|
||||
CaretEqualsToken = 64,
|
||||
Identifier = 65,
|
||||
BreakKeyword = 66,
|
||||
CaseKeyword = 67,
|
||||
CatchKeyword = 68,
|
||||
ClassKeyword = 69,
|
||||
ConstKeyword = 70,
|
||||
ContinueKeyword = 71,
|
||||
DebuggerKeyword = 72,
|
||||
DefaultKeyword = 73,
|
||||
DeleteKeyword = 74,
|
||||
DoKeyword = 75,
|
||||
ElseKeyword = 76,
|
||||
EnumKeyword = 77,
|
||||
ExportKeyword = 78,
|
||||
ExtendsKeyword = 79,
|
||||
FalseKeyword = 80,
|
||||
FinallyKeyword = 81,
|
||||
ForKeyword = 82,
|
||||
FunctionKeyword = 83,
|
||||
IfKeyword = 84,
|
||||
ImportKeyword = 85,
|
||||
InKeyword = 86,
|
||||
InstanceOfKeyword = 87,
|
||||
NewKeyword = 88,
|
||||
NullKeyword = 89,
|
||||
ReturnKeyword = 90,
|
||||
SuperKeyword = 91,
|
||||
SwitchKeyword = 92,
|
||||
ThisKeyword = 93,
|
||||
ThrowKeyword = 94,
|
||||
TrueKeyword = 95,
|
||||
TryKeyword = 96,
|
||||
TypeOfKeyword = 97,
|
||||
VarKeyword = 98,
|
||||
VoidKeyword = 99,
|
||||
WhileKeyword = 100,
|
||||
WithKeyword = 101,
|
||||
AsKeyword = 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,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 123,
|
||||
FromKeyword = 124,
|
||||
OfKeyword = 125,
|
||||
QualifiedName = 126,
|
||||
ComputedPropertyName = 127,
|
||||
TypeParameter = 128,
|
||||
Parameter = 129,
|
||||
Decorator = 130,
|
||||
PropertySignature = 131,
|
||||
PropertyDeclaration = 132,
|
||||
MethodSignature = 133,
|
||||
MethodDeclaration = 134,
|
||||
Constructor = 135,
|
||||
GetAccessor = 136,
|
||||
SetAccessor = 137,
|
||||
CallSignature = 138,
|
||||
ConstructSignature = 139,
|
||||
IndexSignature = 140,
|
||||
TypeReference = 141,
|
||||
FunctionType = 142,
|
||||
ConstructorType = 143,
|
||||
TypeQuery = 144,
|
||||
TypeLiteral = 145,
|
||||
ArrayType = 146,
|
||||
TupleType = 147,
|
||||
UnionType = 148,
|
||||
ParenthesizedType = 149,
|
||||
ObjectBindingPattern = 150,
|
||||
ArrayBindingPattern = 151,
|
||||
BindingElement = 152,
|
||||
ArrayLiteralExpression = 153,
|
||||
ObjectLiteralExpression = 154,
|
||||
PropertyAccessExpression = 155,
|
||||
ElementAccessExpression = 156,
|
||||
CallExpression = 157,
|
||||
NewExpression = 158,
|
||||
TaggedTemplateExpression = 159,
|
||||
TypeAssertionExpression = 160,
|
||||
ParenthesizedExpression = 161,
|
||||
FunctionExpression = 162,
|
||||
ArrowFunction = 163,
|
||||
DeleteExpression = 164,
|
||||
TypeOfExpression = 165,
|
||||
VoidExpression = 166,
|
||||
PrefixUnaryExpression = 167,
|
||||
PostfixUnaryExpression = 168,
|
||||
BinaryExpression = 169,
|
||||
ConditionalExpression = 170,
|
||||
TemplateExpression = 171,
|
||||
YieldExpression = 172,
|
||||
SpreadElementExpression = 173,
|
||||
OmittedExpression = 174,
|
||||
TemplateSpan = 175,
|
||||
Block = 176,
|
||||
VariableStatement = 177,
|
||||
EmptyStatement = 178,
|
||||
ExpressionStatement = 179,
|
||||
IfStatement = 180,
|
||||
DoStatement = 181,
|
||||
WhileStatement = 182,
|
||||
ForStatement = 183,
|
||||
ForInStatement = 184,
|
||||
ForOfStatement = 185,
|
||||
ContinueStatement = 186,
|
||||
BreakStatement = 187,
|
||||
ReturnStatement = 188,
|
||||
WithStatement = 189,
|
||||
SwitchStatement = 190,
|
||||
LabeledStatement = 191,
|
||||
ThrowStatement = 192,
|
||||
TryStatement = 193,
|
||||
DebuggerStatement = 194,
|
||||
VariableDeclaration = 195,
|
||||
VariableDeclarationList = 196,
|
||||
FunctionDeclaration = 197,
|
||||
ClassDeclaration = 198,
|
||||
InterfaceDeclaration = 199,
|
||||
TypeAliasDeclaration = 200,
|
||||
EnumDeclaration = 201,
|
||||
ModuleDeclaration = 202,
|
||||
ModuleBlock = 203,
|
||||
CaseBlock = 204,
|
||||
ImportEqualsDeclaration = 205,
|
||||
ImportDeclaration = 206,
|
||||
ImportClause = 207,
|
||||
NamespaceImport = 208,
|
||||
NamedImports = 209,
|
||||
ImportSpecifier = 210,
|
||||
ExportAssignment = 211,
|
||||
ExportDeclaration = 212,
|
||||
NamedExports = 213,
|
||||
ExportSpecifier = 214,
|
||||
MissingDeclaration = 215,
|
||||
ExternalModuleReference = 216,
|
||||
CaseClause = 217,
|
||||
DefaultClause = 218,
|
||||
HeritageClause = 219,
|
||||
CatchClause = 220,
|
||||
PropertyAssignment = 221,
|
||||
ShorthandPropertyAssignment = 222,
|
||||
EnumMember = 223,
|
||||
SourceFile = 224,
|
||||
SyntaxList = 225,
|
||||
Count = 226,
|
||||
FirstAssignment = 53,
|
||||
LastAssignment = 64,
|
||||
FirstReservedWord = 66,
|
||||
LastReservedWord = 101,
|
||||
FirstKeyword = 66,
|
||||
LastKeyword = 125,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 141,
|
||||
LastTypeNode = 149,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
LastPunctuation = 64,
|
||||
FirstToken = 0,
|
||||
LastToken = 124,
|
||||
LastToken = 125,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -373,8 +376,8 @@ declare module "typescript" {
|
||||
FirstTemplateToken = 10,
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 125,
|
||||
LastBinaryOperator = 64,
|
||||
FirstNode = 126,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -390,6 +393,7 @@ declare module "typescript" {
|
||||
Let = 4096,
|
||||
Const = 8192,
|
||||
OctalLiteral = 16384,
|
||||
ExportContext = 32768,
|
||||
Modifier = 499,
|
||||
AccessibilityModifier = 112,
|
||||
BlockScoped = 12288,
|
||||
@@ -399,10 +403,11 @@ declare module "typescript" {
|
||||
DisallowIn = 2,
|
||||
Yield = 4,
|
||||
GeneratorParameter = 8,
|
||||
ThisNodeHasError = 16,
|
||||
ParserGeneratedFlags = 31,
|
||||
ThisNodeOrAnySubNodesHasError = 32,
|
||||
HasAggregatedChildData = 64,
|
||||
Decorator = 16,
|
||||
ThisNodeHasError = 32,
|
||||
ParserGeneratedFlags = 63,
|
||||
ThisNodeOrAnySubNodesHasError = 64,
|
||||
HasAggregatedChildData = 128,
|
||||
}
|
||||
const enum RelationComparisonResult {
|
||||
Succeeded = 1,
|
||||
@@ -413,6 +418,7 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
decorators?: NodeArray<Decorator>;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
@@ -443,6 +449,9 @@ declare module "typescript" {
|
||||
interface ComputedPropertyName extends Node {
|
||||
expression: Expression;
|
||||
}
|
||||
interface Decorator extends Node {
|
||||
expression: LeftHandSideExpression;
|
||||
}
|
||||
interface TypeParameterDeclaration extends Declaration {
|
||||
name: Identifier;
|
||||
constraint?: TypeNode;
|
||||
@@ -1009,8 +1018,8 @@ declare module "typescript" {
|
||||
interface EmitResolver {
|
||||
hasGlobalName(name: string): boolean;
|
||||
getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string;
|
||||
hasExportDefaultValue(node: SourceFile): boolean;
|
||||
isReferencedAliasDeclaration(node: Node): boolean;
|
||||
isValueAliasDeclaration(node: Node): boolean;
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
@@ -1129,6 +1138,7 @@ declare module "typescript" {
|
||||
ContextChecked = 64,
|
||||
EnumValuesComputed = 128,
|
||||
BlockScopedBindingInLoop = 256,
|
||||
EmitDecorate = 512,
|
||||
}
|
||||
interface NodeLinks {
|
||||
resolvedType?: Type;
|
||||
|
||||
@@ -620,562 +620,571 @@ declare module "typescript" {
|
||||
ColonToken = 51,␍
|
||||
>ColonToken : SyntaxKind
|
||||
|
||||
EqualsToken = 52,␍
|
||||
AtToken = 52,␍
|
||||
>AtToken : SyntaxKind
|
||||
|
||||
EqualsToken = 53,␍
|
||||
>EqualsToken : SyntaxKind
|
||||
|
||||
PlusEqualsToken = 53,␍
|
||||
PlusEqualsToken = 54,␍
|
||||
>PlusEqualsToken : SyntaxKind
|
||||
|
||||
MinusEqualsToken = 54,␍
|
||||
MinusEqualsToken = 55,␍
|
||||
>MinusEqualsToken : SyntaxKind
|
||||
|
||||
AsteriskEqualsToken = 55,␍
|
||||
AsteriskEqualsToken = 56,␍
|
||||
>AsteriskEqualsToken : SyntaxKind
|
||||
|
||||
SlashEqualsToken = 56,␍
|
||||
SlashEqualsToken = 57,␍
|
||||
>SlashEqualsToken : SyntaxKind
|
||||
|
||||
PercentEqualsToken = 57,␍
|
||||
PercentEqualsToken = 58,␍
|
||||
>PercentEqualsToken : SyntaxKind
|
||||
|
||||
LessThanLessThanEqualsToken = 58,␍
|
||||
LessThanLessThanEqualsToken = 59,␍
|
||||
>LessThanLessThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanEqualsToken = 59,␍
|
||||
GreaterThanGreaterThanEqualsToken = 60,␍
|
||||
>GreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 60,␍
|
||||
GreaterThanGreaterThanGreaterThanEqualsToken = 61,␍
|
||||
>GreaterThanGreaterThanGreaterThanEqualsToken : SyntaxKind
|
||||
|
||||
AmpersandEqualsToken = 61,␍
|
||||
AmpersandEqualsToken = 62,␍
|
||||
>AmpersandEqualsToken : SyntaxKind
|
||||
|
||||
BarEqualsToken = 62,␍
|
||||
BarEqualsToken = 63,␍
|
||||
>BarEqualsToken : SyntaxKind
|
||||
|
||||
CaretEqualsToken = 63,␍
|
||||
CaretEqualsToken = 64,␍
|
||||
>CaretEqualsToken : SyntaxKind
|
||||
|
||||
Identifier = 64,␍
|
||||
Identifier = 65,␍
|
||||
>Identifier : SyntaxKind
|
||||
|
||||
BreakKeyword = 65,␍
|
||||
BreakKeyword = 66,␍
|
||||
>BreakKeyword : SyntaxKind
|
||||
|
||||
CaseKeyword = 66,␍
|
||||
CaseKeyword = 67,␍
|
||||
>CaseKeyword : SyntaxKind
|
||||
|
||||
CatchKeyword = 67,␍
|
||||
CatchKeyword = 68,␍
|
||||
>CatchKeyword : SyntaxKind
|
||||
|
||||
ClassKeyword = 68,␍
|
||||
ClassKeyword = 69,␍
|
||||
>ClassKeyword : SyntaxKind
|
||||
|
||||
ConstKeyword = 69,␍
|
||||
ConstKeyword = 70,␍
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
ContinueKeyword = 70,␍
|
||||
ContinueKeyword = 71,␍
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,␍
|
||||
DebuggerKeyword = 72,␍
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
DefaultKeyword = 72,␍
|
||||
DefaultKeyword = 73,␍
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
DeleteKeyword = 73,␍
|
||||
DeleteKeyword = 74,␍
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,␍
|
||||
DoKeyword = 75,␍
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
ElseKeyword = 75,␍
|
||||
ElseKeyword = 76,␍
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
EnumKeyword = 76,␍
|
||||
EnumKeyword = 77,␍
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,␍
|
||||
ExportKeyword = 78,␍
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
ExtendsKeyword = 78,␍
|
||||
ExtendsKeyword = 79,␍
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
FalseKeyword = 79,␍
|
||||
FalseKeyword = 80,␍
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,␍
|
||||
FinallyKeyword = 81,␍
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
ForKeyword = 81,␍
|
||||
ForKeyword = 82,␍
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
FunctionKeyword = 82,␍
|
||||
FunctionKeyword = 83,␍
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,␍
|
||||
IfKeyword = 84,␍
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
ImportKeyword = 84,␍
|
||||
ImportKeyword = 85,␍
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
InKeyword = 85,␍
|
||||
InKeyword = 86,␍
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,␍
|
||||
InstanceOfKeyword = 87,␍
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
NewKeyword = 87,␍
|
||||
NewKeyword = 88,␍
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
NullKeyword = 88,␍
|
||||
NullKeyword = 89,␍
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,␍
|
||||
ReturnKeyword = 90,␍
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
SuperKeyword = 90,␍
|
||||
SuperKeyword = 91,␍
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
SwitchKeyword = 91,␍
|
||||
SwitchKeyword = 92,␍
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,␍
|
||||
ThisKeyword = 93,␍
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
ThrowKeyword = 93,␍
|
||||
ThrowKeyword = 94,␍
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
TrueKeyword = 94,␍
|
||||
TrueKeyword = 95,␍
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,␍
|
||||
TryKeyword = 96,␍
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
TypeOfKeyword = 96,␍
|
||||
TypeOfKeyword = 97,␍
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
VarKeyword = 97,␍
|
||||
VarKeyword = 98,␍
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,␍
|
||||
VoidKeyword = 99,␍
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
WhileKeyword = 99,␍
|
||||
WhileKeyword = 100,␍
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
WithKeyword = 100,␍
|
||||
WithKeyword = 101,␍
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,␍
|
||||
AsKeyword = 102,␍
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
ImplementsKeyword = 102,␍
|
||||
ImplementsKeyword = 103,␍
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 103,␍
|
||||
InterfaceKeyword = 104,␍
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
LetKeyword = 104,␍
|
||||
LetKeyword = 105,␍
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
PackageKeyword = 105,␍
|
||||
PackageKeyword = 106,␍
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 106,␍
|
||||
PrivateKeyword = 107,␍
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
ProtectedKeyword = 107,␍
|
||||
ProtectedKeyword = 108,␍
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
PublicKeyword = 108,␍
|
||||
PublicKeyword = 109,␍
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 109,␍
|
||||
StaticKeyword = 110,␍
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
YieldKeyword = 110,␍
|
||||
YieldKeyword = 111,␍
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
AnyKeyword = 111,␍
|
||||
AnyKeyword = 112,␍
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 112,␍
|
||||
BooleanKeyword = 113,␍
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
ConstructorKeyword = 113,␍
|
||||
ConstructorKeyword = 114,␍
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
DeclareKeyword = 114,␍
|
||||
DeclareKeyword = 115,␍
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 115,␍
|
||||
GetKeyword = 116,␍
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
ModuleKeyword = 116,␍
|
||||
ModuleKeyword = 117,␍
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
RequireKeyword = 117,␍
|
||||
RequireKeyword = 118,␍
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 118,␍
|
||||
NumberKeyword = 119,␍
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
SetKeyword = 119,␍
|
||||
SetKeyword = 120,␍
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
StringKeyword = 120,␍
|
||||
StringKeyword = 121,␍
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 121,␍
|
||||
SymbolKeyword = 122,␍
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
TypeKeyword = 122,␍
|
||||
TypeKeyword = 123,␍
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
FromKeyword = 123,␍
|
||||
FromKeyword = 124,␍
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
OfKeyword = 124,␍
|
||||
OfKeyword = 125,␍
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,␍
|
||||
QualifiedName = 126,␍
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
ComputedPropertyName = 126,␍
|
||||
ComputedPropertyName = 127,␍
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
TypeParameter = 127,␍
|
||||
TypeParameter = 128,␍
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,␍
|
||||
Parameter = 129,␍
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
PropertySignature = 129,␍
|
||||
Decorator = 130,␍
|
||||
>Decorator : SyntaxKind
|
||||
|
||||
PropertySignature = 131,␍
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
PropertyDeclaration = 130,␍
|
||||
PropertyDeclaration = 132,␍
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,␍
|
||||
MethodSignature = 133,␍
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
MethodDeclaration = 132,␍
|
||||
MethodDeclaration = 134,␍
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
Constructor = 133,␍
|
||||
Constructor = 135,␍
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,␍
|
||||
GetAccessor = 136,␍
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
SetAccessor = 135,␍
|
||||
SetAccessor = 137,␍
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
CallSignature = 136,␍
|
||||
CallSignature = 138,␍
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,␍
|
||||
ConstructSignature = 139,␍
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
IndexSignature = 138,␍
|
||||
IndexSignature = 140,␍
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
TypeReference = 139,␍
|
||||
TypeReference = 141,␍
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,␍
|
||||
FunctionType = 142,␍
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
ConstructorType = 141,␍
|
||||
ConstructorType = 143,␍
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
TypeQuery = 142,␍
|
||||
TypeQuery = 144,␍
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,␍
|
||||
TypeLiteral = 145,␍
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
ArrayType = 144,␍
|
||||
ArrayType = 146,␍
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
TupleType = 145,␍
|
||||
TupleType = 147,␍
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,␍
|
||||
UnionType = 148,␍
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
ParenthesizedType = 147,␍
|
||||
ParenthesizedType = 149,␍
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,␍
|
||||
ObjectBindingPattern = 150,␍
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,␍
|
||||
ArrayBindingPattern = 151,␍
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,␍
|
||||
BindingElement = 152,␍
|
||||
>BindingElement : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,␍
|
||||
ArrayLiteralExpression = 153,␍
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,␍
|
||||
ObjectLiteralExpression = 154,␍
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,␍
|
||||
PropertyAccessExpression = 155,␍
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
ElementAccessExpression = 154,␍
|
||||
ElementAccessExpression = 156,␍
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,␍
|
||||
CallExpression = 157,␍
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
NewExpression = 156,␍
|
||||
NewExpression = 158,␍
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
TaggedTemplateExpression = 157,␍
|
||||
TaggedTemplateExpression = 159,␍
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,␍
|
||||
TypeAssertionExpression = 160,␍
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
ParenthesizedExpression = 159,␍
|
||||
ParenthesizedExpression = 161,␍
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
FunctionExpression = 160,␍
|
||||
FunctionExpression = 162,␍
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,␍
|
||||
ArrowFunction = 163,␍
|
||||
>ArrowFunction : SyntaxKind
|
||||
|
||||
DeleteExpression = 162,␍
|
||||
DeleteExpression = 164,␍
|
||||
>DeleteExpression : SyntaxKind
|
||||
|
||||
TypeOfExpression = 163,␍
|
||||
TypeOfExpression = 165,␍
|
||||
>TypeOfExpression : SyntaxKind
|
||||
|
||||
VoidExpression = 164,␍
|
||||
VoidExpression = 166,␍
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
PrefixUnaryExpression = 165,␍
|
||||
PrefixUnaryExpression = 167,␍
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
PostfixUnaryExpression = 166,␍
|
||||
PostfixUnaryExpression = 168,␍
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,␍
|
||||
BinaryExpression = 169,␍
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
ConditionalExpression = 168,␍
|
||||
ConditionalExpression = 170,␍
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
TemplateExpression = 169,␍
|
||||
TemplateExpression = 171,␍
|
||||
>TemplateExpression : SyntaxKind
|
||||
|
||||
YieldExpression = 170,␍
|
||||
YieldExpression = 172,␍
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
SpreadElementExpression = 171,␍
|
||||
SpreadElementExpression = 173,␍
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
OmittedExpression = 172,␍
|
||||
OmittedExpression = 174,␍
|
||||
>OmittedExpression : SyntaxKind
|
||||
|
||||
TemplateSpan = 173,␍
|
||||
TemplateSpan = 175,␍
|
||||
>TemplateSpan : SyntaxKind
|
||||
|
||||
Block = 174,␍
|
||||
Block = 176,␍
|
||||
>Block : SyntaxKind
|
||||
|
||||
VariableStatement = 175,␍
|
||||
VariableStatement = 177,␍
|
||||
>VariableStatement : SyntaxKind
|
||||
|
||||
EmptyStatement = 176,␍
|
||||
EmptyStatement = 178,␍
|
||||
>EmptyStatement : SyntaxKind
|
||||
|
||||
ExpressionStatement = 177,␍
|
||||
ExpressionStatement = 179,␍
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
IfStatement = 178,␍
|
||||
IfStatement = 180,␍
|
||||
>IfStatement : SyntaxKind
|
||||
|
||||
DoStatement = 179,␍
|
||||
DoStatement = 181,␍
|
||||
>DoStatement : SyntaxKind
|
||||
|
||||
WhileStatement = 180,␍
|
||||
WhileStatement = 182,␍
|
||||
>WhileStatement : SyntaxKind
|
||||
|
||||
ForStatement = 181,␍
|
||||
ForStatement = 183,␍
|
||||
>ForStatement : SyntaxKind
|
||||
|
||||
ForInStatement = 182,␍
|
||||
ForInStatement = 184,␍
|
||||
>ForInStatement : SyntaxKind
|
||||
|
||||
ForOfStatement = 183,␍
|
||||
ForOfStatement = 185,␍
|
||||
>ForOfStatement : SyntaxKind
|
||||
|
||||
ContinueStatement = 184,␍
|
||||
ContinueStatement = 186,␍
|
||||
>ContinueStatement : SyntaxKind
|
||||
|
||||
BreakStatement = 185,␍
|
||||
BreakStatement = 187,␍
|
||||
>BreakStatement : SyntaxKind
|
||||
|
||||
ReturnStatement = 186,␍
|
||||
ReturnStatement = 188,␍
|
||||
>ReturnStatement : SyntaxKind
|
||||
|
||||
WithStatement = 187,␍
|
||||
WithStatement = 189,␍
|
||||
>WithStatement : SyntaxKind
|
||||
|
||||
SwitchStatement = 188,␍
|
||||
SwitchStatement = 190,␍
|
||||
>SwitchStatement : SyntaxKind
|
||||
|
||||
LabeledStatement = 189,␍
|
||||
LabeledStatement = 191,␍
|
||||
>LabeledStatement : SyntaxKind
|
||||
|
||||
ThrowStatement = 190,␍
|
||||
ThrowStatement = 192,␍
|
||||
>ThrowStatement : SyntaxKind
|
||||
|
||||
TryStatement = 191,␍
|
||||
TryStatement = 193,␍
|
||||
>TryStatement : SyntaxKind
|
||||
|
||||
DebuggerStatement = 192,␍
|
||||
DebuggerStatement = 194,␍
|
||||
>DebuggerStatement : SyntaxKind
|
||||
|
||||
VariableDeclaration = 193,␍
|
||||
VariableDeclaration = 195,␍
|
||||
>VariableDeclaration : SyntaxKind
|
||||
|
||||
VariableDeclarationList = 194,␍
|
||||
VariableDeclarationList = 196,␍
|
||||
>VariableDeclarationList : SyntaxKind
|
||||
|
||||
FunctionDeclaration = 195,␍
|
||||
FunctionDeclaration = 197,␍
|
||||
>FunctionDeclaration : SyntaxKind
|
||||
|
||||
ClassDeclaration = 196,␍
|
||||
ClassDeclaration = 198,␍
|
||||
>ClassDeclaration : SyntaxKind
|
||||
|
||||
InterfaceDeclaration = 197,␍
|
||||
InterfaceDeclaration = 199,␍
|
||||
>InterfaceDeclaration : SyntaxKind
|
||||
|
||||
TypeAliasDeclaration = 198,␍
|
||||
TypeAliasDeclaration = 200,␍
|
||||
>TypeAliasDeclaration : SyntaxKind
|
||||
|
||||
EnumDeclaration = 199,␍
|
||||
EnumDeclaration = 201,␍
|
||||
>EnumDeclaration : SyntaxKind
|
||||
|
||||
ModuleDeclaration = 200,␍
|
||||
ModuleDeclaration = 202,␍
|
||||
>ModuleDeclaration : SyntaxKind
|
||||
|
||||
ModuleBlock = 201,␍
|
||||
ModuleBlock = 203,␍
|
||||
>ModuleBlock : SyntaxKind
|
||||
|
||||
CaseBlock = 202,␍
|
||||
CaseBlock = 204,␍
|
||||
>CaseBlock : SyntaxKind
|
||||
|
||||
ImportEqualsDeclaration = 203,␍
|
||||
ImportEqualsDeclaration = 205,␍
|
||||
>ImportEqualsDeclaration : SyntaxKind
|
||||
|
||||
ImportDeclaration = 204,␍
|
||||
ImportDeclaration = 206,␍
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 205,␍
|
||||
ImportClause = 207,␍
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 206,␍
|
||||
NamespaceImport = 208,␍
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
NamedImports = 207,␍
|
||||
NamedImports = 209,␍
|
||||
>NamedImports : SyntaxKind
|
||||
|
||||
ImportSpecifier = 208,␍
|
||||
ImportSpecifier = 210,␍
|
||||
>ImportSpecifier : SyntaxKind
|
||||
|
||||
ExportAssignment = 209,␍
|
||||
ExportAssignment = 211,␍
|
||||
>ExportAssignment : SyntaxKind
|
||||
|
||||
ExportDeclaration = 210,␍
|
||||
ExportDeclaration = 212,␍
|
||||
>ExportDeclaration : SyntaxKind
|
||||
|
||||
NamedExports = 211,␍
|
||||
NamedExports = 213,␍
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
ExportSpecifier = 212,␍
|
||||
ExportSpecifier = 214,␍
|
||||
>ExportSpecifier : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 213,␍
|
||||
MissingDeclaration = 215,␍
|
||||
>MissingDeclaration : SyntaxKind
|
||||
|
||||
ExternalModuleReference = 216,␍
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 214,␍
|
||||
CaseClause = 217,␍
|
||||
>CaseClause : SyntaxKind
|
||||
|
||||
DefaultClause = 215,␍
|
||||
DefaultClause = 218,␍
|
||||
>DefaultClause : SyntaxKind
|
||||
|
||||
HeritageClause = 216,␍
|
||||
HeritageClause = 219,␍
|
||||
>HeritageClause : SyntaxKind
|
||||
|
||||
CatchClause = 217,␍
|
||||
CatchClause = 220,␍
|
||||
>CatchClause : SyntaxKind
|
||||
|
||||
PropertyAssignment = 218,␍
|
||||
PropertyAssignment = 221,␍
|
||||
>PropertyAssignment : SyntaxKind
|
||||
|
||||
ShorthandPropertyAssignment = 219,␍
|
||||
ShorthandPropertyAssignment = 222,␍
|
||||
>ShorthandPropertyAssignment : SyntaxKind
|
||||
|
||||
EnumMember = 220,␍
|
||||
EnumMember = 223,␍
|
||||
>EnumMember : SyntaxKind
|
||||
|
||||
SourceFile = 221,␍
|
||||
SourceFile = 224,␍
|
||||
>SourceFile : SyntaxKind
|
||||
|
||||
SyntaxList = 222,␍
|
||||
SyntaxList = 225,␍
|
||||
>SyntaxList : SyntaxKind
|
||||
|
||||
Count = 223,␍
|
||||
Count = 226,␍
|
||||
>Count : SyntaxKind
|
||||
|
||||
FirstAssignment = 52,␍
|
||||
FirstAssignment = 53,␍
|
||||
>FirstAssignment : SyntaxKind
|
||||
|
||||
LastAssignment = 63,␍
|
||||
LastAssignment = 64,␍
|
||||
>LastAssignment : SyntaxKind
|
||||
|
||||
FirstReservedWord = 65,␍
|
||||
FirstReservedWord = 66,␍
|
||||
>FirstReservedWord : SyntaxKind
|
||||
|
||||
LastReservedWord = 100,␍
|
||||
LastReservedWord = 101,␍
|
||||
>LastReservedWord : SyntaxKind
|
||||
|
||||
FirstKeyword = 65,␍
|
||||
FirstKeyword = 66,␍
|
||||
>FirstKeyword : SyntaxKind
|
||||
|
||||
LastKeyword = 124,␍
|
||||
LastKeyword = 125,␍
|
||||
>LastKeyword : SyntaxKind
|
||||
|
||||
FirstFutureReservedWord = 102,␍
|
||||
FirstFutureReservedWord = 103,␍
|
||||
>FirstFutureReservedWord : SyntaxKind
|
||||
|
||||
LastFutureReservedWord = 110,␍
|
||||
LastFutureReservedWord = 111,␍
|
||||
>LastFutureReservedWord : SyntaxKind
|
||||
|
||||
FirstTypeNode = 139,␍
|
||||
FirstTypeNode = 141,␍
|
||||
>FirstTypeNode : SyntaxKind
|
||||
|
||||
LastTypeNode = 147,␍
|
||||
LastTypeNode = 149,␍
|
||||
>LastTypeNode : SyntaxKind
|
||||
|
||||
FirstPunctuation = 14,␍
|
||||
>FirstPunctuation : SyntaxKind
|
||||
|
||||
LastPunctuation = 63,␍
|
||||
LastPunctuation = 64,␍
|
||||
>LastPunctuation : SyntaxKind
|
||||
|
||||
FirstToken = 0,␍
|
||||
>FirstToken : SyntaxKind
|
||||
|
||||
LastToken = 124,␍
|
||||
LastToken = 125,␍
|
||||
>LastToken : SyntaxKind
|
||||
|
||||
FirstTriviaToken = 2,␍
|
||||
@@ -1199,10 +1208,10 @@ declare module "typescript" {
|
||||
FirstBinaryOperator = 24,␍
|
||||
>FirstBinaryOperator : SyntaxKind
|
||||
|
||||
LastBinaryOperator = 63,␍
|
||||
LastBinaryOperator = 64,␍
|
||||
>LastBinaryOperator : SyntaxKind
|
||||
|
||||
FirstNode = 125,␍
|
||||
FirstNode = 126,␍
|
||||
>FirstNode : SyntaxKind
|
||||
}␍
|
||||
const enum NodeFlags {␍
|
||||
@@ -1247,6 +1256,9 @@ declare module "typescript" {
|
||||
OctalLiteral = 16384,␍
|
||||
>OctalLiteral : NodeFlags
|
||||
|
||||
ExportContext = 32768,␍
|
||||
>ExportContext : NodeFlags
|
||||
|
||||
Modifier = 499,␍
|
||||
>Modifier : NodeFlags
|
||||
|
||||
@@ -1271,16 +1283,19 @@ declare module "typescript" {
|
||||
GeneratorParameter = 8,␍
|
||||
>GeneratorParameter : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 16,␍
|
||||
Decorator = 16,␍
|
||||
>Decorator : ParserContextFlags
|
||||
|
||||
ThisNodeHasError = 32,␍
|
||||
>ThisNodeHasError : ParserContextFlags
|
||||
|
||||
ParserGeneratedFlags = 31,␍
|
||||
ParserGeneratedFlags = 63,␍
|
||||
>ParserGeneratedFlags : ParserContextFlags
|
||||
|
||||
ThisNodeOrAnySubNodesHasError = 32,␍
|
||||
ThisNodeOrAnySubNodesHasError = 64,␍
|
||||
>ThisNodeOrAnySubNodesHasError : ParserContextFlags
|
||||
|
||||
HasAggregatedChildData = 64,␍
|
||||
HasAggregatedChildData = 128,␍
|
||||
>HasAggregatedChildData : ParserContextFlags
|
||||
}␍
|
||||
const enum RelationComparisonResult {␍
|
||||
@@ -1311,6 +1326,11 @@ declare module "typescript" {
|
||||
>parserContextFlags : ParserContextFlags
|
||||
>ParserContextFlags : ParserContextFlags
|
||||
|
||||
decorators?: NodeArray<Decorator>;␍
|
||||
>decorators : NodeArray<Decorator>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Decorator : Decorator
|
||||
|
||||
modifiers?: ModifiersArray;␍
|
||||
>modifiers : ModifiersArray
|
||||
>ModifiersArray : ModifiersArray
|
||||
@@ -1405,6 +1425,14 @@ declare module "typescript" {
|
||||
expression: Expression;␍
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}␍
|
||||
interface Decorator extends Node {␍
|
||||
>Decorator : Decorator
|
||||
>Node : Node
|
||||
|
||||
expression: LeftHandSideExpression;␍
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
}␍
|
||||
interface TypeParameterDeclaration extends Declaration {␍
|
||||
>TypeParameterDeclaration : TypeParameterDeclaration
|
||||
@@ -3284,16 +3312,17 @@ declare module "typescript" {
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
hasExportDefaultValue(node: SourceFile): boolean;␍
|
||||
>hasExportDefaultValue : (node: SourceFile) => boolean
|
||||
>node : SourceFile
|
||||
>SourceFile : SourceFile
|
||||
|
||||
isReferencedAliasDeclaration(node: Node): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node) => boolean
|
||||
isValueAliasDeclaration(node: Node): boolean;␍
|
||||
>isValueAliasDeclaration : (node: Node) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
|
||||
isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean;␍
|
||||
>isReferencedAliasDeclaration : (node: Node, checkChildren?: boolean) => boolean
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>checkChildren : boolean
|
||||
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;␍
|
||||
>isTopLevelValueImportEqualsWithEntityName : (node: ImportEqualsDeclaration) => boolean
|
||||
>node : ImportEqualsDeclaration
|
||||
@@ -3703,6 +3732,9 @@ declare module "typescript" {
|
||||
|
||||
BlockScopedBindingInLoop = 256,␍
|
||||
>BlockScopedBindingInLoop : NodeCheckFlags
|
||||
|
||||
EmitDecorate = 512,␍
|
||||
>EmitDecorate : NodeCheckFlags
|
||||
}␍
|
||||
interface NodeLinks {␍
|
||||
>NodeLinks : NodeLinks
|
||||
|
||||
@@ -11,23 +11,23 @@ var c = new A();
|
||||
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
module C {
|
||||
>C : typeof X
|
||||
>C : typeof C
|
||||
|
||||
export var f: number;
|
||||
>f : number
|
||||
}
|
||||
class C {
|
||||
>C : X
|
||||
>C : C
|
||||
|
||||
foo(): void;
|
||||
>foo : () => void
|
||||
}
|
||||
import X = C;
|
||||
>X : typeof X
|
||||
>C : X
|
||||
>X : typeof C
|
||||
>C : C
|
||||
|
||||
export = X;
|
||||
>X : X
|
||||
>X : C
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@ var C = (function () {
|
||||
_a)[0]] = function () {
|
||||
};
|
||||
return C;
|
||||
var _a;
|
||||
})();
|
||||
var _a;
|
||||
|
||||
@@ -35,5 +35,5 @@ var C = (function (_super) {
|
||||
_a)[0]] = function () {
|
||||
};
|
||||
return C;
|
||||
var _a;
|
||||
})(Base);
|
||||
var _a;
|
||||
|
||||
@@ -42,23 +42,23 @@ module m2 {
|
||||
|
||||
}
|
||||
var m2: {
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
(): m2.connectExport;
|
||||
>m2 : unknown
|
||||
>connectExport : default.connectExport
|
||||
>connectExport : export=.connectExport
|
||||
|
||||
test1: m2.connectModule;
|
||||
>test1 : default.connectModule
|
||||
>test1 : export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
test2(): m2.connectModule;
|
||||
>test2 : () => default.connectModule
|
||||
>test2 : () => export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
};
|
||||
export = m2;
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ export default class {
|
||||
}
|
||||
|
||||
//// [declarationEmitDefaultExport2.js]
|
||||
export default class {
|
||||
export default class {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ declare module "express" {
|
||||
function express(): express.ExpressServer;
|
||||
>express : typeof express
|
||||
>express : unknown
|
||||
>ExpressServer : default.ExpressServer
|
||||
>ExpressServer : export=.ExpressServer
|
||||
|
||||
module express {
|
||||
>express : typeof express
|
||||
|
||||
@@ -27,24 +27,24 @@ module m2 {
|
||||
}
|
||||
|
||||
var m2: {
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
(): m2.connectExport;
|
||||
>m2 : unknown
|
||||
>connectExport : default.connectExport
|
||||
>connectExport : export=.connectExport
|
||||
|
||||
test1: m2.connectModule;
|
||||
>test1 : default.connectModule
|
||||
>test1 : export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
test2(): m2.connectModule;
|
||||
>test2 : () => default.connectModule
|
||||
>test2 : () => export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
};
|
||||
|
||||
export = m2;
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
|
||||
+7
-7
@@ -28,24 +28,24 @@ module m2 {
|
||||
|
||||
var x = 10, m2: {
|
||||
>x : number
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
(): m2.connectExport;
|
||||
>m2 : unknown
|
||||
>connectExport : default.connectExport
|
||||
>connectExport : export=.connectExport
|
||||
|
||||
test1: m2.connectModule;
|
||||
>test1 : default.connectModule
|
||||
>test1 : export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
test2(): m2.connectModule;
|
||||
>test2 : () => default.connectModule
|
||||
>test2 : () => export=.connectModule
|
||||
>m2 : unknown
|
||||
>connectModule : default.connectModule
|
||||
>connectModule : export=.connectModule
|
||||
|
||||
};
|
||||
|
||||
export = m2;
|
||||
>m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
|
||||
>m2 : { (): export=.connectExport; test1: export=.connectModule; test2(): export=.connectModule; }
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnArrowFunction.ts(3,9): error TS1109: Expression expected.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnArrowFunction.ts(3,16): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnArrowFunction.ts(3,17): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnArrowFunction.ts (3 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec () => {
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//// [decoratorOnArrowFunction.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec () => {
|
||||
}
|
||||
|
||||
//// [decoratorOnArrowFunction.js]
|
||||
var F = ;
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClass1.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec], C);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,14 @@
|
||||
=== tests/cases/conformance/decorators/class/decoratorOnClass1.ts ===
|
||||
declare function dec<T>(target: T): T;
|
||||
>dec : <T>(target: T) => T
|
||||
>T : T
|
||||
>target : T
|
||||
>T : T
|
||||
>T : T
|
||||
|
||||
@dec
|
||||
>dec : unknown
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
//// [decoratorOnClass2.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
export class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass2.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec], C);
|
||||
return C;
|
||||
})();
|
||||
exports.C = C;
|
||||
@@ -0,0 +1,14 @@
|
||||
=== tests/cases/conformance/decorators/class/decoratorOnClass2.ts ===
|
||||
declare function dec<T>(target: T): T;
|
||||
>dec : <T>(target: T) => T
|
||||
>T : T
|
||||
>target : T
|
||||
>T : T
|
||||
>T : T
|
||||
|
||||
@dec
|
||||
>dec : unknown
|
||||
|
||||
export class C {
|
||||
>C : C
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
tests/cases/conformance/decorators/class/decoratorOnClass3.ts(3,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/decoratorOnClass3.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
export
|
||||
~~~~~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@dec
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
//// [decoratorOnClass3.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
export
|
||||
@dec
|
||||
class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass3.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec], C);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClass4.ts]
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass4.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec()], C);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,15 @@
|
||||
=== tests/cases/conformance/decorators/class/decoratorOnClass4.ts ===
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
>dec : () => <T>(target: T) => T
|
||||
>T : T
|
||||
>target : T
|
||||
>T : T
|
||||
>T : T
|
||||
|
||||
@dec()
|
||||
>dec() : <T>(target: T) => T
|
||||
>dec : () => <T>(target: T) => T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClass5.ts]
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass5.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec()], C);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,15 @@
|
||||
=== tests/cases/conformance/decorators/class/decoratorOnClass5.ts ===
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
>dec : () => <T>(target: T) => T
|
||||
>T : T
|
||||
>target : T
|
||||
>T : T
|
||||
>T : T
|
||||
|
||||
@dec()
|
||||
>dec() : <T>(target: T) => T
|
||||
>dec : () => <T>(target: T) => T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/class/decoratorOnClass8.ts(3,1): error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: typeof C) => void | typeof C'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/decoratorOnClass8.ts (1 errors) ====
|
||||
declare function dec(): (target: Function, paramIndex: number) => void;
|
||||
|
||||
@dec()
|
||||
~~~~~~
|
||||
!!! error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: typeof C) => void | typeof C'.
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClass8.ts]
|
||||
declare function dec(): (target: Function, paramIndex: number) => void;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
|
||||
//// [decoratorOnClass8.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C = __decorate([dec()], C);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,34 @@
|
||||
//// [decoratorOnClassAccessor1.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec get accessor() { return 1; }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
Object.defineProperty(C.prototype, "accessor", {
|
||||
get: function () {
|
||||
return 1;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,19 @@
|
||||
=== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec get accessor() { return 1; }
|
||||
>dec : unknown
|
||||
>accessor : number
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
//// [decoratorOnClassAccessor2.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public get accessor() { return 1; }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor2.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
Object.defineProperty(C.prototype, "accessor", {
|
||||
get: function () {
|
||||
return 1;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,19 @@
|
||||
=== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec public get accessor() { return 1; }
|
||||
>dec : unknown
|
||||
>accessor : number
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,5): error TS2304: Cannot find name 'public'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,12): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,16): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,17): error TS2304: Cannot find name 'get'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,21): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,21): error TS2304: Cannot find name 'accessor'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,32): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(5,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts (9 errors) ====
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec get accessor() { return 1; }
|
||||
~~~~~~
|
||||
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'public'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~~~
|
||||
!!! error TS2304: Cannot find name 'get'.
|
||||
~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'accessor'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
}
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@@ -0,0 +1,19 @@
|
||||
//// [decoratorOnClassAccessor3.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec get accessor() { return 1; }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor3.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
public;
|
||||
get;
|
||||
accessor();
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
//// [decoratorOnClassAccessor4.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec set accessor(value: number) { }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor4.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
Object.defineProperty(C.prototype, "accessor", {
|
||||
set: function (value) {
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,20 @@
|
||||
=== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec set accessor(value: number) { }
|
||||
>dec : unknown
|
||||
>accessor : number
|
||||
>value : number
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
//// [decoratorOnClassAccessor5.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public set accessor(value: number) { }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor5.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
Object.defineProperty(C.prototype, "accessor", {
|
||||
set: function (value) {
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,20 @@
|
||||
=== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec public set accessor(value: number) { }
|
||||
>dec : unknown
|
||||
>accessor : number
|
||||
>value : number
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,5): error TS2304: Cannot find name 'public'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,12): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,16): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,17): error TS2304: Cannot find name 'set'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,21): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,21): error TS2304: Cannot find name 'accessor'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,30): error TS2304: Cannot find name 'value'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,35): error TS1005: ',' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,37): error TS2304: Cannot find name 'number'.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,45): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(5,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts (12 errors) ====
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec set accessor(value: number) { }
|
||||
~~~~~~
|
||||
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'public'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~~~
|
||||
!!! error TS2304: Cannot find name 'set'.
|
||||
~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'accessor'.
|
||||
~~~~~
|
||||
!!! error TS2304: Cannot find name 'value'.
|
||||
~
|
||||
!!! error TS1005: ',' expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'number'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
}
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@@ -0,0 +1,18 @@
|
||||
//// [decoratorOnClassAccessor6.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec set accessor(value: number) { }
|
||||
}
|
||||
|
||||
//// [decoratorOnClassAccessor6.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
public;
|
||||
set;
|
||||
accessor(value, number);
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts (1 errors) ====
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec constructor() {}
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
//// [decoratorOnClassConstructor1.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec constructor() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassConstructor1.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassConstructorParameter1.ts]
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
constructor(@dec p: number) {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassConstructorParameter1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C(p) {
|
||||
}
|
||||
__decorate([dec], C, void 0, 0);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,15 @@
|
||||
=== tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts ===
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void
|
||||
>target : Function
|
||||
>Function : Function
|
||||
>propertyKey : string | symbol
|
||||
>parameterIndex : number
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
constructor(@dec p: number) {}
|
||||
>dec : unknown
|
||||
>p : number
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts(4,24): error TS1005: ',' expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts (1 errors) ====
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
constructor(public @dec p: number) {}
|
||||
~
|
||||
!!! error TS1005: ',' expected.
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassConstructorParameter4.ts]
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
constructor(public @dec p: number) {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassConstructorParameter4.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C(public, p) {
|
||||
}
|
||||
__decorate([dec], C, void 0, 1);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [decoratorOnClassMethod1.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.method = function () {
|
||||
};
|
||||
Object.defineProperty(C.prototype, "method", __decorate([dec], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,19 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec method() {}
|
||||
>dec : unknown
|
||||
>method : () => void
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts(4,5): error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<() => void>) => void | TypedPropertyDescriptor<() => void>'.
|
||||
Types of parameters 'paramIndex' and 'propertyKey' are incompatible.
|
||||
Type 'number' is not assignable to type 'string | symbol'.
|
||||
Type 'number' is not assignable to type 'symbol'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts (1 errors) ====
|
||||
declare function dec(target: Function, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
~~~~
|
||||
!!! error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<() => void>) => void | TypedPropertyDescriptor<() => void>'.
|
||||
!!! error TS2322: Types of parameters 'paramIndex' and 'propertyKey' are incompatible.
|
||||
!!! error TS2322: Type 'number' is not assignable to type 'string | symbol'.
|
||||
!!! error TS2322: Type 'number' is not assignable to type 'symbol'.
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [decoratorOnClassMethod10.ts]
|
||||
declare function dec(target: Function, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod10.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.method = function () {
|
||||
};
|
||||
Object.defineProperty(C.prototype, "method", __decorate([dec], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [decoratorOnClassMethod2.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public method() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod2.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.method = function () {
|
||||
};
|
||||
Object.defineProperty(C.prototype, "method", __decorate([dec], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,19 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec public method() {}
|
||||
>dec : unknown
|
||||
>method : () => void
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,5): error TS2304: Cannot find name 'public'.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,12): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,16): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,17): error TS2304: Cannot find name 'method'.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,26): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(5,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts (7 errors) ====
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec method() {}
|
||||
~~~~~~
|
||||
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'public'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'method'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
}
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@@ -0,0 +1,17 @@
|
||||
//// [decoratorOnClassMethod3.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec method() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod3.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
public;
|
||||
method();
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassMethod4.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec ["method"]() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod4.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
class C {
|
||||
[_a = "method"]() {
|
||||
}
|
||||
}
|
||||
Object.defineProperty(C.prototype, _a, __decorate([dec], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a)));
|
||||
var _a;
|
||||
@@ -0,0 +1,18 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod4.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec ["method"]() {}
|
||||
>dec : unknown
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassMethod5.ts]
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec() ["method"]() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod5.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
class C {
|
||||
[_a = "method"]() {
|
||||
}
|
||||
}
|
||||
Object.defineProperty(C.prototype, _a, __decorate([dec()], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a)));
|
||||
var _a;
|
||||
@@ -0,0 +1,19 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod5.ts ===
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec() ["method"]() {}
|
||||
>dec() : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassMethod6.ts]
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec ["method"]() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod6.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
class C {
|
||||
[_a = "method"]() {
|
||||
}
|
||||
}
|
||||
Object.defineProperty(C.prototype, _a, __decorate([dec], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a)));
|
||||
var _a;
|
||||
@@ -0,0 +1,18 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts ===
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec ["method"]() {}
|
||||
>dec : unknown
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassMethod7.ts]
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public ["method"]() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod7.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
class C {
|
||||
[_a = "method"]() {
|
||||
}
|
||||
}
|
||||
Object.defineProperty(C.prototype, _a, __decorate([dec], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a)));
|
||||
var _a;
|
||||
@@ -0,0 +1,18 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod7.ts ===
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
>descriptor : TypedPropertyDescriptor<T>
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec public ["method"]() {}
|
||||
>dec : unknown
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [decoratorOnClassMethod8.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethod8.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.method = function () {
|
||||
};
|
||||
Object.defineProperty(C.prototype, "method", __decorate([dec], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,15 @@
|
||||
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts ===
|
||||
declare function dec<T>(target: T): T;
|
||||
>dec : <T>(target: T) => T
|
||||
>T : T
|
||||
>target : T
|
||||
>T : T
|
||||
>T : T
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec method() {}
|
||||
>dec : unknown
|
||||
>method : () => void
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [decoratorOnClassMethodParameter1.ts]
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
method(@dec p: number) {}
|
||||
}
|
||||
|
||||
//// [decoratorOnClassMethodParameter1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.method = function (p) {
|
||||
};
|
||||
__decorate([dec], C.prototype, "method", 0);
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,16 @@
|
||||
=== tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts ===
|
||||
declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void;
|
||||
>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void
|
||||
>target : Function
|
||||
>Function : Function
|
||||
>propertyKey : string | symbol
|
||||
>parameterIndex : number
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
method(@dec p: number) {}
|
||||
>method : (p: number) => void
|
||||
>dec : unknown
|
||||
>p : number
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty1.ts]
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty1.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,13 @@
|
||||
=== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts ===
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
>dec : (target: any, propertyKey: string) => void
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec prop;
|
||||
>dec : unknown
|
||||
>prop : any
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty10.ts]
|
||||
declare function dec(): <T>(target: any, propertyKey: string) => void;
|
||||
|
||||
class C {
|
||||
@dec() prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty10.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec()], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,15 @@
|
||||
=== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts ===
|
||||
declare function dec(): <T>(target: any, propertyKey: string) => void;
|
||||
>dec : () => <T>(target: any, propertyKey: string) => void
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec() prop;
|
||||
>dec() : <T>(target: any, propertyKey: string) => void
|
||||
>dec : () => <T>(target: any, propertyKey: string) => void
|
||||
>prop : any
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty11.ts]
|
||||
declare function dec(): <T>(target: any, propertyKey: string) => void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty11.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,14 @@
|
||||
=== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts ===
|
||||
declare function dec(): <T>(target: any, propertyKey: string) => void;
|
||||
>dec : () => <T>(target: any, propertyKey: string) => void
|
||||
>T : T
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec prop;
|
||||
>dec : unknown
|
||||
>prop : any
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty2.ts]
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
|
||||
class C {
|
||||
@dec public prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty2.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,13 @@
|
||||
=== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts ===
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
>dec : (target: any, propertyKey: string) => void
|
||||
>target : any
|
||||
>propertyKey : string
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec public prop;
|
||||
>dec : unknown
|
||||
>prop : any
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,5): error TS2304: Cannot find name 'public'.
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,12): error TS1005: ';' expected.
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,16): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,17): error TS2304: Cannot find name 'prop'.
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(5,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts (6 errors) ====
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
|
||||
class C {
|
||||
public @dec prop;
|
||||
~~~~~~
|
||||
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'public'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'prop'.
|
||||
}
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@@ -0,0 +1,15 @@
|
||||
//// [decoratorOnClassProperty3.ts]
|
||||
declare function dec(target: any, propertyKey: string): void;
|
||||
|
||||
class C {
|
||||
public @dec prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty3.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
public;
|
||||
prop;
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty6.ts]
|
||||
declare function dec(target: Function): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty6.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,13 @@
|
||||
=== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts ===
|
||||
declare function dec(target: Function): void;
|
||||
>dec : (target: Function) => void
|
||||
>target : Function
|
||||
>Function : Function
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
@dec prop;
|
||||
>dec : unknown
|
||||
>prop : any
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts(4,5): error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts (1 errors) ====
|
||||
declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
~~~~
|
||||
!!! error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//// [decoratorOnClassProperty7.ts]
|
||||
declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
|
||||
//// [decoratorOnClassProperty7.js]
|
||||
var __decorate = this.__decorate || function (decorators, target, key, value) {
|
||||
var kind = typeof (arguments.length == 2 ? value = target : value);
|
||||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||||
var decorator = decorators[i];
|
||||
switch (kind) {
|
||||
case "function": value = decorator(value) || value; break;
|
||||
case "number": decorator(target, key, value); break;
|
||||
case "undefined": decorator(target, key); break;
|
||||
case "object": value = decorator(target, key, value) || value; break;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
__decorate([dec], C.prototype, "prop");
|
||||
return C;
|
||||
})();
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts(4,6): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
enum E {
|
||||
~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//// [decoratorOnEnum.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
enum E {
|
||||
}
|
||||
|
||||
//// [decoratorOnEnum.js]
|
||||
var E;
|
||||
(function (E) {
|
||||
})(E || (E = {}));
|
||||
@@ -0,0 +1,20 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts(4,5): error TS1132: Enum member expected.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts(4,9): error TS1146: Declaration expected.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts(4,10): error TS2304: Cannot find name 'A'.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts(5,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts (4 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
enum E {
|
||||
@dec A
|
||||
~
|
||||
!!! error TS1132: Enum member expected.
|
||||
|
||||
!!! error TS1146: Declaration expected.
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'A'.
|
||||
}
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
@@ -0,0 +1,12 @@
|
||||
//// [decoratorOnEnum2.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
enum E {
|
||||
@dec A
|
||||
}
|
||||
|
||||
//// [decoratorOnEnum2.js]
|
||||
var E;
|
||||
(function (E) {
|
||||
})(E || (E = {}));
|
||||
A;
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts(4,10): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
function F() {
|
||||
~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//// [decoratorOnFunctionDeclaration.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
function F() {
|
||||
}
|
||||
|
||||
//// [decoratorOnFunctionDeclaration.js]
|
||||
function F() {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnFunctionExpression.ts(3,9): error TS1109: Expression expected.
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnFunctionExpression.ts(3,23): error TS1003: Identifier expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnFunctionExpression.ts (2 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec function () {
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
~
|
||||
!!! error TS1003: Identifier expected.
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//// [decoratorOnFunctionExpression.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec function () {
|
||||
}
|
||||
|
||||
//// [decoratorOnFunctionExpression.js]
|
||||
var F = ;
|
||||
function () {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts(8,5): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
module M1 {
|
||||
export var X: number;
|
||||
}
|
||||
|
||||
module M2 {
|
||||
@dec
|
||||
~~~~
|
||||
import X = M1.X;
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//// [decoratorOnImportEquals1.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
module M1 {
|
||||
export var X: number;
|
||||
}
|
||||
|
||||
module M2 {
|
||||
@dec
|
||||
import X = M1.X;
|
||||
}
|
||||
|
||||
//// [decoratorOnImportEquals1.js]
|
||||
var M1;
|
||||
(function (M1) {
|
||||
M1.X;
|
||||
})(M1 || (M1 = {}));
|
||||
@@ -0,0 +1,14 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts(1,1): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts (1 errors) ====
|
||||
@dec
|
||||
~~~~
|
||||
import lib = require('./decoratorOnImportEquals2_0');
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
|
||||
declare function dec<T>(target: T): T;
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_0.ts (0 errors) ====
|
||||
export var X;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//// [tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts] ////
|
||||
|
||||
//// [decoratorOnImportEquals2_0.ts]
|
||||
export var X;
|
||||
|
||||
//// [decoratorOnImportEquals2_1.ts]
|
||||
@dec
|
||||
import lib = require('./decoratorOnImportEquals2_0');
|
||||
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
//// [decoratorOnImportEquals2_0.js]
|
||||
exports.X;
|
||||
//// [decoratorOnImportEquals2_1.js]
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts(4,11): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
interface I {
|
||||
~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
//// [decoratorOnInterface.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
interface I {
|
||||
}
|
||||
|
||||
//// [decoratorOnInterface.js]
|
||||
@@ -0,0 +1,12 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts(4,8): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
module M {
|
||||
~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
//// [decoratorOnInternalModule.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
module M {
|
||||
|
||||
}
|
||||
|
||||
//// [decoratorOnInternalModule.js]
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts(3,1): error TS1206: Decorators are not valid here.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts (1 errors) ====
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
~~~~
|
||||
type T = number;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
@@ -0,0 +1,7 @@
|
||||
//// [decoratorOnTypeAlias.ts]
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
type T = number;
|
||||
|
||||
//// [decoratorOnTypeAlias.js]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user