mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-27 04:32:44 -05:00
Merge branch 'master' into sideEffects
Conflicts: tests/baselines/reference/recursiveClassReferenceTest.js.map
This commit is contained in:
@@ -160,132 +160,142 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
SymbolKeyword = 120,
|
||||
TypeKeyword = 121,
|
||||
OfKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ForOfStatement = 181,
|
||||
ContinueStatement = 182,
|
||||
BreakStatement = 183,
|
||||
ReturnStatement = 184,
|
||||
WithStatement = 185,
|
||||
SwitchStatement = 186,
|
||||
LabeledStatement = 187,
|
||||
ThrowStatement = 188,
|
||||
TryStatement = 189,
|
||||
DebuggerStatement = 190,
|
||||
VariableDeclaration = 191,
|
||||
VariableDeclarationList = 192,
|
||||
FunctionDeclaration = 193,
|
||||
ClassDeclaration = 194,
|
||||
InterfaceDeclaration = 195,
|
||||
TypeAliasDeclaration = 196,
|
||||
EnumDeclaration = 197,
|
||||
ModuleDeclaration = 198,
|
||||
ModuleBlock = 199,
|
||||
ImportDeclaration = 200,
|
||||
ExportAssignment = 201,
|
||||
ExternalModuleReference = 202,
|
||||
CaseClause = 203,
|
||||
DefaultClause = 204,
|
||||
HeritageClause = 205,
|
||||
CatchClause = 206,
|
||||
PropertyAssignment = 207,
|
||||
ShorthandPropertyAssignment = 208,
|
||||
EnumMember = 209,
|
||||
SourceFile = 210,
|
||||
SyntaxList = 211,
|
||||
Count = 212,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 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,
|
||||
ImportEqualsDeclaration = 202,
|
||||
ImportDeclaration = 203,
|
||||
ImportClause = 204,
|
||||
NamespaceImport = 205,
|
||||
NamedImports = 206,
|
||||
ImportSpecifier = 207,
|
||||
ExportAssignment = 208,
|
||||
ExportDeclaration = 209,
|
||||
NamedExports = 210,
|
||||
ExportSpecifier = 211,
|
||||
ExternalModuleReference = 212,
|
||||
CaseClause = 213,
|
||||
DefaultClause = 214,
|
||||
HeritageClause = 215,
|
||||
CatchClause = 216,
|
||||
PropertyAssignment = 217,
|
||||
ShorthandPropertyAssignment = 218,
|
||||
EnumMember = 219,
|
||||
SourceFile = 220,
|
||||
SyntaxList = 221,
|
||||
Count = 222,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 122,
|
||||
LastToken = 124,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -294,7 +304,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 123,
|
||||
FirstNode = 125,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -332,13 +342,13 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
symbol?: Symbol;
|
||||
locals?: SymbolTable;
|
||||
nextContainer?: Node;
|
||||
localSymbol?: Symbol;
|
||||
modifiers?: ModifiersArray;
|
||||
}
|
||||
interface NodeArray<T> extends Array<T>, TextRange {
|
||||
hasTrailingComma?: boolean;
|
||||
@@ -702,20 +712,49 @@ declare module "typescript" {
|
||||
name: Identifier;
|
||||
members: NodeArray<EnumMember>;
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement {
|
||||
interface ExportContainer {
|
||||
exportStars?: ExportDeclaration[];
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
|
||||
name: Identifier | LiteralExpression;
|
||||
body: ModuleBlock | ModuleDeclaration;
|
||||
}
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportDeclaration extends Statement, ModuleElement {
|
||||
exportClause?: NamedExports;
|
||||
moduleSpecifier?: Expression;
|
||||
}
|
||||
interface NamedImportsOrExports extends Node {
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
}
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
interface ImportOrExportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
type ImportSpecifier = ImportOrExportSpecifier;
|
||||
type ExportSpecifier = ImportOrExportSpecifier;
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -725,7 +764,7 @@ declare module "typescript" {
|
||||
interface CommentRange extends TextRange {
|
||||
hasTrailingNewLine?: boolean;
|
||||
}
|
||||
interface SourceFile extends Declaration {
|
||||
interface SourceFile extends Declaration, ExportContainer {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
endOfFileToken: Node;
|
||||
fileName: string;
|
||||
@@ -879,7 +918,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -887,11 +926,11 @@ declare module "typescript" {
|
||||
errorModuleName?: string;
|
||||
}
|
||||
interface EmitResolver {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
|
||||
getExpressionNameSubstitution(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
@@ -986,8 +1025,10 @@ declare module "typescript" {
|
||||
declaredType?: Type;
|
||||
mapper?: TypeMapper;
|
||||
referenced?: boolean;
|
||||
exportAssignSymbol?: Symbol;
|
||||
exportAssignmentChecked?: boolean;
|
||||
exportAssignmentSymbol?: Symbol;
|
||||
unionType?: UnionType;
|
||||
resolvedExports?: SymbolTable;
|
||||
}
|
||||
interface TransientSymbol extends Symbol, SymbolLinks {
|
||||
}
|
||||
@@ -1012,7 +1053,8 @@ declare module "typescript" {
|
||||
enumMemberValue?: number;
|
||||
isIllegalTypeReferenceInConstraint?: boolean;
|
||||
isVisible?: boolean;
|
||||
localModuleName?: string;
|
||||
generatedName?: string;
|
||||
generatedNames?: Map<string>;
|
||||
assignmentChecks?: Map<boolean>;
|
||||
hasReportedStatementInAmbientContext?: boolean;
|
||||
importOnRightSide?: Symbol;
|
||||
|
||||
@@ -498,340 +498,370 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
SymbolKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 122,
|
||||
|
||||
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
TypeKeyword = 123,
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
|
||||
OfKeyword = 124,
|
||||
|
||||
QualifiedName = 123,
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,
|
||||
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
ComputedPropertyName = 126,
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
|
||||
TypeParameter = 127,
|
||||
|
||||
Parameter = 126,
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,
|
||||
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
PropertySignature = 129,
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
|
||||
PropertyDeclaration = 130,
|
||||
|
||||
MethodSignature = 129,
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,
|
||||
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
MethodDeclaration = 132,
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
|
||||
Constructor = 133,
|
||||
|
||||
GetAccessor = 132,
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,
|
||||
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
SetAccessor = 135,
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
|
||||
CallSignature = 136,
|
||||
|
||||
ConstructSignature = 135,
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,
|
||||
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
IndexSignature = 138,
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
|
||||
TypeReference = 139,
|
||||
|
||||
FunctionType = 138,
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,
|
||||
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
ConstructorType = 141,
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
|
||||
TypeQuery = 142,
|
||||
|
||||
TypeLiteral = 141,
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,
|
||||
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
ArrayType = 144,
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
|
||||
TupleType = 145,
|
||||
|
||||
UnionType = 144,
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 147,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
ElementAccessExpression = 154,
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,
|
||||
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
NewExpression = 156,
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
|
||||
TaggedTemplateExpression = 157,
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,
|
||||
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
ParenthesizedExpression = 159,
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
|
||||
FunctionExpression = 160,
|
||||
|
||||
CallExpression = 153,
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,
|
||||
|
||||
@@ -849,19 +879,19 @@ declare module "typescript" {
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
PrefixUnaryExpression = 165,
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
|
||||
PostfixUnaryExpression = 166,
|
||||
|
||||
ArrowFunction = 159,
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,
|
||||
|
||||
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
ConditionalExpression = 168,
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
@@ -873,7 +903,7 @@ declare module "typescript" {
|
||||
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
SpreadElementExpression = 171,
|
||||
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
@@ -900,7 +930,7 @@ declare module "typescript" {
|
||||
ExpressionStatement = 177,
|
||||
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
|
||||
IfStatement = 178,
|
||||
|
||||
>IfStatement : SyntaxKind
|
||||
@@ -1006,6 +1036,10 @@ declare module "typescript" {
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 204,
|
||||
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 205,
|
||||
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
@@ -1028,10 +1062,6 @@ declare module "typescript" {
|
||||
NamedExports = 210,
|
||||
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 203,
|
||||
|
||||
ExportSpecifier = 211,
|
||||
|
||||
@@ -2130,10 +2160,18 @@ declare module "typescript" {
|
||||
name?: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
|
||||
>Identifier : Identifier
|
||||
|
||||
body: Block | Expression;
|
||||
|
||||
>body : Expression | Block
|
||||
>Block : Block
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface LiteralExpression extends PrimaryExpression {
|
||||
|
||||
>LiteralExpression : LiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
text: string;
|
||||
@@ -2155,8 +2193,8 @@ declare module "typescript" {
|
||||
>_stringLiteralExpressionBrand : any
|
||||
}
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
interface TemplateExpression extends PrimaryExpression {
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
@@ -2177,6 +2215,90 @@ declare module "typescript" {
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||
|
||||
>ObjectLiteralExpression : ObjectLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
>Declaration : Declaration
|
||||
|
||||
properties: NodeArray<ObjectLiteralElement>;
|
||||
|
||||
>properties : NodeArray<ObjectLiteralElement>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ObjectLiteralElement : ObjectLiteralElement
|
||||
}
|
||||
|
||||
interface PropertyAccessExpression extends MemberExpression {
|
||||
|
||||
>PropertyAccessExpression : PropertyAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
name: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
}
|
||||
|
||||
interface ElementAccessExpression extends MemberExpression {
|
||||
|
||||
>ElementAccessExpression : ElementAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
argumentExpression?: Expression;
|
||||
|
||||
>argumentExpression : Expression
|
||||
@@ -2200,9 +2322,10 @@ declare module "typescript" {
|
||||
>TypeNode : TypeNode
|
||||
|
||||
arguments: NodeArray<Expression>;
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
>arguments : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NewExpression extends CallExpression, PrimaryExpression {
|
||||
@@ -2816,9 +2939,9 @@ declare module "typescript" {
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
|
||||
>namedBindings : NamespaceImport | NamedImportsOrExports
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
>NamespaceImport : NamespaceImport
|
||||
>NamedImports : NamedImportsOrExports
|
||||
}
|
||||
|
||||
interface NamespaceImport extends Declaration {
|
||||
|
||||
@@ -2837,14 +2960,16 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
exportClause?: NamedExports;
|
||||
|
||||
>exportClause : NamedImportsOrExports
|
||||
>NamedExports : NamedImportsOrExports
|
||||
|
||||
moduleSpecifier?: Expression;
|
||||
|
||||
>moduleSpecifier : Expression
|
||||
>EntityName : Identifier | QualifiedName
|
||||
>ExternalModuleReference : ExternalModuleReference
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NamedImportsOrExports extends Node {
|
||||
|
||||
@@ -2853,15 +2978,15 @@ declare module "typescript" {
|
||||
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
>elements : NodeArray<ImportOrExportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportOrExportSpecifier : ImportOrExportSpecifier
|
||||
}
|
||||
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
|
||||
>NamedImports : NamedImportsOrExports
|
||||
>NamedImportsOrExports : NamedImportsOrExports
|
||||
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
|
||||
@@ -3190,13 +3315,20 @@ declare module "typescript" {
|
||||
>DiagnosticsPresent_OutputsGenerated : ExitStatus
|
||||
}
|
||||
|
||||
>SourceFile : SourceFile
|
||||
}
|
||||
interface EmitResult {
|
||||
|
||||
>EmitResult : EmitResult
|
||||
|
||||
emitSkipped: boolean;
|
||||
|
||||
>emitSkipped : boolean
|
||||
|
||||
diagnostics: Diagnostic[];
|
||||
|
||||
>diagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
sourceMaps: SourceMapData[];
|
||||
|
||||
>sourceMaps : SourceMapData[]
|
||||
>SourceMapData : SourceMapData
|
||||
@@ -3265,8 +3397,12 @@ declare module "typescript" {
|
||||
>Type : Type
|
||||
>kind : SignatureKind
|
||||
>SignatureKind : SignatureKind
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>Signature : Signature
|
||||
|
||||
getIndexTypeOfType(type: Type, kind: IndexKind): Type;
|
||||
|
||||
>getIndexTypeOfType : (type: Type, kind: IndexKind) => Type
|
||||
>type : Type
|
||||
>Type : Type
|
||||
>kind : IndexKind
|
||||
>IndexKind : IndexKind
|
||||
|
||||
@@ -191,132 +191,142 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
SymbolKeyword = 120,
|
||||
TypeKeyword = 121,
|
||||
OfKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ForOfStatement = 181,
|
||||
ContinueStatement = 182,
|
||||
BreakStatement = 183,
|
||||
ReturnStatement = 184,
|
||||
WithStatement = 185,
|
||||
SwitchStatement = 186,
|
||||
LabeledStatement = 187,
|
||||
ThrowStatement = 188,
|
||||
TryStatement = 189,
|
||||
DebuggerStatement = 190,
|
||||
VariableDeclaration = 191,
|
||||
VariableDeclarationList = 192,
|
||||
FunctionDeclaration = 193,
|
||||
ClassDeclaration = 194,
|
||||
InterfaceDeclaration = 195,
|
||||
TypeAliasDeclaration = 196,
|
||||
EnumDeclaration = 197,
|
||||
ModuleDeclaration = 198,
|
||||
ModuleBlock = 199,
|
||||
ImportDeclaration = 200,
|
||||
ExportAssignment = 201,
|
||||
ExternalModuleReference = 202,
|
||||
CaseClause = 203,
|
||||
DefaultClause = 204,
|
||||
HeritageClause = 205,
|
||||
CatchClause = 206,
|
||||
PropertyAssignment = 207,
|
||||
ShorthandPropertyAssignment = 208,
|
||||
EnumMember = 209,
|
||||
SourceFile = 210,
|
||||
SyntaxList = 211,
|
||||
Count = 212,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 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,
|
||||
ImportEqualsDeclaration = 202,
|
||||
ImportDeclaration = 203,
|
||||
ImportClause = 204,
|
||||
NamespaceImport = 205,
|
||||
NamedImports = 206,
|
||||
ImportSpecifier = 207,
|
||||
ExportAssignment = 208,
|
||||
ExportDeclaration = 209,
|
||||
NamedExports = 210,
|
||||
ExportSpecifier = 211,
|
||||
ExternalModuleReference = 212,
|
||||
CaseClause = 213,
|
||||
DefaultClause = 214,
|
||||
HeritageClause = 215,
|
||||
CatchClause = 216,
|
||||
PropertyAssignment = 217,
|
||||
ShorthandPropertyAssignment = 218,
|
||||
EnumMember = 219,
|
||||
SourceFile = 220,
|
||||
SyntaxList = 221,
|
||||
Count = 222,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 122,
|
||||
LastToken = 124,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -325,7 +335,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 123,
|
||||
FirstNode = 125,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -363,13 +373,13 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
symbol?: Symbol;
|
||||
locals?: SymbolTable;
|
||||
nextContainer?: Node;
|
||||
localSymbol?: Symbol;
|
||||
modifiers?: ModifiersArray;
|
||||
}
|
||||
interface NodeArray<T> extends Array<T>, TextRange {
|
||||
hasTrailingComma?: boolean;
|
||||
@@ -733,20 +743,49 @@ declare module "typescript" {
|
||||
name: Identifier;
|
||||
members: NodeArray<EnumMember>;
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement {
|
||||
interface ExportContainer {
|
||||
exportStars?: ExportDeclaration[];
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
|
||||
name: Identifier | LiteralExpression;
|
||||
body: ModuleBlock | ModuleDeclaration;
|
||||
}
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportDeclaration extends Statement, ModuleElement {
|
||||
exportClause?: NamedExports;
|
||||
moduleSpecifier?: Expression;
|
||||
}
|
||||
interface NamedImportsOrExports extends Node {
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
}
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
interface ImportOrExportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
type ImportSpecifier = ImportOrExportSpecifier;
|
||||
type ExportSpecifier = ImportOrExportSpecifier;
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -756,7 +795,7 @@ declare module "typescript" {
|
||||
interface CommentRange extends TextRange {
|
||||
hasTrailingNewLine?: boolean;
|
||||
}
|
||||
interface SourceFile extends Declaration {
|
||||
interface SourceFile extends Declaration, ExportContainer {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
endOfFileToken: Node;
|
||||
fileName: string;
|
||||
@@ -910,7 +949,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -918,11 +957,11 @@ declare module "typescript" {
|
||||
errorModuleName?: string;
|
||||
}
|
||||
interface EmitResolver {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
|
||||
getExpressionNameSubstitution(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
@@ -1017,8 +1056,10 @@ declare module "typescript" {
|
||||
declaredType?: Type;
|
||||
mapper?: TypeMapper;
|
||||
referenced?: boolean;
|
||||
exportAssignSymbol?: Symbol;
|
||||
exportAssignmentChecked?: boolean;
|
||||
exportAssignmentSymbol?: Symbol;
|
||||
unionType?: UnionType;
|
||||
resolvedExports?: SymbolTable;
|
||||
}
|
||||
interface TransientSymbol extends Symbol, SymbolLinks {
|
||||
}
|
||||
@@ -1043,7 +1084,8 @@ declare module "typescript" {
|
||||
enumMemberValue?: number;
|
||||
isIllegalTypeReferenceInConstraint?: boolean;
|
||||
isVisible?: boolean;
|
||||
localModuleName?: string;
|
||||
generatedName?: string;
|
||||
generatedNames?: Map<string>;
|
||||
assignmentChecks?: Map<boolean>;
|
||||
hasReportedStatementInAmbientContext?: boolean;
|
||||
importOnRightSide?: Symbol;
|
||||
@@ -1986,25 +2028,25 @@ function delint(sourceFile) {
|
||||
delintNode(sourceFile);
|
||||
function delintNode(node) {
|
||||
switch (node.kind) {
|
||||
case 179 /* ForStatement */:
|
||||
case 180 /* ForInStatement */:
|
||||
case 178 /* WhileStatement */:
|
||||
case 177 /* DoStatement */:
|
||||
if (node.statement.kind !== 172 /* Block */) {
|
||||
case 181 /* ForStatement */:
|
||||
case 182 /* ForInStatement */:
|
||||
case 180 /* WhileStatement */:
|
||||
case 179 /* DoStatement */:
|
||||
if (node.statement.kind !== 174 /* Block */) {
|
||||
report(node, "A looping statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 176 /* IfStatement */:
|
||||
case 178 /* IfStatement */:
|
||||
var ifStatement = node;
|
||||
if (ifStatement.thenStatement.kind !== 172 /* Block */) {
|
||||
if (ifStatement.thenStatement.kind !== 174 /* Block */) {
|
||||
report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
if (ifStatement.elseStatement &&
|
||||
ifStatement.elseStatement.kind !== 172 /* Block */ && ifStatement.elseStatement.kind !== 176 /* IfStatement */) {
|
||||
ifStatement.elseStatement.kind !== 174 /* Block */ && ifStatement.elseStatement.kind !== 178 /* IfStatement */) {
|
||||
report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
case 165 /* BinaryExpression */:
|
||||
case 167 /* BinaryExpression */:
|
||||
var op = node.operatorToken.kind;
|
||||
if (op === 28 /* EqualsEqualsToken */ || op === 29 /* ExclamationEqualsToken */) {
|
||||
report(node, "Use '===' and '!=='.");
|
||||
|
||||
@@ -644,340 +644,370 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
SymbolKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 122,
|
||||
|
||||
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
TypeKeyword = 123,
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
|
||||
OfKeyword = 124,
|
||||
|
||||
QualifiedName = 123,
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,
|
||||
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
ComputedPropertyName = 126,
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
|
||||
TypeParameter = 127,
|
||||
|
||||
Parameter = 126,
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,
|
||||
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
PropertySignature = 129,
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
|
||||
PropertyDeclaration = 130,
|
||||
|
||||
MethodSignature = 129,
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,
|
||||
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
MethodDeclaration = 132,
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
|
||||
Constructor = 133,
|
||||
|
||||
GetAccessor = 132,
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,
|
||||
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
SetAccessor = 135,
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
|
||||
CallSignature = 136,
|
||||
|
||||
ConstructSignature = 135,
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,
|
||||
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
IndexSignature = 138,
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
|
||||
TypeReference = 139,
|
||||
|
||||
FunctionType = 138,
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,
|
||||
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
ConstructorType = 141,
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
|
||||
TypeQuery = 142,
|
||||
|
||||
TypeLiteral = 141,
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,
|
||||
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
ArrayType = 144,
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
|
||||
TupleType = 145,
|
||||
|
||||
UnionType = 144,
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 147,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
ElementAccessExpression = 154,
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,
|
||||
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
NewExpression = 156,
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
|
||||
TaggedTemplateExpression = 157,
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,
|
||||
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
ParenthesizedExpression = 159,
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
|
||||
FunctionExpression = 160,
|
||||
|
||||
CallExpression = 153,
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,
|
||||
|
||||
@@ -995,19 +1025,19 @@ declare module "typescript" {
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
PrefixUnaryExpression = 165,
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
|
||||
PostfixUnaryExpression = 166,
|
||||
|
||||
ArrowFunction = 159,
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,
|
||||
|
||||
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
ConditionalExpression = 168,
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
@@ -1019,7 +1049,7 @@ declare module "typescript" {
|
||||
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
SpreadElementExpression = 171,
|
||||
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
@@ -1046,7 +1076,7 @@ declare module "typescript" {
|
||||
ExpressionStatement = 177,
|
||||
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
|
||||
IfStatement = 178,
|
||||
|
||||
>IfStatement : SyntaxKind
|
||||
@@ -1152,6 +1182,10 @@ declare module "typescript" {
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 204,
|
||||
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 205,
|
||||
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
@@ -1174,10 +1208,6 @@ declare module "typescript" {
|
||||
NamedExports = 210,
|
||||
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 203,
|
||||
|
||||
ExportSpecifier = 211,
|
||||
|
||||
@@ -2276,10 +2306,18 @@ declare module "typescript" {
|
||||
name?: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
|
||||
>Identifier : Identifier
|
||||
|
||||
body: Block | Expression;
|
||||
|
||||
>body : Expression | Block
|
||||
>Block : Block
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface LiteralExpression extends PrimaryExpression {
|
||||
|
||||
>LiteralExpression : LiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
text: string;
|
||||
@@ -2301,8 +2339,8 @@ declare module "typescript" {
|
||||
>_stringLiteralExpressionBrand : any
|
||||
}
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
interface TemplateExpression extends PrimaryExpression {
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
@@ -2323,6 +2361,90 @@ declare module "typescript" {
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||
|
||||
>ObjectLiteralExpression : ObjectLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
>Declaration : Declaration
|
||||
|
||||
properties: NodeArray<ObjectLiteralElement>;
|
||||
|
||||
>properties : NodeArray<ObjectLiteralElement>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ObjectLiteralElement : ObjectLiteralElement
|
||||
}
|
||||
|
||||
interface PropertyAccessExpression extends MemberExpression {
|
||||
|
||||
>PropertyAccessExpression : PropertyAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
name: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
}
|
||||
|
||||
interface ElementAccessExpression extends MemberExpression {
|
||||
|
||||
>ElementAccessExpression : ElementAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
argumentExpression?: Expression;
|
||||
|
||||
>argumentExpression : Expression
|
||||
@@ -2346,9 +2468,10 @@ declare module "typescript" {
|
||||
>TypeNode : TypeNode
|
||||
|
||||
arguments: NodeArray<Expression>;
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
>arguments : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NewExpression extends CallExpression, PrimaryExpression {
|
||||
@@ -2962,9 +3085,9 @@ declare module "typescript" {
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
|
||||
>namedBindings : NamespaceImport | NamedImportsOrExports
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
>NamespaceImport : NamespaceImport
|
||||
>NamedImports : NamedImportsOrExports
|
||||
}
|
||||
|
||||
interface NamespaceImport extends Declaration {
|
||||
|
||||
@@ -2983,14 +3106,16 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
exportClause?: NamedExports;
|
||||
|
||||
>exportClause : NamedImportsOrExports
|
||||
>NamedExports : NamedImportsOrExports
|
||||
|
||||
moduleSpecifier?: Expression;
|
||||
|
||||
>moduleSpecifier : Expression
|
||||
>EntityName : Identifier | QualifiedName
|
||||
>ExternalModuleReference : ExternalModuleReference
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NamedImportsOrExports extends Node {
|
||||
|
||||
@@ -2999,15 +3124,15 @@ declare module "typescript" {
|
||||
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
>elements : NodeArray<ImportOrExportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportOrExportSpecifier : ImportOrExportSpecifier
|
||||
}
|
||||
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
|
||||
>NamedImports : NamedImportsOrExports
|
||||
>NamedImportsOrExports : NamedImportsOrExports
|
||||
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
|
||||
@@ -3336,13 +3461,20 @@ declare module "typescript" {
|
||||
>DiagnosticsPresent_OutputsGenerated : ExitStatus
|
||||
}
|
||||
|
||||
>SourceFile : SourceFile
|
||||
}
|
||||
interface EmitResult {
|
||||
|
||||
>EmitResult : EmitResult
|
||||
|
||||
emitSkipped: boolean;
|
||||
|
||||
>emitSkipped : boolean
|
||||
|
||||
diagnostics: Diagnostic[];
|
||||
|
||||
>diagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
sourceMaps: SourceMapData[];
|
||||
|
||||
>sourceMaps : SourceMapData[]
|
||||
>SourceMapData : SourceMapData
|
||||
@@ -3411,8 +3543,12 @@ declare module "typescript" {
|
||||
>Type : Type
|
||||
>kind : SignatureKind
|
||||
>SignatureKind : SignatureKind
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>Signature : Signature
|
||||
|
||||
getIndexTypeOfType(type: Type, kind: IndexKind): Type;
|
||||
|
||||
>getIndexTypeOfType : (type: Type, kind: IndexKind) => Type
|
||||
>type : Type
|
||||
>Type : Type
|
||||
>kind : IndexKind
|
||||
>IndexKind : IndexKind
|
||||
|
||||
@@ -192,132 +192,142 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
SymbolKeyword = 120,
|
||||
TypeKeyword = 121,
|
||||
OfKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ForOfStatement = 181,
|
||||
ContinueStatement = 182,
|
||||
BreakStatement = 183,
|
||||
ReturnStatement = 184,
|
||||
WithStatement = 185,
|
||||
SwitchStatement = 186,
|
||||
LabeledStatement = 187,
|
||||
ThrowStatement = 188,
|
||||
TryStatement = 189,
|
||||
DebuggerStatement = 190,
|
||||
VariableDeclaration = 191,
|
||||
VariableDeclarationList = 192,
|
||||
FunctionDeclaration = 193,
|
||||
ClassDeclaration = 194,
|
||||
InterfaceDeclaration = 195,
|
||||
TypeAliasDeclaration = 196,
|
||||
EnumDeclaration = 197,
|
||||
ModuleDeclaration = 198,
|
||||
ModuleBlock = 199,
|
||||
ImportDeclaration = 200,
|
||||
ExportAssignment = 201,
|
||||
ExternalModuleReference = 202,
|
||||
CaseClause = 203,
|
||||
DefaultClause = 204,
|
||||
HeritageClause = 205,
|
||||
CatchClause = 206,
|
||||
PropertyAssignment = 207,
|
||||
ShorthandPropertyAssignment = 208,
|
||||
EnumMember = 209,
|
||||
SourceFile = 210,
|
||||
SyntaxList = 211,
|
||||
Count = 212,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 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,
|
||||
ImportEqualsDeclaration = 202,
|
||||
ImportDeclaration = 203,
|
||||
ImportClause = 204,
|
||||
NamespaceImport = 205,
|
||||
NamedImports = 206,
|
||||
ImportSpecifier = 207,
|
||||
ExportAssignment = 208,
|
||||
ExportDeclaration = 209,
|
||||
NamedExports = 210,
|
||||
ExportSpecifier = 211,
|
||||
ExternalModuleReference = 212,
|
||||
CaseClause = 213,
|
||||
DefaultClause = 214,
|
||||
HeritageClause = 215,
|
||||
CatchClause = 216,
|
||||
PropertyAssignment = 217,
|
||||
ShorthandPropertyAssignment = 218,
|
||||
EnumMember = 219,
|
||||
SourceFile = 220,
|
||||
SyntaxList = 221,
|
||||
Count = 222,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 122,
|
||||
LastToken = 124,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -326,7 +336,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 123,
|
||||
FirstNode = 125,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -364,13 +374,13 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
symbol?: Symbol;
|
||||
locals?: SymbolTable;
|
||||
nextContainer?: Node;
|
||||
localSymbol?: Symbol;
|
||||
modifiers?: ModifiersArray;
|
||||
}
|
||||
interface NodeArray<T> extends Array<T>, TextRange {
|
||||
hasTrailingComma?: boolean;
|
||||
@@ -734,20 +744,49 @@ declare module "typescript" {
|
||||
name: Identifier;
|
||||
members: NodeArray<EnumMember>;
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement {
|
||||
interface ExportContainer {
|
||||
exportStars?: ExportDeclaration[];
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
|
||||
name: Identifier | LiteralExpression;
|
||||
body: ModuleBlock | ModuleDeclaration;
|
||||
}
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportDeclaration extends Statement, ModuleElement {
|
||||
exportClause?: NamedExports;
|
||||
moduleSpecifier?: Expression;
|
||||
}
|
||||
interface NamedImportsOrExports extends Node {
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
}
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
interface ImportOrExportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
type ImportSpecifier = ImportOrExportSpecifier;
|
||||
type ExportSpecifier = ImportOrExportSpecifier;
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -757,7 +796,7 @@ declare module "typescript" {
|
||||
interface CommentRange extends TextRange {
|
||||
hasTrailingNewLine?: boolean;
|
||||
}
|
||||
interface SourceFile extends Declaration {
|
||||
interface SourceFile extends Declaration, ExportContainer {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
endOfFileToken: Node;
|
||||
fileName: string;
|
||||
@@ -911,7 +950,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -919,11 +958,11 @@ declare module "typescript" {
|
||||
errorModuleName?: string;
|
||||
}
|
||||
interface EmitResolver {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
|
||||
getExpressionNameSubstitution(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
@@ -1018,8 +1057,10 @@ declare module "typescript" {
|
||||
declaredType?: Type;
|
||||
mapper?: TypeMapper;
|
||||
referenced?: boolean;
|
||||
exportAssignSymbol?: Symbol;
|
||||
exportAssignmentChecked?: boolean;
|
||||
exportAssignmentSymbol?: Symbol;
|
||||
unionType?: UnionType;
|
||||
resolvedExports?: SymbolTable;
|
||||
}
|
||||
interface TransientSymbol extends Symbol, SymbolLinks {
|
||||
}
|
||||
@@ -1044,7 +1085,8 @@ declare module "typescript" {
|
||||
enumMemberValue?: number;
|
||||
isIllegalTypeReferenceInConstraint?: boolean;
|
||||
isVisible?: boolean;
|
||||
localModuleName?: string;
|
||||
generatedName?: string;
|
||||
generatedNames?: Map<string>;
|
||||
assignmentChecks?: Map<boolean>;
|
||||
hasReportedStatementInAmbientContext?: boolean;
|
||||
importOnRightSide?: Symbol;
|
||||
|
||||
@@ -594,340 +594,370 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
SymbolKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 122,
|
||||
|
||||
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
TypeKeyword = 123,
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
|
||||
OfKeyword = 124,
|
||||
|
||||
QualifiedName = 123,
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,
|
||||
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
ComputedPropertyName = 126,
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
|
||||
TypeParameter = 127,
|
||||
|
||||
Parameter = 126,
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,
|
||||
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
PropertySignature = 129,
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
|
||||
PropertyDeclaration = 130,
|
||||
|
||||
MethodSignature = 129,
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,
|
||||
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
MethodDeclaration = 132,
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
|
||||
Constructor = 133,
|
||||
|
||||
GetAccessor = 132,
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,
|
||||
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
SetAccessor = 135,
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
|
||||
CallSignature = 136,
|
||||
|
||||
ConstructSignature = 135,
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,
|
||||
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
IndexSignature = 138,
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
|
||||
TypeReference = 139,
|
||||
|
||||
FunctionType = 138,
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,
|
||||
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
ConstructorType = 141,
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
|
||||
TypeQuery = 142,
|
||||
|
||||
TypeLiteral = 141,
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,
|
||||
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
ArrayType = 144,
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
|
||||
TupleType = 145,
|
||||
|
||||
UnionType = 144,
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 147,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
ElementAccessExpression = 154,
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,
|
||||
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
NewExpression = 156,
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
|
||||
TaggedTemplateExpression = 157,
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,
|
||||
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
ParenthesizedExpression = 159,
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
|
||||
FunctionExpression = 160,
|
||||
|
||||
CallExpression = 153,
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,
|
||||
|
||||
@@ -945,19 +975,19 @@ declare module "typescript" {
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
PrefixUnaryExpression = 165,
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
|
||||
PostfixUnaryExpression = 166,
|
||||
|
||||
ArrowFunction = 159,
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,
|
||||
|
||||
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
ConditionalExpression = 168,
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
@@ -969,7 +999,7 @@ declare module "typescript" {
|
||||
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
SpreadElementExpression = 171,
|
||||
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
@@ -996,7 +1026,7 @@ declare module "typescript" {
|
||||
ExpressionStatement = 177,
|
||||
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
|
||||
IfStatement = 178,
|
||||
|
||||
>IfStatement : SyntaxKind
|
||||
@@ -1102,6 +1132,10 @@ declare module "typescript" {
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 204,
|
||||
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 205,
|
||||
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
@@ -1124,10 +1158,6 @@ declare module "typescript" {
|
||||
NamedExports = 210,
|
||||
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 203,
|
||||
|
||||
ExportSpecifier = 211,
|
||||
|
||||
@@ -2226,10 +2256,18 @@ declare module "typescript" {
|
||||
name?: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
|
||||
>Identifier : Identifier
|
||||
|
||||
body: Block | Expression;
|
||||
|
||||
>body : Expression | Block
|
||||
>Block : Block
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface LiteralExpression extends PrimaryExpression {
|
||||
|
||||
>LiteralExpression : LiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
text: string;
|
||||
@@ -2251,8 +2289,8 @@ declare module "typescript" {
|
||||
>_stringLiteralExpressionBrand : any
|
||||
}
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
interface TemplateExpression extends PrimaryExpression {
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
@@ -2273,6 +2311,90 @@ declare module "typescript" {
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||
|
||||
>ObjectLiteralExpression : ObjectLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
>Declaration : Declaration
|
||||
|
||||
properties: NodeArray<ObjectLiteralElement>;
|
||||
|
||||
>properties : NodeArray<ObjectLiteralElement>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ObjectLiteralElement : ObjectLiteralElement
|
||||
}
|
||||
|
||||
interface PropertyAccessExpression extends MemberExpression {
|
||||
|
||||
>PropertyAccessExpression : PropertyAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
name: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
}
|
||||
|
||||
interface ElementAccessExpression extends MemberExpression {
|
||||
|
||||
>ElementAccessExpression : ElementAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
argumentExpression?: Expression;
|
||||
|
||||
>argumentExpression : Expression
|
||||
@@ -2296,9 +2418,10 @@ declare module "typescript" {
|
||||
>TypeNode : TypeNode
|
||||
|
||||
arguments: NodeArray<Expression>;
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
>arguments : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NewExpression extends CallExpression, PrimaryExpression {
|
||||
@@ -2912,9 +3035,9 @@ declare module "typescript" {
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
|
||||
>namedBindings : NamespaceImport | NamedImportsOrExports
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
>NamespaceImport : NamespaceImport
|
||||
>NamedImports : NamedImportsOrExports
|
||||
}
|
||||
|
||||
interface NamespaceImport extends Declaration {
|
||||
|
||||
@@ -2933,14 +3056,16 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
exportClause?: NamedExports;
|
||||
|
||||
>exportClause : NamedImportsOrExports
|
||||
>NamedExports : NamedImportsOrExports
|
||||
|
||||
moduleSpecifier?: Expression;
|
||||
|
||||
>moduleSpecifier : Expression
|
||||
>EntityName : Identifier | QualifiedName
|
||||
>ExternalModuleReference : ExternalModuleReference
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NamedImportsOrExports extends Node {
|
||||
|
||||
@@ -2949,15 +3074,15 @@ declare module "typescript" {
|
||||
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
>elements : NodeArray<ImportOrExportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportOrExportSpecifier : ImportOrExportSpecifier
|
||||
}
|
||||
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
|
||||
>NamedImports : NamedImportsOrExports
|
||||
>NamedImportsOrExports : NamedImportsOrExports
|
||||
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
|
||||
@@ -3286,13 +3411,20 @@ declare module "typescript" {
|
||||
>DiagnosticsPresent_OutputsGenerated : ExitStatus
|
||||
}
|
||||
|
||||
>SourceFile : SourceFile
|
||||
}
|
||||
interface EmitResult {
|
||||
|
||||
>EmitResult : EmitResult
|
||||
|
||||
emitSkipped: boolean;
|
||||
|
||||
>emitSkipped : boolean
|
||||
|
||||
diagnostics: Diagnostic[];
|
||||
|
||||
>diagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
sourceMaps: SourceMapData[];
|
||||
|
||||
>sourceMaps : SourceMapData[]
|
||||
>SourceMapData : SourceMapData
|
||||
@@ -3361,8 +3493,12 @@ declare module "typescript" {
|
||||
>Type : Type
|
||||
>kind : SignatureKind
|
||||
>SignatureKind : SignatureKind
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>Signature : Signature
|
||||
|
||||
getIndexTypeOfType(type: Type, kind: IndexKind): Type;
|
||||
|
||||
>getIndexTypeOfType : (type: Type, kind: IndexKind) => Type
|
||||
>type : Type
|
||||
>Type : Type
|
||||
>kind : IndexKind
|
||||
>IndexKind : IndexKind
|
||||
|
||||
@@ -229,132 +229,142 @@ declare module "typescript" {
|
||||
VoidKeyword = 98,
|
||||
WhileKeyword = 99,
|
||||
WithKeyword = 100,
|
||||
ImplementsKeyword = 101,
|
||||
InterfaceKeyword = 102,
|
||||
LetKeyword = 103,
|
||||
PackageKeyword = 104,
|
||||
PrivateKeyword = 105,
|
||||
ProtectedKeyword = 106,
|
||||
PublicKeyword = 107,
|
||||
StaticKeyword = 108,
|
||||
YieldKeyword = 109,
|
||||
AnyKeyword = 110,
|
||||
BooleanKeyword = 111,
|
||||
ConstructorKeyword = 112,
|
||||
DeclareKeyword = 113,
|
||||
GetKeyword = 114,
|
||||
ModuleKeyword = 115,
|
||||
RequireKeyword = 116,
|
||||
NumberKeyword = 117,
|
||||
SetKeyword = 118,
|
||||
StringKeyword = 119,
|
||||
SymbolKeyword = 120,
|
||||
TypeKeyword = 121,
|
||||
OfKeyword = 122,
|
||||
QualifiedName = 123,
|
||||
ComputedPropertyName = 124,
|
||||
TypeParameter = 125,
|
||||
Parameter = 126,
|
||||
PropertySignature = 127,
|
||||
PropertyDeclaration = 128,
|
||||
MethodSignature = 129,
|
||||
MethodDeclaration = 130,
|
||||
Constructor = 131,
|
||||
GetAccessor = 132,
|
||||
SetAccessor = 133,
|
||||
CallSignature = 134,
|
||||
ConstructSignature = 135,
|
||||
IndexSignature = 136,
|
||||
TypeReference = 137,
|
||||
FunctionType = 138,
|
||||
ConstructorType = 139,
|
||||
TypeQuery = 140,
|
||||
TypeLiteral = 141,
|
||||
ArrayType = 142,
|
||||
TupleType = 143,
|
||||
UnionType = 144,
|
||||
ParenthesizedType = 145,
|
||||
ObjectBindingPattern = 146,
|
||||
ArrayBindingPattern = 147,
|
||||
BindingElement = 148,
|
||||
ArrayLiteralExpression = 149,
|
||||
ObjectLiteralExpression = 150,
|
||||
PropertyAccessExpression = 151,
|
||||
ElementAccessExpression = 152,
|
||||
CallExpression = 153,
|
||||
NewExpression = 154,
|
||||
TaggedTemplateExpression = 155,
|
||||
TypeAssertionExpression = 156,
|
||||
ParenthesizedExpression = 157,
|
||||
FunctionExpression = 158,
|
||||
ArrowFunction = 159,
|
||||
DeleteExpression = 160,
|
||||
TypeOfExpression = 161,
|
||||
VoidExpression = 162,
|
||||
PrefixUnaryExpression = 163,
|
||||
PostfixUnaryExpression = 164,
|
||||
BinaryExpression = 165,
|
||||
ConditionalExpression = 166,
|
||||
TemplateExpression = 167,
|
||||
YieldExpression = 168,
|
||||
SpreadElementExpression = 169,
|
||||
OmittedExpression = 170,
|
||||
TemplateSpan = 171,
|
||||
Block = 172,
|
||||
VariableStatement = 173,
|
||||
EmptyStatement = 174,
|
||||
ExpressionStatement = 175,
|
||||
IfStatement = 176,
|
||||
DoStatement = 177,
|
||||
WhileStatement = 178,
|
||||
ForStatement = 179,
|
||||
ForInStatement = 180,
|
||||
ForOfStatement = 181,
|
||||
ContinueStatement = 182,
|
||||
BreakStatement = 183,
|
||||
ReturnStatement = 184,
|
||||
WithStatement = 185,
|
||||
SwitchStatement = 186,
|
||||
LabeledStatement = 187,
|
||||
ThrowStatement = 188,
|
||||
TryStatement = 189,
|
||||
DebuggerStatement = 190,
|
||||
VariableDeclaration = 191,
|
||||
VariableDeclarationList = 192,
|
||||
FunctionDeclaration = 193,
|
||||
ClassDeclaration = 194,
|
||||
InterfaceDeclaration = 195,
|
||||
TypeAliasDeclaration = 196,
|
||||
EnumDeclaration = 197,
|
||||
ModuleDeclaration = 198,
|
||||
ModuleBlock = 199,
|
||||
ImportDeclaration = 200,
|
||||
ExportAssignment = 201,
|
||||
ExternalModuleReference = 202,
|
||||
CaseClause = 203,
|
||||
DefaultClause = 204,
|
||||
HeritageClause = 205,
|
||||
CatchClause = 206,
|
||||
PropertyAssignment = 207,
|
||||
ShorthandPropertyAssignment = 208,
|
||||
EnumMember = 209,
|
||||
SourceFile = 210,
|
||||
SyntaxList = 211,
|
||||
Count = 212,
|
||||
AsKeyword = 101,
|
||||
FromKeyword = 102,
|
||||
ImplementsKeyword = 103,
|
||||
InterfaceKeyword = 104,
|
||||
LetKeyword = 105,
|
||||
PackageKeyword = 106,
|
||||
PrivateKeyword = 107,
|
||||
ProtectedKeyword = 108,
|
||||
PublicKeyword = 109,
|
||||
StaticKeyword = 110,
|
||||
YieldKeyword = 111,
|
||||
AnyKeyword = 112,
|
||||
BooleanKeyword = 113,
|
||||
ConstructorKeyword = 114,
|
||||
DeclareKeyword = 115,
|
||||
GetKeyword = 116,
|
||||
ModuleKeyword = 117,
|
||||
RequireKeyword = 118,
|
||||
NumberKeyword = 119,
|
||||
SetKeyword = 120,
|
||||
StringKeyword = 121,
|
||||
SymbolKeyword = 122,
|
||||
TypeKeyword = 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,
|
||||
ImportEqualsDeclaration = 202,
|
||||
ImportDeclaration = 203,
|
||||
ImportClause = 204,
|
||||
NamespaceImport = 205,
|
||||
NamedImports = 206,
|
||||
ImportSpecifier = 207,
|
||||
ExportAssignment = 208,
|
||||
ExportDeclaration = 209,
|
||||
NamedExports = 210,
|
||||
ExportSpecifier = 211,
|
||||
ExternalModuleReference = 212,
|
||||
CaseClause = 213,
|
||||
DefaultClause = 214,
|
||||
HeritageClause = 215,
|
||||
CatchClause = 216,
|
||||
PropertyAssignment = 217,
|
||||
ShorthandPropertyAssignment = 218,
|
||||
EnumMember = 219,
|
||||
SourceFile = 220,
|
||||
SyntaxList = 221,
|
||||
Count = 222,
|
||||
FirstAssignment = 52,
|
||||
LastAssignment = 63,
|
||||
FirstReservedWord = 65,
|
||||
LastReservedWord = 100,
|
||||
FirstKeyword = 65,
|
||||
LastKeyword = 122,
|
||||
FirstFutureReservedWord = 101,
|
||||
LastFutureReservedWord = 109,
|
||||
FirstTypeNode = 137,
|
||||
LastTypeNode = 145,
|
||||
LastKeyword = 124,
|
||||
FirstFutureReservedWord = 103,
|
||||
LastFutureReservedWord = 111,
|
||||
FirstTypeNode = 139,
|
||||
LastTypeNode = 147,
|
||||
FirstPunctuation = 14,
|
||||
LastPunctuation = 63,
|
||||
FirstToken = 0,
|
||||
LastToken = 122,
|
||||
LastToken = 124,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 6,
|
||||
FirstLiteralToken = 7,
|
||||
@@ -363,7 +373,7 @@ declare module "typescript" {
|
||||
LastTemplateToken = 13,
|
||||
FirstBinaryOperator = 24,
|
||||
LastBinaryOperator = 63,
|
||||
FirstNode = 123,
|
||||
FirstNode = 125,
|
||||
}
|
||||
const enum NodeFlags {
|
||||
Export = 1,
|
||||
@@ -401,13 +411,13 @@ declare module "typescript" {
|
||||
kind: SyntaxKind;
|
||||
flags: NodeFlags;
|
||||
parserContextFlags?: ParserContextFlags;
|
||||
modifiers?: ModifiersArray;
|
||||
id?: number;
|
||||
parent?: Node;
|
||||
symbol?: Symbol;
|
||||
locals?: SymbolTable;
|
||||
nextContainer?: Node;
|
||||
localSymbol?: Symbol;
|
||||
modifiers?: ModifiersArray;
|
||||
}
|
||||
interface NodeArray<T> extends Array<T>, TextRange {
|
||||
hasTrailingComma?: boolean;
|
||||
@@ -771,20 +781,49 @@ declare module "typescript" {
|
||||
name: Identifier;
|
||||
members: NodeArray<EnumMember>;
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement {
|
||||
interface ExportContainer {
|
||||
exportStars?: ExportDeclaration[];
|
||||
}
|
||||
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
|
||||
name: Identifier | LiteralExpression;
|
||||
body: ModuleBlock | ModuleDeclaration;
|
||||
}
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
}
|
||||
interface ImportDeclaration extends Declaration, ModuleElement {
|
||||
interface ImportEqualsDeclaration extends Declaration, ModuleElement {
|
||||
name: Identifier;
|
||||
moduleReference: EntityName | ExternalModuleReference;
|
||||
}
|
||||
interface ExternalModuleReference extends Node {
|
||||
expression?: Expression;
|
||||
}
|
||||
interface ImportDeclaration extends Statement, ModuleElement {
|
||||
importClause?: ImportClause;
|
||||
moduleSpecifier: Expression;
|
||||
}
|
||||
interface ImportClause extends Declaration {
|
||||
name?: Identifier;
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
}
|
||||
interface NamespaceImport extends Declaration {
|
||||
name: Identifier;
|
||||
}
|
||||
interface ExportDeclaration extends Statement, ModuleElement {
|
||||
exportClause?: NamedExports;
|
||||
moduleSpecifier?: Expression;
|
||||
}
|
||||
interface NamedImportsOrExports extends Node {
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
}
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
interface ImportOrExportSpecifier extends Declaration {
|
||||
propertyName?: Identifier;
|
||||
name: Identifier;
|
||||
}
|
||||
type ImportSpecifier = ImportOrExportSpecifier;
|
||||
type ExportSpecifier = ImportOrExportSpecifier;
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
exportName: Identifier;
|
||||
}
|
||||
@@ -794,7 +833,7 @@ declare module "typescript" {
|
||||
interface CommentRange extends TextRange {
|
||||
hasTrailingNewLine?: boolean;
|
||||
}
|
||||
interface SourceFile extends Declaration {
|
||||
interface SourceFile extends Declaration, ExportContainer {
|
||||
statements: NodeArray<ModuleElement>;
|
||||
endOfFileToken: Node;
|
||||
fileName: string;
|
||||
@@ -948,7 +987,7 @@ declare module "typescript" {
|
||||
}
|
||||
interface SymbolVisibilityResult {
|
||||
accessibility: SymbolAccessibility;
|
||||
aliasesToMakeVisible?: ImportDeclaration[];
|
||||
aliasesToMakeVisible?: ImportEqualsDeclaration[];
|
||||
errorSymbolName?: string;
|
||||
errorNode?: Node;
|
||||
}
|
||||
@@ -956,11 +995,11 @@ declare module "typescript" {
|
||||
errorModuleName?: string;
|
||||
}
|
||||
interface EmitResolver {
|
||||
getLocalNameOfContainer(container: ModuleDeclaration | EnumDeclaration): string;
|
||||
getExpressionNamePrefix(node: Identifier): string;
|
||||
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
|
||||
getExpressionNameSubstitution(node: Identifier): string;
|
||||
getExportAssignmentName(node: SourceFile): string;
|
||||
isReferencedImportDeclaration(node: ImportDeclaration): boolean;
|
||||
isTopLevelValueImportWithEntityName(node: ImportDeclaration): boolean;
|
||||
isReferencedImportDeclaration(node: Node): boolean;
|
||||
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
|
||||
getNodeCheckFlags(node: Node): NodeCheckFlags;
|
||||
isDeclarationVisible(node: Declaration): boolean;
|
||||
isImplementationOfOverload(node: FunctionLikeDeclaration): boolean;
|
||||
@@ -1055,8 +1094,10 @@ declare module "typescript" {
|
||||
declaredType?: Type;
|
||||
mapper?: TypeMapper;
|
||||
referenced?: boolean;
|
||||
exportAssignSymbol?: Symbol;
|
||||
exportAssignmentChecked?: boolean;
|
||||
exportAssignmentSymbol?: Symbol;
|
||||
unionType?: UnionType;
|
||||
resolvedExports?: SymbolTable;
|
||||
}
|
||||
interface TransientSymbol extends Symbol, SymbolLinks {
|
||||
}
|
||||
@@ -1081,7 +1122,8 @@ declare module "typescript" {
|
||||
enumMemberValue?: number;
|
||||
isIllegalTypeReferenceInConstraint?: boolean;
|
||||
isVisible?: boolean;
|
||||
localModuleName?: string;
|
||||
generatedName?: string;
|
||||
generatedNames?: Map<string>;
|
||||
assignmentChecks?: Map<boolean>;
|
||||
hasReportedStatementInAmbientContext?: boolean;
|
||||
importOnRightSide?: Symbol;
|
||||
|
||||
@@ -767,340 +767,370 @@ declare module "typescript" {
|
||||
ConstKeyword = 69,
|
||||
|
||||
>ConstKeyword : SyntaxKind
|
||||
|
||||
|
||||
ContinueKeyword = 70,
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
|
||||
DebuggerKeyword = 71,
|
||||
|
||||
>DebuggerKeyword : SyntaxKind
|
||||
|
||||
>ContinueKeyword : SyntaxKind
|
||||
DefaultKeyword = 72,
|
||||
|
||||
>DefaultKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeleteKeyword = 73,
|
||||
|
||||
DefaultKeyword = 72,
|
||||
>DeleteKeyword : SyntaxKind
|
||||
|
||||
DoKeyword = 74,
|
||||
|
||||
|
||||
>DoKeyword : SyntaxKind
|
||||
|
||||
>DeleteKeyword : SyntaxKind
|
||||
ElseKeyword = 75,
|
||||
|
||||
>ElseKeyword : SyntaxKind
|
||||
|
||||
|
||||
EnumKeyword = 76,
|
||||
|
||||
ElseKeyword = 75,
|
||||
>EnumKeyword : SyntaxKind
|
||||
|
||||
ExportKeyword = 77,
|
||||
|
||||
|
||||
>ExportKeyword : SyntaxKind
|
||||
|
||||
>EnumKeyword : SyntaxKind
|
||||
ExtendsKeyword = 78,
|
||||
|
||||
>ExtendsKeyword : SyntaxKind
|
||||
|
||||
|
||||
FalseKeyword = 79,
|
||||
|
||||
ExtendsKeyword = 78,
|
||||
>FalseKeyword : SyntaxKind
|
||||
|
||||
FinallyKeyword = 80,
|
||||
|
||||
|
||||
>FinallyKeyword : SyntaxKind
|
||||
|
||||
>FalseKeyword : SyntaxKind
|
||||
ForKeyword = 81,
|
||||
|
||||
>ForKeyword : SyntaxKind
|
||||
|
||||
|
||||
FunctionKeyword = 82,
|
||||
|
||||
ForKeyword = 81,
|
||||
>FunctionKeyword : SyntaxKind
|
||||
|
||||
IfKeyword = 83,
|
||||
|
||||
|
||||
>IfKeyword : SyntaxKind
|
||||
|
||||
>FunctionKeyword : SyntaxKind
|
||||
ImportKeyword = 84,
|
||||
|
||||
>ImportKeyword : SyntaxKind
|
||||
|
||||
|
||||
InKeyword = 85,
|
||||
|
||||
ImportKeyword = 84,
|
||||
>InKeyword : SyntaxKind
|
||||
|
||||
InstanceOfKeyword = 86,
|
||||
|
||||
|
||||
>InstanceOfKeyword : SyntaxKind
|
||||
|
||||
>InKeyword : SyntaxKind
|
||||
NewKeyword = 87,
|
||||
|
||||
>NewKeyword : SyntaxKind
|
||||
|
||||
|
||||
NullKeyword = 88,
|
||||
|
||||
NewKeyword = 87,
|
||||
>NullKeyword : SyntaxKind
|
||||
|
||||
ReturnKeyword = 89,
|
||||
|
||||
|
||||
>ReturnKeyword : SyntaxKind
|
||||
|
||||
>NullKeyword : SyntaxKind
|
||||
SuperKeyword = 90,
|
||||
|
||||
>SuperKeyword : SyntaxKind
|
||||
|
||||
|
||||
SwitchKeyword = 91,
|
||||
|
||||
SuperKeyword = 90,
|
||||
>SwitchKeyword : SyntaxKind
|
||||
|
||||
ThisKeyword = 92,
|
||||
|
||||
|
||||
>ThisKeyword : SyntaxKind
|
||||
|
||||
>SwitchKeyword : SyntaxKind
|
||||
ThrowKeyword = 93,
|
||||
|
||||
>ThrowKeyword : SyntaxKind
|
||||
|
||||
|
||||
TrueKeyword = 94,
|
||||
|
||||
ThrowKeyword = 93,
|
||||
>TrueKeyword : SyntaxKind
|
||||
|
||||
TryKeyword = 95,
|
||||
|
||||
|
||||
>TryKeyword : SyntaxKind
|
||||
|
||||
>TrueKeyword : SyntaxKind
|
||||
TypeOfKeyword = 96,
|
||||
|
||||
>TypeOfKeyword : SyntaxKind
|
||||
|
||||
|
||||
VarKeyword = 97,
|
||||
|
||||
TypeOfKeyword = 96,
|
||||
>VarKeyword : SyntaxKind
|
||||
|
||||
VoidKeyword = 98,
|
||||
|
||||
|
||||
>VoidKeyword : SyntaxKind
|
||||
|
||||
>VarKeyword : SyntaxKind
|
||||
WhileKeyword = 99,
|
||||
|
||||
>WhileKeyword : SyntaxKind
|
||||
|
||||
|
||||
WithKeyword = 100,
|
||||
|
||||
WhileKeyword = 99,
|
||||
>WithKeyword : SyntaxKind
|
||||
|
||||
AsKeyword = 101,
|
||||
|
||||
|
||||
>AsKeyword : SyntaxKind
|
||||
|
||||
>WithKeyword : SyntaxKind
|
||||
FromKeyword = 102,
|
||||
|
||||
>FromKeyword : SyntaxKind
|
||||
|
||||
|
||||
ImplementsKeyword = 103,
|
||||
|
||||
InterfaceKeyword = 102,
|
||||
>ImplementsKeyword : SyntaxKind
|
||||
|
||||
InterfaceKeyword = 104,
|
||||
|
||||
|
||||
>InterfaceKeyword : SyntaxKind
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
LetKeyword = 105,
|
||||
|
||||
>LetKeyword : SyntaxKind
|
||||
|
||||
|
||||
PackageKeyword = 106,
|
||||
|
||||
PrivateKeyword = 105,
|
||||
>PackageKeyword : SyntaxKind
|
||||
|
||||
PrivateKeyword = 107,
|
||||
|
||||
|
||||
>PrivateKeyword : SyntaxKind
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
ProtectedKeyword = 108,
|
||||
|
||||
>ProtectedKeyword : SyntaxKind
|
||||
|
||||
|
||||
PublicKeyword = 109,
|
||||
|
||||
StaticKeyword = 108,
|
||||
>PublicKeyword : SyntaxKind
|
||||
|
||||
StaticKeyword = 110,
|
||||
|
||||
|
||||
>StaticKeyword : SyntaxKind
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
YieldKeyword = 111,
|
||||
|
||||
>YieldKeyword : SyntaxKind
|
||||
|
||||
|
||||
AnyKeyword = 112,
|
||||
|
||||
BooleanKeyword = 111,
|
||||
>AnyKeyword : SyntaxKind
|
||||
|
||||
BooleanKeyword = 113,
|
||||
|
||||
|
||||
>BooleanKeyword : SyntaxKind
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
ConstructorKeyword = 114,
|
||||
|
||||
>ConstructorKeyword : SyntaxKind
|
||||
|
||||
|
||||
DeclareKeyword = 115,
|
||||
|
||||
GetKeyword = 114,
|
||||
>DeclareKeyword : SyntaxKind
|
||||
|
||||
GetKeyword = 116,
|
||||
|
||||
|
||||
>GetKeyword : SyntaxKind
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
ModuleKeyword = 117,
|
||||
|
||||
>ModuleKeyword : SyntaxKind
|
||||
|
||||
|
||||
RequireKeyword = 118,
|
||||
|
||||
NumberKeyword = 117,
|
||||
>RequireKeyword : SyntaxKind
|
||||
|
||||
NumberKeyword = 119,
|
||||
|
||||
|
||||
>NumberKeyword : SyntaxKind
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
SetKeyword = 120,
|
||||
|
||||
>SetKeyword : SyntaxKind
|
||||
|
||||
|
||||
StringKeyword = 121,
|
||||
|
||||
SymbolKeyword = 120,
|
||||
>StringKeyword : SyntaxKind
|
||||
|
||||
SymbolKeyword = 122,
|
||||
|
||||
|
||||
>SymbolKeyword : SyntaxKind
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
TypeKeyword = 123,
|
||||
|
||||
>TypeKeyword : SyntaxKind
|
||||
|
||||
|
||||
OfKeyword = 124,
|
||||
|
||||
QualifiedName = 123,
|
||||
>OfKeyword : SyntaxKind
|
||||
|
||||
QualifiedName = 125,
|
||||
|
||||
|
||||
>QualifiedName : SyntaxKind
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
ComputedPropertyName = 126,
|
||||
|
||||
>ComputedPropertyName : SyntaxKind
|
||||
|
||||
|
||||
TypeParameter = 127,
|
||||
|
||||
Parameter = 126,
|
||||
>TypeParameter : SyntaxKind
|
||||
|
||||
Parameter = 128,
|
||||
|
||||
|
||||
>Parameter : SyntaxKind
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
PropertySignature = 129,
|
||||
|
||||
>PropertySignature : SyntaxKind
|
||||
|
||||
|
||||
PropertyDeclaration = 130,
|
||||
|
||||
MethodSignature = 129,
|
||||
>PropertyDeclaration : SyntaxKind
|
||||
|
||||
MethodSignature = 131,
|
||||
|
||||
|
||||
>MethodSignature : SyntaxKind
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
MethodDeclaration = 132,
|
||||
|
||||
>MethodDeclaration : SyntaxKind
|
||||
|
||||
|
||||
Constructor = 133,
|
||||
|
||||
GetAccessor = 132,
|
||||
>Constructor : SyntaxKind
|
||||
|
||||
GetAccessor = 134,
|
||||
|
||||
|
||||
>GetAccessor : SyntaxKind
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
SetAccessor = 135,
|
||||
|
||||
>SetAccessor : SyntaxKind
|
||||
|
||||
|
||||
CallSignature = 136,
|
||||
|
||||
ConstructSignature = 135,
|
||||
>CallSignature : SyntaxKind
|
||||
|
||||
ConstructSignature = 137,
|
||||
|
||||
|
||||
>ConstructSignature : SyntaxKind
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
IndexSignature = 138,
|
||||
|
||||
>IndexSignature : SyntaxKind
|
||||
|
||||
|
||||
TypeReference = 139,
|
||||
|
||||
FunctionType = 138,
|
||||
>TypeReference : SyntaxKind
|
||||
|
||||
FunctionType = 140,
|
||||
|
||||
|
||||
>FunctionType : SyntaxKind
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
ConstructorType = 141,
|
||||
|
||||
>ConstructorType : SyntaxKind
|
||||
|
||||
|
||||
TypeQuery = 142,
|
||||
|
||||
TypeLiteral = 141,
|
||||
>TypeQuery : SyntaxKind
|
||||
|
||||
TypeLiteral = 143,
|
||||
|
||||
|
||||
>TypeLiteral : SyntaxKind
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
ArrayType = 144,
|
||||
|
||||
>ArrayType : SyntaxKind
|
||||
|
||||
|
||||
TupleType = 145,
|
||||
|
||||
UnionType = 144,
|
||||
>TupleType : SyntaxKind
|
||||
|
||||
UnionType = 146,
|
||||
|
||||
>UnionType : SyntaxKind
|
||||
|
||||
|
||||
ParenthesizedType = 147,
|
||||
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ObjectBindingPattern = 148,
|
||||
|
||||
>ObjectBindingPattern : SyntaxKind
|
||||
|
||||
ArrayBindingPattern = 149,
|
||||
|
||||
>ArrayBindingPattern : SyntaxKind
|
||||
|
||||
BindingElement = 150,
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
>ParenthesizedType : SyntaxKind
|
||||
|
||||
ArrayLiteralExpression = 151,
|
||||
|
||||
>ArrayLiteralExpression : SyntaxKind
|
||||
|
||||
ObjectLiteralExpression = 152,
|
||||
|
||||
>ObjectLiteralExpression : SyntaxKind
|
||||
|
||||
PropertyAccessExpression = 153,
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
|
||||
|
||||
ElementAccessExpression = 154,
|
||||
|
||||
ArrayBindingPattern = 147,
|
||||
>ElementAccessExpression : SyntaxKind
|
||||
|
||||
CallExpression = 155,
|
||||
|
||||
|
||||
>CallExpression : SyntaxKind
|
||||
|
||||
>BindingElement : SyntaxKind
|
||||
NewExpression = 156,
|
||||
|
||||
>NewExpression : SyntaxKind
|
||||
|
||||
|
||||
TaggedTemplateExpression = 157,
|
||||
|
||||
ObjectLiteralExpression = 150,
|
||||
>TaggedTemplateExpression : SyntaxKind
|
||||
|
||||
TypeAssertionExpression = 158,
|
||||
|
||||
|
||||
>TypeAssertionExpression : SyntaxKind
|
||||
|
||||
>PropertyAccessExpression : SyntaxKind
|
||||
ParenthesizedExpression = 159,
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
|
||||
|
||||
FunctionExpression = 160,
|
||||
|
||||
CallExpression = 153,
|
||||
>FunctionExpression : SyntaxKind
|
||||
|
||||
ArrowFunction = 161,
|
||||
|
||||
@@ -1118,19 +1148,19 @@ declare module "typescript" {
|
||||
|
||||
>VoidExpression : SyntaxKind
|
||||
|
||||
>ParenthesizedExpression : SyntaxKind
|
||||
PrefixUnaryExpression = 165,
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
|
||||
|
||||
PostfixUnaryExpression = 166,
|
||||
|
||||
ArrowFunction = 159,
|
||||
>PostfixUnaryExpression : SyntaxKind
|
||||
|
||||
BinaryExpression = 167,
|
||||
|
||||
|
||||
>BinaryExpression : SyntaxKind
|
||||
|
||||
>DeleteExpression : SyntaxKind
|
||||
ConditionalExpression = 168,
|
||||
|
||||
>ConditionalExpression : SyntaxKind
|
||||
|
||||
@@ -1142,7 +1172,7 @@ declare module "typescript" {
|
||||
|
||||
>YieldExpression : SyntaxKind
|
||||
|
||||
>PrefixUnaryExpression : SyntaxKind
|
||||
SpreadElementExpression = 171,
|
||||
|
||||
>SpreadElementExpression : SyntaxKind
|
||||
|
||||
@@ -1169,7 +1199,7 @@ declare module "typescript" {
|
||||
ExpressionStatement = 177,
|
||||
|
||||
>ExpressionStatement : SyntaxKind
|
||||
|
||||
|
||||
IfStatement = 178,
|
||||
|
||||
>IfStatement : SyntaxKind
|
||||
@@ -1275,6 +1305,10 @@ declare module "typescript" {
|
||||
>ImportDeclaration : SyntaxKind
|
||||
|
||||
ImportClause = 204,
|
||||
|
||||
>ImportClause : SyntaxKind
|
||||
|
||||
NamespaceImport = 205,
|
||||
|
||||
>NamespaceImport : SyntaxKind
|
||||
|
||||
@@ -1297,10 +1331,6 @@ declare module "typescript" {
|
||||
NamedExports = 210,
|
||||
|
||||
>NamedExports : SyntaxKind
|
||||
|
||||
>ExternalModuleReference : SyntaxKind
|
||||
|
||||
CaseClause = 203,
|
||||
|
||||
ExportSpecifier = 211,
|
||||
|
||||
@@ -2399,10 +2429,18 @@ declare module "typescript" {
|
||||
name?: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
|
||||
>Identifier : Identifier
|
||||
|
||||
body: Block | Expression;
|
||||
|
||||
>body : Expression | Block
|
||||
>Block : Block
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface LiteralExpression extends PrimaryExpression {
|
||||
|
||||
>LiteralExpression : LiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
text: string;
|
||||
@@ -2424,8 +2462,8 @@ declare module "typescript" {
|
||||
>_stringLiteralExpressionBrand : any
|
||||
}
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
interface TemplateExpression extends PrimaryExpression {
|
||||
|
||||
>TemplateExpression : TemplateExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
@@ -2446,6 +2484,90 @@ declare module "typescript" {
|
||||
>TemplateSpan : TemplateSpan
|
||||
>Node : Node
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
|
||||
literal: LiteralExpression;
|
||||
|
||||
>literal : LiteralExpression
|
||||
>LiteralExpression : LiteralExpression
|
||||
}
|
||||
|
||||
interface ParenthesizedExpression extends PrimaryExpression {
|
||||
|
||||
>ParenthesizedExpression : ParenthesizedExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
|
||||
>ArrayLiteralExpression : ArrayLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
elements: NodeArray<Expression>;
|
||||
|
||||
>elements : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface SpreadElementExpression extends Expression {
|
||||
|
||||
>SpreadElementExpression : SpreadElementExpression
|
||||
>Expression : Expression
|
||||
|
||||
expression: Expression;
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||
|
||||
>ObjectLiteralExpression : ObjectLiteralExpression
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
>Declaration : Declaration
|
||||
|
||||
properties: NodeArray<ObjectLiteralElement>;
|
||||
|
||||
>properties : NodeArray<ObjectLiteralElement>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ObjectLiteralElement : ObjectLiteralElement
|
||||
}
|
||||
|
||||
interface PropertyAccessExpression extends MemberExpression {
|
||||
|
||||
>PropertyAccessExpression : PropertyAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
name: Identifier;
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
}
|
||||
|
||||
interface ElementAccessExpression extends MemberExpression {
|
||||
|
||||
>ElementAccessExpression : ElementAccessExpression
|
||||
>MemberExpression : MemberExpression
|
||||
|
||||
expression: LeftHandSideExpression;
|
||||
|
||||
>expression : LeftHandSideExpression
|
||||
>LeftHandSideExpression : LeftHandSideExpression
|
||||
|
||||
argumentExpression?: Expression;
|
||||
|
||||
>argumentExpression : Expression
|
||||
@@ -2469,9 +2591,10 @@ declare module "typescript" {
|
||||
>TypeNode : TypeNode
|
||||
|
||||
arguments: NodeArray<Expression>;
|
||||
>PrimaryExpression : PrimaryExpression
|
||||
|
||||
>arguments : NodeArray<Expression>
|
||||
>NodeArray : NodeArray<T>
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NewExpression extends CallExpression, PrimaryExpression {
|
||||
@@ -3085,9 +3208,9 @@ declare module "typescript" {
|
||||
namedBindings?: NamespaceImport | NamedImports;
|
||||
|
||||
>namedBindings : NamespaceImport | NamedImportsOrExports
|
||||
interface ModuleBlock extends Node, ModuleElement {
|
||||
|
||||
>ModuleBlock : ModuleBlock
|
||||
>NamespaceImport : NamespaceImport
|
||||
>NamedImports : NamedImportsOrExports
|
||||
}
|
||||
|
||||
interface NamespaceImport extends Declaration {
|
||||
|
||||
@@ -3106,14 +3229,16 @@ declare module "typescript" {
|
||||
>Statement : Statement
|
||||
>ModuleElement : ModuleElement
|
||||
|
||||
>name : Identifier
|
||||
>Identifier : Identifier
|
||||
|
||||
exportClause?: NamedExports;
|
||||
|
||||
>exportClause : NamedImportsOrExports
|
||||
>NamedExports : NamedImportsOrExports
|
||||
|
||||
moduleSpecifier?: Expression;
|
||||
|
||||
>moduleSpecifier : Expression
|
||||
>EntityName : Identifier | QualifiedName
|
||||
>ExternalModuleReference : ExternalModuleReference
|
||||
>Expression : Expression
|
||||
}
|
||||
|
||||
interface NamedImportsOrExports extends Node {
|
||||
|
||||
@@ -3122,15 +3247,15 @@ declare module "typescript" {
|
||||
|
||||
elements: NodeArray<ImportOrExportSpecifier>;
|
||||
|
||||
|
||||
>expression : Expression
|
||||
>Expression : Expression
|
||||
}
|
||||
>elements : NodeArray<ImportOrExportSpecifier>
|
||||
>NodeArray : NodeArray<T>
|
||||
>ImportOrExportSpecifier : ImportOrExportSpecifier
|
||||
}
|
||||
|
||||
interface ExportAssignment extends Statement, ModuleElement {
|
||||
|
||||
>ExportAssignment : ExportAssignment
|
||||
>Statement : Statement
|
||||
type NamedImports = NamedImportsOrExports;
|
||||
|
||||
>NamedImports : NamedImportsOrExports
|
||||
>NamedImportsOrExports : NamedImportsOrExports
|
||||
|
||||
type NamedExports = NamedImportsOrExports;
|
||||
|
||||
@@ -3459,13 +3584,20 @@ declare module "typescript" {
|
||||
>DiagnosticsPresent_OutputsGenerated : ExitStatus
|
||||
}
|
||||
|
||||
>SourceFile : SourceFile
|
||||
}
|
||||
interface EmitResult {
|
||||
|
||||
>EmitResult : EmitResult
|
||||
|
||||
emitSkipped: boolean;
|
||||
|
||||
>emitSkipped : boolean
|
||||
|
||||
diagnostics: Diagnostic[];
|
||||
|
||||
>diagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
sourceMaps: SourceMapData[];
|
||||
|
||||
>sourceMaps : SourceMapData[]
|
||||
>SourceMapData : SourceMapData
|
||||
@@ -3534,8 +3666,12 @@ declare module "typescript" {
|
||||
>Type : Type
|
||||
>kind : SignatureKind
|
||||
>SignatureKind : SignatureKind
|
||||
>node : Node
|
||||
>Node : Node
|
||||
>Signature : Signature
|
||||
|
||||
getIndexTypeOfType(type: Type, kind: IndexKind): Type;
|
||||
|
||||
>getIndexTypeOfType : (type: Type, kind: IndexKind) => Type
|
||||
>type : Type
|
||||
>Type : Type
|
||||
>kind : IndexKind
|
||||
>IndexKind : IndexKind
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,5): error TS2439: Import declaration in an ambient external module declaration cannot reference external module through relative external module name.
|
||||
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,5): error TS2439: Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name.
|
||||
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,25): error TS2307: Cannot find external module './SubModule'.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.
|
||||
declare module "OuterModule" {
|
||||
import m2 = require("./SubModule");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2439: Import declaration in an ambient external module declaration cannot reference external module through relative external module name.
|
||||
!!! error TS2439: Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name.
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module './SubModule'.
|
||||
class SubModule {
|
||||
|
||||
@@ -63,14 +63,14 @@ var M;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_1) {
|
||||
var d = (function () {
|
||||
function d() {
|
||||
}
|
||||
Object.defineProperty(d.prototype, "Z", {
|
||||
set: function (p) {
|
||||
var M = 10;
|
||||
this.y = _M.x;
|
||||
this.y = _M_1.x;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
@@ -94,14 +94,14 @@ var M;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_2) {
|
||||
var f = (function () {
|
||||
function f() {
|
||||
}
|
||||
Object.defineProperty(f.prototype, "Z", {
|
||||
get: function () {
|
||||
var M = 10;
|
||||
return _M.x;
|
||||
return _M_2.x;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
|
||||
@@ -35,21 +35,21 @@ var M;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_1) {
|
||||
var d = (function () {
|
||||
function d(M, p) {
|
||||
if (p === void 0) { p = _M.x; }
|
||||
if (p === void 0) { p = _M_1.x; }
|
||||
this.M = M;
|
||||
}
|
||||
return d;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_2) {
|
||||
var d2 = (function () {
|
||||
function d2() {
|
||||
var M = 10;
|
||||
var p = _M.x;
|
||||
var p = _M_2.x;
|
||||
}
|
||||
return d2;
|
||||
})();
|
||||
|
||||
@@ -28,17 +28,17 @@ var M;
|
||||
}
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_1) {
|
||||
function fn2() {
|
||||
var M;
|
||||
var p = _M.x;
|
||||
var p = _M_1.x;
|
||||
}
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_2) {
|
||||
function fn3() {
|
||||
function M() {
|
||||
var p = _M.x;
|
||||
var p = _M_2.x;
|
||||
}
|
||||
}
|
||||
})(M || (M = {}));
|
||||
|
||||
@@ -27,19 +27,19 @@ var m1;
|
||||
})(m1 || (m1 = {}));
|
||||
var foo = new m1.m1();
|
||||
var m2;
|
||||
(function (__m2) {
|
||||
(function (_m2_1) {
|
||||
var m2 = (function () {
|
||||
function m2() {
|
||||
}
|
||||
return m2;
|
||||
})();
|
||||
__m2.m2 = m2;
|
||||
_m2_1.m2 = m2;
|
||||
var _m2 = (function () {
|
||||
function _m2() {
|
||||
}
|
||||
return _m2;
|
||||
})();
|
||||
__m2._m2 = _m2;
|
||||
_m2_1._m2 = _m2;
|
||||
})(m2 || (m2 = {}));
|
||||
var foo = new m2.m2();
|
||||
var foo = new m2._m2();
|
||||
|
||||
@@ -46,25 +46,25 @@ var M;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_1) {
|
||||
var d = (function () {
|
||||
function d() {
|
||||
}
|
||||
d.prototype.fn2 = function () {
|
||||
var M;
|
||||
var p = _M.x;
|
||||
var p = _M_1.x;
|
||||
};
|
||||
return d;
|
||||
})();
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_2) {
|
||||
var e = (function () {
|
||||
function e() {
|
||||
}
|
||||
e.prototype.fn3 = function () {
|
||||
function M() {
|
||||
var p = _M.x;
|
||||
var p = _M_2.x;
|
||||
}
|
||||
};
|
||||
return e;
|
||||
|
||||
@@ -53,7 +53,7 @@ var M;
|
||||
})(m1 || (m1 = {}));
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_1) {
|
||||
var m2;
|
||||
(function (m2) {
|
||||
var M = (function () {
|
||||
@@ -61,17 +61,17 @@ var M;
|
||||
}
|
||||
return M;
|
||||
})();
|
||||
var p = _M.x;
|
||||
var p = _M_1.x;
|
||||
var p2 = new M();
|
||||
})(m2 || (m2 = {}));
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_2) {
|
||||
var m3;
|
||||
(function (m3) {
|
||||
function M() {
|
||||
}
|
||||
var p = _M.x;
|
||||
var p = _M_2.x;
|
||||
var p2 = M();
|
||||
})(m3 || (m3 = {}));
|
||||
})(M || (M = {}));
|
||||
@@ -84,12 +84,12 @@ var M;
|
||||
})(m3 || (m3 = {}));
|
||||
})(M || (M = {}));
|
||||
var M;
|
||||
(function (_M) {
|
||||
(function (_M_3) {
|
||||
var m4;
|
||||
(function (m4) {
|
||||
var M;
|
||||
(function (M) {
|
||||
var p = _M.x;
|
||||
var p = _M_3.x;
|
||||
})(M || (M = {}));
|
||||
})(m4 || (m4 = {}));
|
||||
})(M || (M = {}));
|
||||
|
||||
11
tests/baselines/reference/es6ImportDefaultBinding.errors.txt
Normal file
11
tests/baselines/reference/es6ImportDefaultBinding.errors.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/es6ImportDefaultBinding_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBinding_0"' has no default export or export assignment.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBinding_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBinding_1.ts (1 errors) ====
|
||||
import defaultBinding from "es6ImportDefaultBinding_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBinding_0"' has no default export or export assignment.
|
||||
12
tests/baselines/reference/es6ImportDefaultBinding.js
Normal file
12
tests/baselines/reference/es6ImportDefaultBinding.js
Normal file
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBinding.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBinding_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBinding_1.ts]
|
||||
import defaultBinding from "es6ImportDefaultBinding_0";
|
||||
|
||||
//// [es6ImportDefaultBinding_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportDefaultBinding_1.js]
|
||||
@@ -0,0 +1,51 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(2,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(3,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(4,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(5,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (12 errors) ====
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
@@ -0,0 +1,21 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.ts]
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.js]
|
||||
@@ -0,0 +1,51 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(3,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(5,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (12 errors) ====
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding'.
|
||||
@@ -0,0 +1,21 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts]
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.js]
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export or export assignment.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ====
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export or export assignment.
|
||||
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.js]
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export or export assignment.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts (1 errors) ====
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export or export assignment.
|
||||
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js]
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' has no default export or export assignment.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts (1 errors) ====
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' has no default export or export assignment.
|
||||
12
tests/baselines/reference/es6ImportDefaultBindingInEs5.js
Normal file
12
tests/baselines/reference/es6ImportDefaultBindingInEs5.js
Normal file
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportDefaultBindingInEs5.ts] ////
|
||||
|
||||
//// [es6ImportDefaultBindingInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBindingInEs5_1.ts]
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
|
||||
//// [es6ImportDefaultBindingInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportDefaultBindingInEs5_1.js]
|
||||
12
tests/baselines/reference/es6ImportNameSpaceImport.js
Normal file
12
tests/baselines/reference/es6ImportNameSpaceImport.js
Normal file
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportNameSpaceImport.ts] ////
|
||||
|
||||
//// [es6ImportNameSpaceImport_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportNameSpaceImport_1.ts]
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImport_0";
|
||||
|
||||
//// [es6ImportNameSpaceImport_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportNameSpaceImport_1.js]
|
||||
9
tests/baselines/reference/es6ImportNameSpaceImport.types
Normal file
9
tests/baselines/reference/es6ImportNameSpaceImport.types
Normal file
@@ -0,0 +1,9 @@
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImport_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImport_1.ts ===
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImport_0";
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
12
tests/baselines/reference/es6ImportNameSpaceImportInEs5.js
Normal file
12
tests/baselines/reference/es6ImportNameSpaceImportInEs5.js
Normal file
@@ -0,0 +1,12 @@
|
||||
//// [tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts] ////
|
||||
|
||||
//// [es6ImportNameSpaceImportInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportNameSpaceImportInEs5_1.ts]
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImportInEs5_0";
|
||||
|
||||
//// [es6ImportNameSpaceImportInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportNameSpaceImportInEs5_1.js]
|
||||
@@ -0,0 +1,9 @@
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImportInEs5_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNameSpaceImportInEs5_1.ts ===
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImportInEs5_0";
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
27
tests/baselines/reference/es6ImportNamedImport.js
Normal file
27
tests/baselines/reference/es6ImportNamedImport.js
Normal file
@@ -0,0 +1,27 @@
|
||||
//// [tests/cases/compiler/es6ImportNamedImport.ts] ////
|
||||
|
||||
//// [es6ImportNamedImport_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
//// [es6ImportNamedImport_1.ts]
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
import { a } from "es6ImportNamedImport_0";
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
|
||||
//// [es6ImportNamedImport_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
exports.a1 = 10;
|
||||
exports.x1 = 10;
|
||||
//// [es6ImportNamedImport_1.js]
|
||||
50
tests/baselines/reference/es6ImportNamedImport.types
Normal file
50
tests/baselines/reference/es6ImportNamedImport.types
Normal file
@@ -0,0 +1,50 @@
|
||||
=== tests/cases/compiler/es6ImportNamedImport_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
export var x = a;
|
||||
>x : number
|
||||
>a : number
|
||||
|
||||
export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
export var a1 = 10;
|
||||
>a1 : number
|
||||
|
||||
export var x1 = 10;
|
||||
>x1 : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImport_1.ts ===
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
import { a } from "es6ImportNamedImport_0";
|
||||
>a : number
|
||||
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
>a : unknown
|
||||
>b : number
|
||||
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
>x : number
|
||||
>a : unknown
|
||||
>y : number
|
||||
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
>x : unknown
|
||||
>z : number
|
||||
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
>m : number
|
||||
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
>a1 : number
|
||||
>x1 : number
|
||||
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
>a1 : unknown
|
||||
>a11 : number
|
||||
>x1 : unknown
|
||||
>x11 : number
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS2300: Duplicate identifier 'yield'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,23): error TS2307: Cannot find external module 'somemodule'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,10): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,10): error TS2300: Duplicate identifier 'default'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,25): error TS2307: Cannot find external module 'somemodule'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,19): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,19): error TS2300: Duplicate identifier 'default'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,34): error TS2307: Cannot find external module 'somemodule'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS2300: Duplicate identifier 'yield'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,34): error TS2307: Cannot find external module 'somemodule'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(6,21): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(6,21): error TS2300: Duplicate identifier 'default'.
|
||||
tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(6,36): error TS2307: Cannot find external module 'somemodule'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts (13 errors) ====
|
||||
|
||||
import { yield } from "somemodule"; // Allowed
|
||||
~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'yield'.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'somemodule'.
|
||||
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'somemodule'.
|
||||
import { yield as default } from "somemodule"; // error to use default as binding name
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'somemodule'.
|
||||
import { default as yield } from "somemodule"; // no error
|
||||
~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'yield'.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'somemodule'.
|
||||
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
||||
~~~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'default'.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'somemodule'.
|
||||
@@ -0,0 +1,9 @@
|
||||
//// [es6ImportNamedImportIdentifiersParsing.ts]
|
||||
|
||||
import { yield } from "somemodule"; // Allowed
|
||||
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
||||
import { yield as default } from "somemodule"; // error to use default as binding name
|
||||
import { default as yield } from "somemodule"; // no error
|
||||
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
||||
|
||||
//// [es6ImportNamedImportIdentifiersParsing.js]
|
||||
27
tests/baselines/reference/es6ImportNamedImportInEs5.js
Normal file
27
tests/baselines/reference/es6ImportNamedImportInEs5.js
Normal file
@@ -0,0 +1,27 @@
|
||||
//// [tests/cases/compiler/es6ImportNamedImportInEs5.ts] ////
|
||||
|
||||
//// [es6ImportNamedImportInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
//// [es6ImportNamedImportInEs5_1.ts]
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
import { a } from "es6ImportNamedImportInEs5_0";
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
|
||||
//// [es6ImportNamedImportInEs5_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
exports.a1 = 10;
|
||||
exports.x1 = 10;
|
||||
//// [es6ImportNamedImportInEs5_1.js]
|
||||
50
tests/baselines/reference/es6ImportNamedImportInEs5.types
Normal file
50
tests/baselines/reference/es6ImportNamedImportInEs5.types
Normal file
@@ -0,0 +1,50 @@
|
||||
=== tests/cases/compiler/es6ImportNamedImportInEs5_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
export var x = a;
|
||||
>x : number
|
||||
>a : number
|
||||
|
||||
export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
export var a1 = 10;
|
||||
>a1 : number
|
||||
|
||||
export var x1 = 10;
|
||||
>x1 : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImportInEs5_1.ts ===
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
import { a } from "es6ImportNamedImportInEs5_0";
|
||||
>a : number
|
||||
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
>a : unknown
|
||||
>b : number
|
||||
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
>x : number
|
||||
>a : unknown
|
||||
>y : number
|
||||
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
>x : unknown
|
||||
>z : number
|
||||
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
>m : number
|
||||
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
>a1 : number
|
||||
>x1 : number
|
||||
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
>a1 : unknown
|
||||
>a11 : number
|
||||
>x1 : unknown
|
||||
>x11 : number
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,10): error TS1003: Identifier expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,10): error TS1141: String literal expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,12): error TS1109: Expression expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,14): error TS2304: Cannot find name 'from'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,19): error TS1005: ';' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,8): error TS1192: External module '"tests/cases/compiler/es6ImportNamedImportParsingError_0"' has no default export or export assignment.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,24): error TS1005: '{' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,1): error TS1128: Declaration or statement expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,8): error TS1128: Declaration or statement expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,16): error TS2304: Cannot find name 'from'.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,21): error TS1005: ';' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,13): error TS1005: 'from' expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,13): error TS1141: String literal expected.
|
||||
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportParsingError_0.ts (0 errors) ====
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportParsingError_1.ts (14 errors) ====
|
||||
import { * } from "es6ImportNamedImportParsingError_0";
|
||||
~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~
|
||||
!!! error TS1141: String literal expected.
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'from'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
import defaultBinding, from "es6ImportNamedImportParsingError_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: External module '"tests/cases/compiler/es6ImportNamedImportParsingError_0"' has no default export or export assignment.
|
||||
~~~~
|
||||
!!! error TS1005: '{' expected.
|
||||
import , { a } from "es6ImportNamedImportParsingError_0";
|
||||
~~~~~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
~~~~
|
||||
!!! error TS2304: Cannot find name 'from'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
import { a }, from "es6ImportNamedImportParsingError_0";
|
||||
~
|
||||
!!! error TS1005: 'from' expected.
|
||||
~~~~~~
|
||||
!!! error TS1141: String literal expected.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1005: ';' expected.
|
||||
@@ -0,0 +1,28 @@
|
||||
//// [tests/cases/compiler/es6ImportNamedImportParsingError.ts] ////
|
||||
|
||||
//// [es6ImportNamedImportParsingError_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
//// [es6ImportNamedImportParsingError_1.ts]
|
||||
import { * } from "es6ImportNamedImportParsingError_0";
|
||||
import defaultBinding, from "es6ImportNamedImportParsingError_0";
|
||||
import , { a } from "es6ImportNamedImportParsingError_0";
|
||||
import { a }, from "es6ImportNamedImportParsingError_0";
|
||||
|
||||
//// [es6ImportNamedImportParsingError_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
//// [es6ImportNamedImportParsingError_1.js]
|
||||
from;
|
||||
"es6ImportNamedImportParsingError_0";
|
||||
{
|
||||
_module_1.a;
|
||||
}
|
||||
from;
|
||||
"es6ImportNamedImportParsingError_0";
|
||||
var _module_1 = require();
|
||||
"es6ImportNamedImportParsingError_0";
|
||||
@@ -0,0 +1,8 @@
|
||||
tests/cases/compiler/es6ImportParseErrors.ts(2,1): error TS1128: Declaration or statement expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportParseErrors.ts (1 errors) ====
|
||||
|
||||
import 10;
|
||||
~~~~~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
6
tests/baselines/reference/es6ImportParseErrors.js
Normal file
6
tests/baselines/reference/es6ImportParseErrors.js
Normal file
@@ -0,0 +1,6 @@
|
||||
//// [es6ImportParseErrors.ts]
|
||||
|
||||
import 10;
|
||||
|
||||
//// [es6ImportParseErrors.js]
|
||||
10;
|
||||
13
tests/baselines/reference/es6ImportWithoutFromClause.js
Normal file
13
tests/baselines/reference/es6ImportWithoutFromClause.js
Normal file
@@ -0,0 +1,13 @@
|
||||
//// [tests/cases/compiler/es6ImportWithoutFromClause.ts] ////
|
||||
|
||||
//// [es6ImportWithoutFromClause_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportWithoutFromClause_1.ts]
|
||||
import "es6ImportWithoutFromClause_0";
|
||||
|
||||
//// [es6ImportWithoutFromClause_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportWithoutFromClause_1.js]
|
||||
require("es6ImportWithoutFromClause_0");
|
||||
@@ -0,0 +1,8 @@
|
||||
=== tests/cases/compiler/es6ImportWithoutFromClause_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportWithoutFromClause_1.ts ===
|
||||
import "es6ImportWithoutFromClause_0";
|
||||
No type information for this code.
|
||||
13
tests/baselines/reference/es6ImportWithoutFromClauseInEs5.js
Normal file
13
tests/baselines/reference/es6ImportWithoutFromClauseInEs5.js
Normal file
@@ -0,0 +1,13 @@
|
||||
//// [tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts] ////
|
||||
|
||||
//// [es6ImportWithoutFromClauseInEs5_0.ts]
|
||||
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportWithoutFromClauseInEs5_1.ts]
|
||||
import "es6ImportWithoutFromClauseInEs5_0";
|
||||
|
||||
//// [es6ImportWithoutFromClauseInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportWithoutFromClauseInEs5_1.js]
|
||||
require("es6ImportWithoutFromClauseInEs5_0");
|
||||
@@ -0,0 +1,8 @@
|
||||
=== tests/cases/compiler/es6ImportWithoutFromClauseInEs5_0.ts ===
|
||||
|
||||
export var a = 10;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportWithoutFromClauseInEs5_1.ts ===
|
||||
import "es6ImportWithoutFromClauseInEs5_0";
|
||||
No type information for this code.
|
||||
@@ -143,8 +143,8 @@ var moduleType1;
|
||||
moduleType1.baz1;
|
||||
})(moduleType1 || (moduleType1 = {}));
|
||||
var moduleType\u0032;
|
||||
(function (moduleType\u0032) {
|
||||
moduleType\u0032.baz2;
|
||||
(function (moduleType2) {
|
||||
moduleType2.baz2;
|
||||
})(moduleType\u0032 || (moduleType\u0032 = {}));
|
||||
moduleType1.baz1 = 3;
|
||||
moduleType\u0031.baz1 = 3;
|
||||
|
||||
@@ -12,6 +12,5 @@ export module myModule {
|
||||
//// [importInsideModule_file2.js]
|
||||
var myModule;
|
||||
(function (myModule) {
|
||||
var foo = require("importInsideModule_file1");
|
||||
var a = foo.x;
|
||||
})(myModule = exports.myModule || (exports.myModule = {}));
|
||||
|
||||
@@ -80,59 +80,59 @@ var schema;
|
||||
})(schema || (schema = {}));
|
||||
// Constructor types
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_1) {
|
||||
function createValidator2(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator2 = createValidator2;
|
||||
_schema_1.createValidator2 = createValidator2;
|
||||
})(schema || (schema = {}));
|
||||
// union types
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_2) {
|
||||
function createValidator3(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator3 = createValidator3;
|
||||
_schema_2.createValidator3 = createValidator3;
|
||||
})(schema || (schema = {}));
|
||||
// Array types
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_3) {
|
||||
function createValidator4(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator4 = createValidator4;
|
||||
_schema_3.createValidator4 = createValidator4;
|
||||
})(schema || (schema = {}));
|
||||
// TypeLiterals
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_4) {
|
||||
function createValidator5(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator5 = createValidator5;
|
||||
_schema_4.createValidator5 = createValidator5;
|
||||
})(schema || (schema = {}));
|
||||
// Tuple types
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_5) {
|
||||
function createValidator6(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator6 = createValidator6;
|
||||
_schema_5.createValidator6 = createValidator6;
|
||||
})(schema || (schema = {}));
|
||||
// Paren Types
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_6) {
|
||||
function createValidator7(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator7 = createValidator7;
|
||||
_schema_6.createValidator7 = createValidator7;
|
||||
})(schema || (schema = {}));
|
||||
// Type reference
|
||||
var schema;
|
||||
(function (_schema) {
|
||||
(function (_schema_7) {
|
||||
function createValidator8(schema) {
|
||||
return undefined;
|
||||
}
|
||||
_schema.createValidator8 = createValidator8;
|
||||
_schema_7.createValidator8 = createValidator8;
|
||||
})(schema || (schema = {}));
|
||||
var schema;
|
||||
(function (schema) {
|
||||
|
||||
@@ -30,10 +30,10 @@ var Z;
|
||||
var A;
|
||||
(function (A) {
|
||||
var M;
|
||||
(function (M) {
|
||||
(function (_M) {
|
||||
function bar() {
|
||||
}
|
||||
M.bar = bar;
|
||||
_M.bar = bar;
|
||||
M.bar(); // Should call Z.M.bar
|
||||
})(M = A.M || (A.M = {}));
|
||||
})(A || (A = {}));
|
||||
|
||||
@@ -24,9 +24,9 @@ var Z;
|
||||
var A;
|
||||
(function (A) {
|
||||
var M;
|
||||
(function (M) {
|
||||
(function (_M) {
|
||||
function bar() {
|
||||
}
|
||||
M.bar = bar;
|
||||
_M.bar = bar;
|
||||
})(M = A.M || (A.M = {}));
|
||||
})(A || (A = {}));
|
||||
|
||||
@@ -48,7 +48,7 @@ module D {
|
||||
|
||||
//// [nameCollision.js]
|
||||
var A;
|
||||
(function (__A) {
|
||||
(function (_A_1) {
|
||||
// these 2 statements force an underscore before the 'A'
|
||||
// in the generated function call.
|
||||
var A = 12;
|
||||
@@ -83,15 +83,15 @@ var X;
|
||||
})(Y = _X.Y || (_X.Y = {}));
|
||||
})(X || (X = {}));
|
||||
var Y;
|
||||
(function (_Y) {
|
||||
(function (_Y_1) {
|
||||
var Y;
|
||||
(function (_Y) {
|
||||
(function (_Y_2) {
|
||||
(function (Y) {
|
||||
Y[Y["Red"] = 0] = "Red";
|
||||
Y[Y["Blue"] = 1] = "Blue";
|
||||
})(_Y.Y || (_Y.Y = {}));
|
||||
var Y = _Y.Y;
|
||||
})(Y = _Y.Y || (_Y.Y = {}));
|
||||
})(_Y_2.Y || (_Y_2.Y = {}));
|
||||
var Y = _Y_2.Y;
|
||||
})(Y = _Y_1.Y || (_Y_1.Y = {}));
|
||||
})(Y || (Y = {}));
|
||||
// no collision, since interface doesn't
|
||||
// generate code.
|
||||
|
||||
@@ -7,9 +7,7 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(69,37): error TS1147: Import
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(69,37): error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(80,35): error TS4000: Import declaration 'm1_im2_public' is using private name 'm1_M2_private'.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(81,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(81,43): error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(82,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(82,43): error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(121,38): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(125,45): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(133,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
@@ -20,7 +18,7 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(146,25): error TS1147: Impor
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(149,29): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyGloImportParseErrors.ts (20 errors) ====
|
||||
==== tests/cases/compiler/privacyGloImportParseErrors.ts (18 errors) ====
|
||||
module m1 {
|
||||
export module m1_M1_public {
|
||||
export class c1 {
|
||||
@@ -120,13 +118,9 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(149,29): error TS1147: Impor
|
||||
export import m1_im3_public = require("m1_M3_public");
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
export import m1_im4_public = require("m1_M4_private");
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
}
|
||||
|
||||
module glo_M1_public {
|
||||
|
||||
@@ -203,7 +203,6 @@ var m1;
|
||||
var m1_im2_private_v2_private = new m1_im2_private.c1();
|
||||
var m1_im2_private_v3_private = m1_im2_private.f1;
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
var m1_im3_private = require("m1_M3_public");
|
||||
m1.m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
m1.m1_im3_private_v2_public = new m1_im3_private.c1();
|
||||
m1.m1_im3_private_v3_public = m1_im3_private.f1;
|
||||
@@ -212,7 +211,6 @@ var m1;
|
||||
var m1_im3_private_v2_private = new m1_im3_private.c1();
|
||||
var m1_im3_private_v3_private = m1_im3_private.f1;
|
||||
var m1_im3_private_v4_private = m1_im3_private.f1();
|
||||
var m1_im4_private = require("m1_M4_private");
|
||||
m1.m1_im4_private_v1_public = m1_im4_private.c1;
|
||||
m1.m1_im4_private_v2_public = new m1_im4_private.c1();
|
||||
m1.m1_im4_private_v3_public = m1_im4_private.f1;
|
||||
@@ -240,7 +238,7 @@ var glo_M1_public;
|
||||
glo_M1_public.v2;
|
||||
})(glo_M1_public || (glo_M1_public = {}));
|
||||
var m2;
|
||||
(function (m2) {
|
||||
(function (_m2) {
|
||||
var m4;
|
||||
(function (m4) {
|
||||
var a = 10;
|
||||
|
||||
@@ -5,9 +5,7 @@ tests/cases/compiler/privacyImportParseErrors.ts(59,37): error TS2307: Cannot fi
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(69,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(69,37): error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(81,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(81,43): error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(82,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(82,43): error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(106,27): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(114,20): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(143,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
@@ -15,9 +13,7 @@ tests/cases/compiler/privacyImportParseErrors.ts(143,37): error TS2307: Cannot f
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(153,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(153,37): error TS2307: Cannot find external module 'm2_M4_private'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(166,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(166,43): error TS2307: Cannot find external module 'm2_M3_public'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(167,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(167,43): error TS2307: Cannot find external module 'm2_M4_private'.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(180,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(198,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(218,34): error TS2307: Cannot find external module 'glo_M2_public'.
|
||||
@@ -53,7 +49,7 @@ tests/cases/compiler/privacyImportParseErrors.ts(350,25): error TS1147: Import d
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(353,29): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyImportParseErrors.ts (53 errors) ====
|
||||
==== tests/cases/compiler/privacyImportParseErrors.ts (49 errors) ====
|
||||
export module m1 {
|
||||
export module m1_M1_public {
|
||||
export class c1 {
|
||||
@@ -149,13 +145,9 @@ tests/cases/compiler/privacyImportParseErrors.ts(353,29): error TS1147: Import d
|
||||
export import m1_im3_public = require("m1_M3_public");
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
export import m1_im4_public = require("m1_M4_private");
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M4_private'.
|
||||
}
|
||||
|
||||
module m2 {
|
||||
@@ -254,13 +246,9 @@ tests/cases/compiler/privacyImportParseErrors.ts(353,29): error TS1147: Import d
|
||||
export import m1_im3_public = require("m2_M3_public");
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm2_M3_public'.
|
||||
export import m1_im4_public = require("m2_M4_private");
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm2_M4_private'.
|
||||
}
|
||||
|
||||
export module glo_M1_public {
|
||||
|
||||
@@ -407,7 +407,6 @@ var m1;
|
||||
var m1_im2_private_v2_private = new m1_im2_private.c1();
|
||||
var m1_im2_private_v3_private = m1_im2_private.f1;
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
var m1_im3_private = require("m1_M3_public");
|
||||
m1.m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
m1.m1_im3_private_v2_public = new m1_im3_private.c1();
|
||||
m1.m1_im3_private_v3_public = m1_im3_private.f1;
|
||||
@@ -416,7 +415,6 @@ var m1;
|
||||
var m1_im3_private_v2_private = new m1_im3_private.c1();
|
||||
var m1_im3_private_v3_private = m1_im3_private.f1;
|
||||
var m1_im3_private_v4_private = m1_im3_private.f1();
|
||||
var m1_im4_private = require("m1_M4_private");
|
||||
m1.m1_im4_private_v1_public = m1_im4_private.c1;
|
||||
m1.m1_im4_private_v2_public = new m1_im4_private.c1();
|
||||
m1.m1_im4_private_v3_public = m1_im4_private.f1;
|
||||
@@ -478,7 +476,6 @@ var m2;
|
||||
var m1_im2_private_v2_private = new m1_im2_private.c1();
|
||||
var m1_im2_private_v3_private = m1_im2_private.f1;
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
var m1_im3_private = require("m2_M3_public");
|
||||
m2.m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
m2.m1_im3_private_v2_public = new m1_im3_private.c1();
|
||||
m2.m1_im3_private_v3_public = m1_im3_private.f1;
|
||||
@@ -487,7 +484,6 @@ var m2;
|
||||
var m1_im3_private_v2_private = new m1_im3_private.c1();
|
||||
var m1_im3_private_v3_private = m1_im3_private.f1;
|
||||
var m1_im3_private_v4_private = m1_im3_private.f1();
|
||||
var m1_im4_private = require("m2_M4_private");
|
||||
m2.m1_im4_private_v1_public = m1_im4_private.c1;
|
||||
m2.m1_im4_private_v2_public = new m1_im4_private.c1();
|
||||
m2.m1_im4_private_v3_public = m1_im4_private.f1;
|
||||
@@ -570,14 +566,14 @@ var glo_im4_private_v4_private = glo_im4_private.f1();
|
||||
exports.glo_im1_public = glo_M1_public;
|
||||
exports.glo_im2_public = glo_M3_private;
|
||||
var m2;
|
||||
(function (m2) {
|
||||
(function (_m2) {
|
||||
var m4;
|
||||
(function (m4) {
|
||||
var a = 10;
|
||||
})(m4 || (m4 = {}));
|
||||
})(m2 || (m2 = {}));
|
||||
var m3;
|
||||
(function (m3) {
|
||||
(function (_m3) {
|
||||
var m4;
|
||||
(function (m4) {
|
||||
var a = 10;
|
||||
|
||||
@@ -6,7 +6,6 @@ var __extends = this.__extends || function (d, b) {
|
||||
};
|
||||
var m2;
|
||||
(function (m2) {
|
||||
m2.mExported = require("mExported");
|
||||
m2.c1 = new m2.mExported.me.class1;
|
||||
function f1() {
|
||||
return new m2.mExported.me.class1();
|
||||
@@ -33,7 +32,6 @@ var m2;
|
||||
}
|
||||
return class2;
|
||||
})(mExported.me.class1);
|
||||
var mNonExported = require("mNonExported");
|
||||
m2.c3 = new mNonExported.mne.class1;
|
||||
function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -6,7 +6,6 @@ var __extends = this.__extends || function (d, b) {
|
||||
};
|
||||
var m2;
|
||||
(function (m2) {
|
||||
m2.mExported = require("mExported");
|
||||
m2.c1 = new m2.mExported.me.class1;
|
||||
function f1() {
|
||||
return new m2.mExported.me.class1();
|
||||
@@ -33,7 +32,6 @@ var m2;
|
||||
}
|
||||
return class2;
|
||||
})(mExported.me.class1);
|
||||
var mNonExported = require("mNonExported");
|
||||
m2.c3 = new mNonExported.mne.class1;
|
||||
function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -116,7 +116,7 @@ var Sample;
|
||||
var Actions;
|
||||
(function (Actions) {
|
||||
var Thing;
|
||||
(function (_Thing) {
|
||||
(function (_Thing_1) {
|
||||
var Find;
|
||||
(function (Find) {
|
||||
var StartFindAction = (function () {
|
||||
@@ -129,7 +129,7 @@ var Sample;
|
||||
return StartFindAction;
|
||||
})();
|
||||
Find.StartFindAction = StartFindAction;
|
||||
})(Find = _Thing.Find || (_Thing.Find = {}));
|
||||
})(Find = _Thing_1.Find || (_Thing_1.Find = {}));
|
||||
})(Thing = Actions.Thing || (Actions.Thing = {}));
|
||||
})(Actions = Sample.Actions || (Sample.Actions = {}));
|
||||
})(Sample || (Sample = {}));
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
//// [recursiveClassReferenceTest.js.map]
|
||||
{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":["Sample","Sample.Actions","Sample.Actions.Thing","Sample.Actions.Thing.Find","Sample.Actions.Thing.Find.StartFindAction","Sample.Actions.Thing.Find.StartFindAction.constructor","Sample.Actions.Thing.Find.StartFindAction.getId","Sample.Actions.Thing.Find.StartFindAction.run","Sample.Thing","Sample.Thing.Widgets","Sample.Thing.Widgets.FindWidget","Sample.Thing.Widgets.FindWidget.constructor","Sample.Thing.Widgets.FindWidget.gar","Sample.Thing.Widgets.FindWidget.getDomNode","AbstractMode","AbstractMode.constructor","AbstractMode.getInitialState","Sample.Thing.Languages","Sample.Thing.Languages.PlainText","Sample.Thing.Languages.PlainText.State","Sample.Thing.Languages.PlainText.State.constructor","Sample.Thing.Languages.PlainText.State.clone","Sample.Thing.Languages.PlainText.State.equals","Sample.Thing.Languages.PlainText.State.getMode","Sample.Thing.Languages.PlainText.Mode","Sample.Thing.Languages.PlainText.Mode.constructor","Sample.Thing.Languages.PlainText.Mode.getInitialState"],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAACA,IAAAA,OAAOA,CAUpBA;IAVaA,WAAAA,OAAOA;QAACC,IAAAA,KAAKA,CAU1BA;QAVqBA,WAAAA,MAAKA;YAACC,IAAAA,IAAIA,CAU/BA;YAV2BA,WAAAA,IAAIA,EAACA,CAACA;gBACjCC,IAAaA,eAAeA;oBAA5BC,SAAaA,eAAeA;oBAQ5BC,CAACA;oBANOD,+BAAKA,GAAZA,cAAiBE,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAExBF,6BAAGA,GAAVA,UAAWA,KAA6BA;wBAEvCG,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBACFH,sBAACA;gBAADA,CAACA,AARDD,IAQCA;gBARYA,oBAAeA,GAAfA,eAQZA,CAAAA;YACFA,CAACA,EAV2BD,IAAIA,GAAJA,WAAIA,KAAJA,WAAIA,QAU/BA;QAADA,CAACA,EAVqBD,KAAKA,GAALA,aAAKA,KAALA,aAAKA,QAU1BA;IAADA,CAACA,EAVaD,OAAOA,GAAPA,cAAOA,KAAPA,cAAOA,QAUpBA;AAADA,CAACA,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,IAAO,MAAM,CAoBZ;AApBD,WAAO,MAAM;IAACA,IAAAA,KAAKA,CAoBlBA;IApBaA,WAAAA,KAAKA;QAACQ,IAAAA,OAAOA,CAoB1BA;QApBmBA,WAAAA,OAAOA,EAACA,CAACA;YAC5BC,IAAaA,UAAUA;gBAKtBC,SALYA,UAAUA,CAKFA,SAAkCA;oBAAlCC,cAASA,GAATA,SAASA,CAAyBA;oBAD9CA,YAAOA,GAAOA,IAAIA,CAACA;oBAGvBA,AADAA,aAAaA;oBACbA,SAASA,CAACA,SAASA,CAACA,WAAWA,EAAEA,IAAIA,CAACA,CAACA;gBAC3CA,CAACA;gBANMD,wBAAGA,GAAVA,UAAWA,MAAyCA,IAAIE,EAAEA,CAACA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAAAA,MAAMA,CAACA,MAAMA,CAACA,IAAIA,CAACA,CAACA;gBAAAA,CAACA,CAAAA,CAACA;gBAQlFF,+BAAUA,GAAjBA;oBACCG,MAAMA,CAACA,OAAOA,CAACA;gBAChBA,CAACA;gBAEMH,4BAAOA,GAAdA;gBAEAA,CAACA;gBAEFA,iBAACA;YAADA,CAACA,AAlBDD,IAkBCA;YAlBYA,kBAAUA,GAAVA,UAkBZA,CAAAA;QACFA,CAACA,EApBmBD,OAAOA,GAAPA,aAAOA,KAAPA,aAAOA,QAoB1BA;IAADA,CAACA,EApBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAoBlBA;AAADA,CAACA,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD,IAAM,YAAY;IAAlBc,SAAMA,YAAYA;IAAqEC,CAACA;IAA3CD,sCAAeA,GAAtBA,cAAmCE,MAAMA,CAACA,IAAIA,CAACA,CAAAA,CAACA;IAACF,mBAACA;AAADA,CAACA,AAAxF,IAAwF;AASxF,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAACd,IAAAA,KAAKA,CAwBlBA;IAxBaA,WAAAA,KAAKA;QAACQ,IAAAA,SAASA,CAwB5BA;QAxBmBA,WAAAA,SAASA;YAACS,IAAAA,SAASA,CAwBtCA;YAxB6BA,WAAAA,SAASA,EAACA,CAACA;gBAExCC,IAAaA,KAAKA;oBACXC,SADMA,KAAKA,CACSA,IAAWA;wBAAXC,SAAIA,GAAJA,IAAIA,CAAOA;oBAAIA,CAACA;oBACnCD,qBAAKA,GAAZA;wBACCE,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBAEMF,sBAAMA,GAAbA,UAAcA,KAAYA;wBACzBG,MAAMA,CAACA,IAAIA,KAAKA,KAAKA,CAACA;oBACvBA,CAACA;oBAEMH,uBAAOA,GAAdA,cAA0BI,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBACzCJ,YAACA;gBAADA,CAACA,AAXDD,IAWCA;gBAXYA,eAAKA,GAALA,KAWZA,CAAAA;gBAEDA,IAAaA,IAAIA;oBAASM,UAAbA,IAAIA,UAAqBA;oBAAtCA,SAAaA,IAAIA;wBAASC,8BAAYA;oBAQtCA,CAACA;oBANAD,aAAaA;oBACNA,8BAAeA,GAAtBA;wBACCE,MAAMA,CAACA,IAAIA,KAAKA,CAACA,IAAIA,CAACA,CAACA;oBACxBA,CAACA;oBAGFF,WAACA;gBAADA,CAACA,AARDN,EAA0BA,YAAYA,EAQrCA;gBARYA,cAAIA,GAAJA,IAQZA,CAAAA;YACFA,CAACA,EAxB6BD,SAASA,GAATA,mBAASA,KAATA,mBAASA,QAwBtCA;QAADA,CAACA,EAxBmBT,SAASA,GAATA,eAASA,KAATA,eAASA,QAwB5BA;IAADA,CAACA,EAxBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAwBlBA;AAADA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ"}
|
||||
{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":["Sample","Sample.Actions","Sample.Actions.Thing","Sample.Actions.Thing.Find","Sample.Actions.Thing.Find.StartFindAction","Sample.Actions.Thing.Find.StartFindAction.constructor","Sample.Actions.Thing.Find.StartFindAction.getId","Sample.Actions.Thing.Find.StartFindAction.run","Sample.Thing","Sample.Thing.Widgets","Sample.Thing.Widgets.FindWidget","Sample.Thing.Widgets.FindWidget.constructor","Sample.Thing.Widgets.FindWidget.gar","Sample.Thing.Widgets.FindWidget.getDomNode","AbstractMode","AbstractMode.constructor","AbstractMode.getInitialState","Sample.Thing.Languages","Sample.Thing.Languages.PlainText","Sample.Thing.Languages.PlainText.State","Sample.Thing.Languages.PlainText.State.constructor","Sample.Thing.Languages.PlainText.State.clone","Sample.Thing.Languages.PlainText.State.equals","Sample.Thing.Languages.PlainText.State.getMode","Sample.Thing.Languages.PlainText.Mode","Sample.Thing.Languages.PlainText.Mode.constructor","Sample.Thing.Languages.PlainText.Mode.getInitialState"],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAACA,IAAAA,OAAOA,CAUpBA;IAVaA,WAAAA,OAAOA;QAACC,IAAAA,KAAKA,CAU1BA;QAVqBA,WAAAA,QAAKA;YAACC,IAAAA,IAAIA,CAU/BA;YAV2BA,WAAAA,IAAIA,EAACA,CAACA;gBACjCC,IAAaA,eAAeA;oBAA5BC,SAAaA,eAAeA;oBAQ5BC,CAACA;oBANOD,+BAAKA,GAAZA,cAAiBE,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAExBF,6BAAGA,GAAVA,UAAWA,KAA6BA;wBAEvCG,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBACFH,sBAACA;gBAADA,CAACA,AARDD,IAQCA;gBARYA,oBAAeA,GAAfA,eAQZA,CAAAA;YACFA,CAACA,EAV2BD,IAAIA,GAAJA,aAAIA,KAAJA,aAAIA,QAU/BA;QAADA,CAACA,EAVqBD,KAAKA,GAALA,aAAKA,KAALA,aAAKA,QAU1BA;IAADA,CAACA,EAVaD,OAAOA,GAAPA,cAAOA,KAAPA,cAAOA,QAUpBA;AAADA,CAACA,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,IAAO,MAAM,CAoBZ;AApBD,WAAO,MAAM;IAACA,IAAAA,KAAKA,CAoBlBA;IApBaA,WAAAA,KAAKA;QAACQ,IAAAA,OAAOA,CAoB1BA;QApBmBA,WAAAA,OAAOA,EAACA,CAACA;YAC5BC,IAAaA,UAAUA;gBAKtBC,SALYA,UAAUA,CAKFA,SAAkCA;oBAAlCC,cAASA,GAATA,SAASA,CAAyBA;oBAD9CA,YAAOA,GAAOA,IAAIA,CAACA;oBAGvBA,AADAA,aAAaA;oBACbA,SAASA,CAACA,SAASA,CAACA,WAAWA,EAAEA,IAAIA,CAACA,CAACA;gBAC3CA,CAACA;gBANMD,wBAAGA,GAAVA,UAAWA,MAAyCA,IAAIE,EAAEA,CAACA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAAAA,MAAMA,CAACA,MAAMA,CAACA,IAAIA,CAACA,CAACA;gBAAAA,CAACA,CAAAA,CAACA;gBAQlFF,+BAAUA,GAAjBA;oBACCG,MAAMA,CAACA,OAAOA,CAACA;gBAChBA,CAACA;gBAEMH,4BAAOA,GAAdA;gBAEAA,CAACA;gBAEFA,iBAACA;YAADA,CAACA,AAlBDD,IAkBCA;YAlBYA,kBAAUA,GAAVA,UAkBZA,CAAAA;QACFA,CAACA,EApBmBD,OAAOA,GAAPA,aAAOA,KAAPA,aAAOA,QAoB1BA;IAADA,CAACA,EApBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAoBlBA;AAADA,CAACA,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD,IAAM,YAAY;IAAlBc,SAAMA,YAAYA;IAAqEC,CAACA;IAA3CD,sCAAeA,GAAtBA,cAAmCE,MAAMA,CAACA,IAAIA,CAACA,CAAAA,CAACA;IAACF,mBAACA;AAADA,CAACA,AAAxF,IAAwF;AASxF,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAACd,IAAAA,KAAKA,CAwBlBA;IAxBaA,WAAAA,KAAKA;QAACQ,IAAAA,SAASA,CAwB5BA;QAxBmBA,WAAAA,SAASA;YAACS,IAAAA,SAASA,CAwBtCA;YAxB6BA,WAAAA,SAASA,EAACA,CAACA;gBAExCC,IAAaA,KAAKA;oBACXC,SADMA,KAAKA,CACSA,IAAWA;wBAAXC,SAAIA,GAAJA,IAAIA,CAAOA;oBAAIA,CAACA;oBACnCD,qBAAKA,GAAZA;wBACCE,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBAEMF,sBAAMA,GAAbA,UAAcA,KAAYA;wBACzBG,MAAMA,CAACA,IAAIA,KAAKA,KAAKA,CAACA;oBACvBA,CAACA;oBAEMH,uBAAOA,GAAdA,cAA0BI,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBACzCJ,YAACA;gBAADA,CAACA,AAXDD,IAWCA;gBAXYA,eAAKA,GAALA,KAWZA,CAAAA;gBAEDA,IAAaA,IAAIA;oBAASM,UAAbA,IAAIA,UAAqBA;oBAAtCA,SAAaA,IAAIA;wBAASC,8BAAYA;oBAQtCA,CAACA;oBANAD,aAAaA;oBACNA,8BAAeA,GAAtBA;wBACCE,MAAMA,CAACA,IAAIA,KAAKA,CAACA,IAAIA,CAACA,CAACA;oBACxBA,CAACA;oBAGFF,WAACA;gBAADA,CAACA,AARDN,EAA0BA,YAAYA,EAQrCA;gBARYA,cAAIA,GAAJA,IAQZA,CAAAA;YACFA,CAACA,EAxB6BD,SAASA,GAATA,mBAASA,KAATA,mBAASA,QAwBtCA;QAADA,CAACA,EAxBmBT,SAASA,GAATA,eAASA,KAATA,eAASA,QAwB5BA;IAADA,CAACA,EAxBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAwBlBA;AAADA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ"}
|
||||
@@ -139,7 +139,7 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
2 > ^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^
|
||||
5 > ^^^^^^^^^^^->
|
||||
5 > ^^^^^^^^^^^^^->
|
||||
1 >.
|
||||
2 >
|
||||
3 > Thing
|
||||
@@ -159,16 +159,16 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
3 >Emitted(13, 18) Source(32, 28) + SourceIndex(0) name (Sample.Actions)
|
||||
4 >Emitted(13, 19) Source(42, 2) + SourceIndex(0) name (Sample.Actions)
|
||||
---
|
||||
>>> (function (_Thing) {
|
||||
>>> (function (_Thing_1) {
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
3 > ^^^^^^^^
|
||||
1->
|
||||
2 >
|
||||
3 > Thing
|
||||
1->Emitted(14, 9) Source(32, 23) + SourceIndex(0) name (Sample.Actions)
|
||||
2 >Emitted(14, 20) Source(32, 23) + SourceIndex(0) name (Sample.Actions)
|
||||
3 >Emitted(14, 26) Source(32, 28) + SourceIndex(0) name (Sample.Actions)
|
||||
3 >Emitted(14, 28) Source(32, 28) + SourceIndex(0) name (Sample.Actions)
|
||||
---
|
||||
>>> var Find;
|
||||
1 >^^^^^^^^^^^^
|
||||
@@ -372,7 +372,7 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
3 > ^^^
|
||||
4 > ^^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^->
|
||||
6 > ^^^^^^^->
|
||||
1->
|
||||
2 > StartFindAction
|
||||
3 >
|
||||
@@ -392,17 +392,16 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
4 >Emitted(26, 55) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find)
|
||||
5 >Emitted(26, 56) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find)
|
||||
---
|
||||
>>> })(Find = _Thing.Find || (_Thing.Find = {}));
|
||||
>>> })(Find = _Thing_1.Find || (_Thing_1.Find = {}));
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^
|
||||
3 > ^^
|
||||
4 > ^^^^
|
||||
5 > ^^^
|
||||
6 > ^^^^^^^^^^^
|
||||
7 > ^^^^^
|
||||
8 > ^^^^^^^^^^^
|
||||
9 > ^^^^^^^^
|
||||
10> ^^->
|
||||
6 > ^^^^^^^^^^^^^
|
||||
7 > ^^^^^
|
||||
8 > ^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^
|
||||
1->
|
||||
>
|
||||
2 > }
|
||||
@@ -410,31 +409,31 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
4 > Find
|
||||
5 >
|
||||
6 > Find
|
||||
7 >
|
||||
8 > Find
|
||||
9 > {
|
||||
> export class StartFindAction implements Sample.Thing.IAction {
|
||||
>
|
||||
> public getId() { return "yo"; }
|
||||
>
|
||||
> public run(Thing:Sample.Thing.ICodeThing):boolean {
|
||||
>
|
||||
> return true;
|
||||
> }
|
||||
> }
|
||||
> }
|
||||
7 >
|
||||
8 > Find
|
||||
9 > {
|
||||
> export class StartFindAction implements Sample.Thing.IAction {
|
||||
>
|
||||
> public getId() { return "yo"; }
|
||||
>
|
||||
> public run(Thing:Sample.Thing.ICodeThing):boolean {
|
||||
>
|
||||
> return true;
|
||||
> }
|
||||
> }
|
||||
> }
|
||||
1->Emitted(27, 13) Source(42, 1) + SourceIndex(0) name (Sample.Actions.Thing.Find)
|
||||
2 >Emitted(27, 14) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find)
|
||||
3 >Emitted(27, 16) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
4 >Emitted(27, 20) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
5 >Emitted(27, 23) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
6 >Emitted(27, 34) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
7 >Emitted(27, 39) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
8 >Emitted(27, 50) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
9 >Emitted(27, 58) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
6 >Emitted(27, 36) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
7 >Emitted(27, 41) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
8 >Emitted(27, 54) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
9 >Emitted(27, 62) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
---
|
||||
>>> })(Thing = Actions.Thing || (Actions.Thing = {}));
|
||||
1->^^^^^^^^
|
||||
1 >^^^^^^^^
|
||||
2 > ^
|
||||
3 > ^^
|
||||
4 > ^^^^^
|
||||
@@ -444,7 +443,7 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
8 > ^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^
|
||||
10> ^->
|
||||
1->
|
||||
1 >
|
||||
2 > }
|
||||
3 >
|
||||
4 > Thing
|
||||
@@ -463,7 +462,7 @@ sourceFile:recursiveClassReferenceTest.ts
|
||||
> }
|
||||
> }
|
||||
> }
|
||||
1->Emitted(28, 9) Source(42, 1) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
1 >Emitted(28, 9) Source(42, 1) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
2 >Emitted(28, 10) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing)
|
||||
3 >Emitted(28, 12) Source(32, 23) + SourceIndex(0) name (Sample.Actions)
|
||||
4 >Emitted(28, 17) Source(32, 28) + SourceIndex(0) name (Sample.Actions)
|
||||
|
||||
8
tests/cases/compiler/es6ImportDefaultBinding.ts
Normal file
8
tests/cases/compiler/es6ImportDefaultBinding.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBinding_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportDefaultBinding_1.ts
|
||||
import defaultBinding from "es6ImportDefaultBinding_0";
|
||||
@@ -0,0 +1,15 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamedImport_0.ts
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamedImport_1.ts
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
@@ -0,0 +1,15 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts
|
||||
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
@@ -0,0 +1,8 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
|
||||
@@ -0,0 +1,8 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
8
tests/cases/compiler/es6ImportDefaultBindingInEs5.ts
Normal file
8
tests/cases/compiler/es6ImportDefaultBindingInEs5.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportDefaultBindingInEs5_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportDefaultBindingInEs5_1.ts
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
8
tests/cases/compiler/es6ImportNameSpaceImport.ts
Normal file
8
tests/cases/compiler/es6ImportNameSpaceImport.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportNameSpaceImport_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportNameSpaceImport_1.ts
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImport_0";
|
||||
8
tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts
Normal file
8
tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportNameSpaceImportInEs5_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportNameSpaceImportInEs5_1.ts
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImportInEs5_0";
|
||||
19
tests/cases/compiler/es6ImportNamedImport.ts
Normal file
19
tests/cases/compiler/es6ImportNamedImport.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportNamedImport_0.ts
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
// @filename: es6ImportNamedImport_1.ts
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
import { a } from "es6ImportNamedImport_0";
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
@@ -0,0 +1,8 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
import { yield } from "somemodule"; // Allowed
|
||||
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
||||
import { yield as default } from "somemodule"; // error to use default as binding name
|
||||
import { default as yield } from "somemodule"; // no error
|
||||
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
||||
19
tests/cases/compiler/es6ImportNamedImportInEs5.ts
Normal file
19
tests/cases/compiler/es6ImportNamedImportInEs5.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportNamedImportInEs5_0.ts
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
// @filename: es6ImportNamedImportInEs5_1.ts
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
import { a } from "es6ImportNamedImportInEs5_0";
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
13
tests/cases/compiler/es6ImportNamedImportParsingError.ts
Normal file
13
tests/cases/compiler/es6ImportNamedImportParsingError.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportNamedImportParsingError_0.ts
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
|
||||
// @filename: es6ImportNamedImportParsingError_1.ts
|
||||
import { * } from "es6ImportNamedImportParsingError_0";
|
||||
import defaultBinding, from "es6ImportNamedImportParsingError_0";
|
||||
import , { a } from "es6ImportNamedImportParsingError_0";
|
||||
import { a }, from "es6ImportNamedImportParsingError_0";
|
||||
4
tests/cases/compiler/es6ImportParseErrors.ts
Normal file
4
tests/cases/compiler/es6ImportParseErrors.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
import 10;
|
||||
8
tests/cases/compiler/es6ImportWithoutFromClause.ts
Normal file
8
tests/cases/compiler/es6ImportWithoutFromClause.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es6
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportWithoutFromClause_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportWithoutFromClause_1.ts
|
||||
import "es6ImportWithoutFromClause_0";
|
||||
8
tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts
Normal file
8
tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @target: es5
|
||||
// @module: commonjs
|
||||
|
||||
// @filename: es6ImportWithoutFromClauseInEs5_0.ts
|
||||
export var a = 10;
|
||||
|
||||
// @filename: es6ImportWithoutFromClauseInEs5_1.ts
|
||||
import "es6ImportWithoutFromClauseInEs5_0";
|
||||
Reference in New Issue
Block a user