mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-27 23:58:38 -06:00
Flip imports to case insensitive sorting (#51579)
This commit is contained in:
parent
2d2a4343b8
commit
00dc0b6674
@ -14,6 +14,7 @@
|
||||
],
|
||||
"rules": {
|
||||
"sort-imports": ["error", {
|
||||
"ignoreCase": true,
|
||||
"ignoreDeclarationSort": true,
|
||||
"allowSeparatedGroups": true
|
||||
}],
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
import {
|
||||
__String,
|
||||
AccessExpression,
|
||||
addRelatedInfo,
|
||||
append,
|
||||
appendIfUnique,
|
||||
ArrayBindingElement,
|
||||
ArrayLiteralExpression,
|
||||
ArrowFunction,
|
||||
@ -19,129 +23,57 @@ import {
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
cast,
|
||||
CatchClause,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CompilerOptions,
|
||||
concatenate,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeleteExpression,
|
||||
DestructuringAssignment,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessage,
|
||||
DiagnosticRelatedInformation,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
DoStatement,
|
||||
DynamicNamedDeclaration,
|
||||
ElementAccessChain,
|
||||
ElementAccessExpression,
|
||||
EntityNameExpression,
|
||||
EnumDeclaration,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
FlowFlags,
|
||||
FlowLabel,
|
||||
FlowNode,
|
||||
FlowReduceLabel,
|
||||
ForInOrOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
InternalSymbolName,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocSignature,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypedefTag,
|
||||
JsxAttribute,
|
||||
JsxAttributes,
|
||||
LabeledStatement,
|
||||
LiteralLikeElementAccessExpression,
|
||||
MappedTypeNode,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
Mutable,
|
||||
NamespaceExportDeclaration,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NonNullChain,
|
||||
NonNullExpression,
|
||||
NumericLiteral,
|
||||
ObjectLiteralExpression,
|
||||
OptionalChain,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
Pattern,
|
||||
PatternAmbientModule,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
ReturnStatement,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SymbolTable,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
TokenFlags,
|
||||
TracingNode,
|
||||
TryStatement,
|
||||
TypeLiteralNode,
|
||||
TypeOfExpression,
|
||||
TypeParameterDeclaration,
|
||||
VariableDeclaration,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
__String,
|
||||
addRelatedInfo,
|
||||
append,
|
||||
appendIfUnique,
|
||||
cast,
|
||||
concatenate,
|
||||
contains,
|
||||
createBinaryExpressionTrampoline,
|
||||
createDiagnosticForNodeInSourceFile,
|
||||
createFileDiagnostic,
|
||||
createQueue,
|
||||
createSymbolTable,
|
||||
Debug,
|
||||
Declaration,
|
||||
declarationNameToString,
|
||||
DeleteExpression,
|
||||
DestructuringAssignment,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessage,
|
||||
DiagnosticRelatedInformation,
|
||||
Diagnostics,
|
||||
DiagnosticWithLocation,
|
||||
DoStatement,
|
||||
DynamicNamedDeclaration,
|
||||
ElementAccessChain,
|
||||
ElementAccessExpression,
|
||||
EntityNameExpression,
|
||||
EnumDeclaration,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
ExportAssignment,
|
||||
exportAssignmentIsAlias,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
findAncestor,
|
||||
FlowFlags,
|
||||
FlowLabel,
|
||||
FlowNode,
|
||||
FlowReduceLabel,
|
||||
forEach,
|
||||
forEachChild,
|
||||
ForInOrOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
getAssignedExpandoInitializer,
|
||||
getAssignmentDeclarationKind,
|
||||
getAssignmentDeclarationPropertyAccessKind,
|
||||
@ -175,7 +107,11 @@ import {
|
||||
hasDynamicName,
|
||||
hasJSDocNodes,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
InternalSymbolName,
|
||||
isAliasableExpression,
|
||||
isAmbientModule,
|
||||
isAssignmentExpression,
|
||||
@ -204,8 +140,8 @@ import {
|
||||
isEnumDeclaration,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExportSpecifier,
|
||||
isExportsIdentifier,
|
||||
isExportSpecifier,
|
||||
isExpression,
|
||||
isExpressionOfOptionalChainRoot,
|
||||
isExternalModule,
|
||||
@ -272,28 +208,92 @@ import {
|
||||
isVariableDeclaration,
|
||||
isVariableDeclarationInitializedToBareOrAccessedRequire,
|
||||
isVariableStatement,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocSignature,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeLiteral,
|
||||
JsxAttribute,
|
||||
JsxAttributes,
|
||||
LabeledStatement,
|
||||
length,
|
||||
LiteralLikeElementAccessExpression,
|
||||
MappedTypeNode,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
Mutable,
|
||||
NamespaceExportDeclaration,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeHasName,
|
||||
nodeIsMissing,
|
||||
nodeIsPresent,
|
||||
NonNullChain,
|
||||
NonNullExpression,
|
||||
NumericLiteral,
|
||||
objectAllocator,
|
||||
ObjectLiteralExpression,
|
||||
OptionalChain,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
Pattern,
|
||||
PatternAmbientModule,
|
||||
perfLogger,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
removeFileExtension,
|
||||
ReturnStatement,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setValueDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
shouldPreserveConstEnums,
|
||||
SignatureDeclaration,
|
||||
skipParentheses,
|
||||
sliceAfter,
|
||||
some,
|
||||
SourceFile,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
symbolName,
|
||||
SymbolTable,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
TokenFlags,
|
||||
tokenToString,
|
||||
tracing,
|
||||
TracingNode,
|
||||
tryCast,
|
||||
tryParsePattern,
|
||||
TryStatement,
|
||||
TypeLiteralNode,
|
||||
TypeOfExpression,
|
||||
TypeParameterDeclaration,
|
||||
unescapeLeadingUnderscores,
|
||||
unreachableCodeIsError,
|
||||
unusedLabelIsError,
|
||||
VariableDeclaration,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,16 +1,29 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
addRange,
|
||||
AffectedFileResult,
|
||||
BuildInfo,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
BuilderProgram,
|
||||
BuilderProgramHost,
|
||||
BuilderState,
|
||||
BuildInfo,
|
||||
BundleBuildInfo,
|
||||
CancellationToken,
|
||||
CommandLineOption,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
compilerOptionsAffectDeclarationPath,
|
||||
compilerOptionsAffectEmit,
|
||||
compilerOptionsAffectSemanticDiagnostics,
|
||||
CompilerOptionsValue,
|
||||
concatenate,
|
||||
convertToOptionsWithAbsolutePaths,
|
||||
createBuildInfo,
|
||||
createGetCanonicalFileName,
|
||||
createProgram,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
@ -21,31 +34,6 @@ import {
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
EmitOnly,
|
||||
EmitResult,
|
||||
GetCanonicalFileName,
|
||||
HostForComputeHash,
|
||||
Path,
|
||||
Program,
|
||||
ProjectReference,
|
||||
ReadBuildProgramHost,
|
||||
ReadonlyCollection,
|
||||
SemanticDiagnosticsBuilderProgram,
|
||||
SourceFile,
|
||||
SourceMapEmitResult,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
addRange,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
compilerOptionsAffectDeclarationPath,
|
||||
compilerOptionsAffectEmit,
|
||||
compilerOptionsAffectSemanticDiagnostics,
|
||||
concatenate,
|
||||
convertToOptionsWithAbsolutePaths,
|
||||
createBuildInfo,
|
||||
createGetCanonicalFileName,
|
||||
createProgram,
|
||||
emitSkippedWithNoDiagnostics,
|
||||
emptyArray,
|
||||
ensurePathIsNonModuleName,
|
||||
@ -54,6 +42,7 @@ import {
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
generateDjb2Hash,
|
||||
GetCanonicalFileName,
|
||||
getDirectoryPath,
|
||||
getEmitDeclarations,
|
||||
getNormalizedAbsolutePath,
|
||||
@ -62,6 +51,7 @@ import {
|
||||
getRelativePathFromDirectory,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
handleNoEmitOptions,
|
||||
HostForComputeHash,
|
||||
isArray,
|
||||
isDeclarationFileName,
|
||||
isJsonSourceFile,
|
||||
@ -73,13 +63,23 @@ import {
|
||||
noop,
|
||||
notImplemented,
|
||||
outFile,
|
||||
Path,
|
||||
Program,
|
||||
ProjectReference,
|
||||
ReadBuildProgramHost,
|
||||
ReadonlyCollection,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
SemanticDiagnosticsBuilderProgram,
|
||||
skipTypeChecking,
|
||||
some,
|
||||
SourceFile,
|
||||
sourceFileMayBeEmitted,
|
||||
SourceMapEmitResult,
|
||||
toPath,
|
||||
tryAddToSet,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -3,19 +3,19 @@ import {
|
||||
CancellationToken,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
createBuilderProgram,
|
||||
createRedirectedBuilderProgram,
|
||||
CustomTransformers,
|
||||
Diagnostic,
|
||||
DiagnosticWithLocation,
|
||||
EmitResult,
|
||||
getBuilderCreationParameters,
|
||||
Program,
|
||||
ProjectReference,
|
||||
ReusableBuilderProgramState,
|
||||
SavedBuildProgramEmitState,
|
||||
SourceFile,
|
||||
WriteFileCallback,
|
||||
createBuilderProgram,
|
||||
createRedirectedBuilderProgram,
|
||||
getBuilderCreationParameters,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export type AffectedFileResult<T> = { result: T; affected: SourceFile | Program; } | undefined;
|
||||
|
||||
@ -1,27 +1,17 @@
|
||||
import {
|
||||
arrayFrom,
|
||||
CancellationToken,
|
||||
computeSignatureWithDiagnostics,
|
||||
createGetCanonicalFileName,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
EmitOutput,
|
||||
emptyArray,
|
||||
ExportedModulesFromDeclarationEmit,
|
||||
GetCanonicalFileName,
|
||||
HostForComputeHash,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
OutputFile,
|
||||
Path,
|
||||
Program,
|
||||
ResolutionMode,
|
||||
SourceFile,
|
||||
StringLiteralLike,
|
||||
Symbol,
|
||||
TypeChecker,
|
||||
arrayFrom,
|
||||
computeSignatureWithDiagnostics,
|
||||
createGetCanonicalFileName,
|
||||
emptyArray,
|
||||
getDirectoryPath,
|
||||
getSourceFileOfNode,
|
||||
HostForComputeHash,
|
||||
isDeclarationFileName,
|
||||
isExternalOrCommonJsModule,
|
||||
isGlobalScopeAugmentation,
|
||||
@ -30,9 +20,19 @@ import {
|
||||
isStringLiteral,
|
||||
mapDefined,
|
||||
mapDefinedIterator,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
outFile,
|
||||
OutputFile,
|
||||
Path,
|
||||
Program,
|
||||
ResolutionMode,
|
||||
some,
|
||||
SourceFile,
|
||||
StringLiteralLike,
|
||||
Symbol,
|
||||
toPath,
|
||||
TypeChecker,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,69 +1,39 @@
|
||||
import {
|
||||
AlternateModeDiagnostics,
|
||||
append,
|
||||
arrayFrom,
|
||||
ArrayLiteralExpression,
|
||||
arrayToMap,
|
||||
assign,
|
||||
BuildOptions,
|
||||
changeExtension,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
CommandLineOption,
|
||||
CommandLineOptionOfCustomType,
|
||||
CommandLineOptionOfListType,
|
||||
CompilerOptions,
|
||||
CompilerOptionsValue,
|
||||
ConfigFileSpecs,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
Diagnostics,
|
||||
DidYouMeanOptionsDiagnostics,
|
||||
Expression,
|
||||
Extension,
|
||||
FileExtensionInfo,
|
||||
ImportsNotUsedAsValues,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
MapLike,
|
||||
ModuleDetectionKind,
|
||||
ModuleKind,
|
||||
ModuleResolutionKind,
|
||||
NewLineKind,
|
||||
Node,
|
||||
NodeArray,
|
||||
NumericLiteral,
|
||||
ObjectLiteralExpression,
|
||||
ParseConfigHost,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PollingWatchKind,
|
||||
PrefixUnaryExpression,
|
||||
ProjectReference,
|
||||
PropertyName,
|
||||
Push,
|
||||
ScriptTarget,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TsConfigOnlyOption,
|
||||
TsConfigSourceFile,
|
||||
TypeAcquisition,
|
||||
WatchDirectoryFlags,
|
||||
WatchDirectoryKind,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
append,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
assign,
|
||||
changeExtension,
|
||||
combinePaths,
|
||||
containsPath,
|
||||
convertToRelativePath,
|
||||
createCompilerDiagnostic,
|
||||
createDiagnosticForNodeInSourceFile,
|
||||
createGetCanonicalFileName,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
Diagnostics,
|
||||
DidYouMeanOptionsDiagnostics,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
Expression,
|
||||
extend,
|
||||
Extension,
|
||||
FileExtensionInfo,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
@ -92,6 +62,7 @@ import {
|
||||
getTsConfigPropArrayElementValue,
|
||||
hasExtension,
|
||||
hasProperty,
|
||||
ImportsNotUsedAsValues,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isComputedNonLiteralName,
|
||||
@ -101,23 +72,52 @@ import {
|
||||
isString,
|
||||
isStringDoubleQuoted,
|
||||
isStringLiteral,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
mapIterator,
|
||||
MapLike,
|
||||
ModuleDetectionKind,
|
||||
ModuleKind,
|
||||
ModuleResolutionKind,
|
||||
NewLineKind,
|
||||
Node,
|
||||
NodeArray,
|
||||
nodeModuleNameResolver,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
NumericLiteral,
|
||||
ObjectLiteralExpression,
|
||||
ParseConfigHost,
|
||||
ParsedCommandLine,
|
||||
parseJsonText,
|
||||
Path,
|
||||
PollingWatchKind,
|
||||
PrefixUnaryExpression,
|
||||
ProjectReference,
|
||||
PropertyName,
|
||||
Push,
|
||||
removeTrailingDirectorySeparator,
|
||||
returnTrue,
|
||||
ScriptTarget,
|
||||
startsWith,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
sys,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
tracing,
|
||||
trimString,
|
||||
TsConfigOnlyOption,
|
||||
TsConfigSourceFile,
|
||||
TypeAcquisition,
|
||||
unescapeLeadingUnderscores,
|
||||
WatchDirectoryFlags,
|
||||
WatchDirectoryKind,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
import {
|
||||
__String,
|
||||
CharacterCodes,
|
||||
Comparer,
|
||||
Comparison,
|
||||
Debug,
|
||||
EqualityComparer,
|
||||
isWhiteSpaceLike,
|
||||
MapLike,
|
||||
Push,
|
||||
Queue,
|
||||
@ -11,8 +13,6 @@ import {
|
||||
SortedReadonlyArray,
|
||||
TextSpan,
|
||||
UnderscoreEscapedMap,
|
||||
__String,
|
||||
isWhiteSpaceLike,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -4,39 +4,14 @@ import {
|
||||
AssertionLevel,
|
||||
BigIntLiteralType,
|
||||
CheckMode,
|
||||
compareValues,
|
||||
EmitFlags,
|
||||
every,
|
||||
FlowFlags,
|
||||
FlowLabel,
|
||||
FlowNode,
|
||||
FlowNodeBase,
|
||||
FlowSwitchClause,
|
||||
IntrinsicType,
|
||||
LiteralType,
|
||||
MatchingKeys,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
ObjectFlags,
|
||||
ObjectType,
|
||||
RelationComparisonResult,
|
||||
Signature,
|
||||
SignatureCheckMode,
|
||||
SignatureFlags,
|
||||
SnippetKind,
|
||||
SortedReadonlyArray,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
Type,
|
||||
TypeFacts,
|
||||
TypeFlags,
|
||||
TypeMapKind,
|
||||
TypeMapper,
|
||||
VarianceFlags,
|
||||
compareValues,
|
||||
every,
|
||||
getEffectiveModifierFlagsNoCache,
|
||||
getEmitFlags,
|
||||
getOwnKeys,
|
||||
@ -45,21 +20,22 @@ import {
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
hasProperty,
|
||||
idText,
|
||||
IntrinsicType,
|
||||
isArrayTypeNode,
|
||||
isBigIntLiteral,
|
||||
isCallSignatureDeclaration,
|
||||
isConditionalTypeNode,
|
||||
isConstructSignatureDeclaration,
|
||||
isConstructorDeclaration,
|
||||
isConstructorTypeNode,
|
||||
isConstructSignatureDeclaration,
|
||||
isDefaultClause,
|
||||
isFunctionTypeNode,
|
||||
isGeneratedIdentifier,
|
||||
isGetAccessorDeclaration,
|
||||
isIdentifier,
|
||||
isImportTypeNode,
|
||||
isIndexSignatureDeclaration,
|
||||
isIndexedAccessTypeNode,
|
||||
isIndexSignatureDeclaration,
|
||||
isInferTypeNode,
|
||||
isIntersectionTypeNode,
|
||||
isLiteralTypeNode,
|
||||
@ -83,13 +59,37 @@ import {
|
||||
isTypeQueryNode,
|
||||
isTypeReferenceNode,
|
||||
isUnionTypeNode,
|
||||
LiteralType,
|
||||
map,
|
||||
MatchingKeys,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeIsSynthesized,
|
||||
noop,
|
||||
objectAllocator,
|
||||
ObjectFlags,
|
||||
ObjectType,
|
||||
RelationComparisonResult,
|
||||
Signature,
|
||||
SignatureCheckMode,
|
||||
SignatureFlags,
|
||||
SnippetKind,
|
||||
SortedReadonlyArray,
|
||||
stableSort,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
symbolName,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
Type,
|
||||
TypeFacts,
|
||||
TypeFlags,
|
||||
TypeMapKind,
|
||||
TypeMapper,
|
||||
unescapeLeadingUnderscores,
|
||||
VarianceFlags,
|
||||
zipWith,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -3,12 +3,14 @@ import {
|
||||
AccessorDeclaration,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
arrayToMap,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
AssertEntry,
|
||||
AwaitExpression,
|
||||
base64encode,
|
||||
BigIntLiteral,
|
||||
BinaryExpression,
|
||||
BinaryOperatorToken,
|
||||
@ -29,23 +31,41 @@ import {
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
cast,
|
||||
CatchClause,
|
||||
changeExtension,
|
||||
CharacterCodes,
|
||||
ClassDeclaration,
|
||||
ClassExpression,
|
||||
ClassStaticBlockDeclaration,
|
||||
clone,
|
||||
combinePaths,
|
||||
CommaListExpression,
|
||||
CommentRange,
|
||||
compareEmitHelpers,
|
||||
comparePaths,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
computeCommonSourceDirectoryOfFilenames,
|
||||
ComputedPropertyName,
|
||||
computeLineStarts,
|
||||
computeSignature,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
contains,
|
||||
ContinueStatement,
|
||||
createBinaryExpressionTrampoline,
|
||||
createDiagnosticCollection,
|
||||
createGetCanonicalFileName,
|
||||
createInputFilesWithFileTexts,
|
||||
createMultiMap,
|
||||
createPrependNodes,
|
||||
createSourceMapGenerator,
|
||||
createTextWriter,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DebuggerStatement,
|
||||
@ -53,21 +73,32 @@ import {
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
directorySeparator,
|
||||
DoStatement,
|
||||
DotToken,
|
||||
ElementAccessExpression,
|
||||
emitDetachedComments,
|
||||
EmitFileNames,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EmitHost,
|
||||
emitNewLineBeforeLeadingCommentOfPosition,
|
||||
EmitOnly,
|
||||
EmitResolver,
|
||||
EmitResult,
|
||||
EmitTextWriter,
|
||||
EmitTransformers,
|
||||
emptyArray,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
escapeJsxAttributeString,
|
||||
escapeLeadingUnderscores,
|
||||
escapeNonAsciiString,
|
||||
escapeString,
|
||||
every,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
@ -76,9 +107,21 @@ import {
|
||||
ExpressionWithTypeArguments,
|
||||
Extension,
|
||||
ExternalModuleReference,
|
||||
factory,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileReference,
|
||||
filter,
|
||||
findIndex,
|
||||
firstOrUndefined,
|
||||
forEach,
|
||||
forEachChild,
|
||||
forEachLeadingCommentRange,
|
||||
forEachTrailingCommentRange,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
formatGeneratedName,
|
||||
formatGeneratedNamePart,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
@ -89,217 +132,9 @@ import {
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedNamePart,
|
||||
GeneratedPrivateIdentifier,
|
||||
GetCanonicalFileName,
|
||||
GetLiteralTextFlags,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
JSDoc,
|
||||
JSDocAugmentsTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocComment,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocNameReference,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocVariadicType,
|
||||
JsxAttribute,
|
||||
JsxAttributes,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxTagNameExpression,
|
||||
JsxText,
|
||||
LabeledStatement,
|
||||
LateBoundDeclaration,
|
||||
ListFormat,
|
||||
LiteralExpression,
|
||||
LiteralLikeNode,
|
||||
LiteralTypeNode,
|
||||
MappedTypeNode,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
Modifier,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleReference,
|
||||
NamedDeclaration,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedImportsOrExports,
|
||||
NamedTupleMember,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NonNullExpression,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralExpression,
|
||||
OptionalTypeNode,
|
||||
OutputFile,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
ParsedCommandLine,
|
||||
PartiallyEmittedExpression,
|
||||
Placeholder,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrintHandlers,
|
||||
Printer,
|
||||
PrinterOptions,
|
||||
PrivateIdentifier,
|
||||
ProgramBuildInfo,
|
||||
ProgramBundleEmitBuildInfo,
|
||||
ProjectReference,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
QualifiedName,
|
||||
RestTypeNode,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
ScriptTarget,
|
||||
ShorthandPropertyAssignment,
|
||||
SignatureDeclaration,
|
||||
SnippetElement,
|
||||
SnippetKind,
|
||||
SourceFile,
|
||||
SourceFilePrologueDirective,
|
||||
SourceFilePrologueInfo,
|
||||
SourceMapEmitResult,
|
||||
SourceMapGenerator,
|
||||
SourceMapSource,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
SynthesizedComment,
|
||||
TabStop,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateSpan,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
TransformationResult,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeOfExpression,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnionTypeNode,
|
||||
UnparsedNode,
|
||||
UnparsedPrepend,
|
||||
UnparsedPrologue,
|
||||
UnparsedSource,
|
||||
UnparsedSyntheticReference,
|
||||
UnparsedTextLike,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
WriteFileCallbackData,
|
||||
YieldExpression,
|
||||
arrayToMap,
|
||||
base64encode,
|
||||
cast,
|
||||
changeExtension,
|
||||
clone,
|
||||
combinePaths,
|
||||
compareEmitHelpers,
|
||||
comparePaths,
|
||||
computeCommonSourceDirectoryOfFilenames,
|
||||
computeLineStarts,
|
||||
computeSignature,
|
||||
contains,
|
||||
createBinaryExpressionTrampoline,
|
||||
createDiagnosticCollection,
|
||||
createGetCanonicalFileName,
|
||||
createInputFilesWithFileTexts,
|
||||
createMultiMap,
|
||||
createPrependNodes,
|
||||
createSourceMapGenerator,
|
||||
createTextWriter,
|
||||
directorySeparator,
|
||||
emitDetachedComments,
|
||||
emitNewLineBeforeLeadingCommentOfPosition,
|
||||
emptyArray,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
escapeJsxAttributeString,
|
||||
escapeLeadingUnderscores,
|
||||
escapeNonAsciiString,
|
||||
escapeString,
|
||||
every,
|
||||
factory,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
findIndex,
|
||||
firstOrUndefined,
|
||||
forEach,
|
||||
forEachChild,
|
||||
forEachLeadingCommentRange,
|
||||
forEachTrailingCommentRange,
|
||||
formatGeneratedName,
|
||||
formatGeneratedNamePart,
|
||||
getAreDeclarationMapsEnabled,
|
||||
getBaseFileName,
|
||||
GetCanonicalFileName,
|
||||
getCommentRange,
|
||||
getConstantValue,
|
||||
getContainingNodeArray,
|
||||
@ -314,11 +149,12 @@ import {
|
||||
getExternalModuleName,
|
||||
getLeadingCommentRanges,
|
||||
getLineAndCharacterOfPosition,
|
||||
getLineStarts,
|
||||
getLinesBetweenPositionAndNextNonWhitespaceCharacter,
|
||||
getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter,
|
||||
getLinesBetweenRangeEndAndRangeStart,
|
||||
getLineStarts,
|
||||
getLiteralText,
|
||||
GetLiteralTextFlags,
|
||||
getNewLineCharacter,
|
||||
getNodeForGeneratedName,
|
||||
getNodeId,
|
||||
@ -346,7 +182,21 @@ import {
|
||||
getTypeNode,
|
||||
guessIndentation,
|
||||
hasRecordedExternalHelpers,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
IndexedAccessTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
isArrowFunction,
|
||||
@ -366,8 +216,8 @@ import {
|
||||
isGeneratedIdentifier,
|
||||
isGeneratedPrivateIdentifier,
|
||||
isIdentifier,
|
||||
isInJsonFile,
|
||||
isIncrementalCompilation,
|
||||
isInJsonFile,
|
||||
isInternalDeclaration,
|
||||
isJSDocLikeText,
|
||||
isJsonSourceFile,
|
||||
@ -398,21 +248,112 @@ import {
|
||||
isUnparsedSource,
|
||||
isVarConst,
|
||||
isVariableStatement,
|
||||
JSDoc,
|
||||
JSDocAugmentsTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocComment,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocNameReference,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocVariadicType,
|
||||
JsxAttribute,
|
||||
JsxAttributes,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxTagNameExpression,
|
||||
JsxText,
|
||||
LabeledStatement,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
LateBoundDeclaration,
|
||||
length,
|
||||
ListFormat,
|
||||
LiteralExpression,
|
||||
LiteralLikeNode,
|
||||
LiteralTypeNode,
|
||||
makeIdentifierFromModuleName,
|
||||
MappedTypeNode,
|
||||
maybeBind,
|
||||
memoize,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
Modifier,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleReference,
|
||||
NamedDeclaration,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedImportsOrExports,
|
||||
NamedTupleMember,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeIsSynthesized,
|
||||
noEmitNotification,
|
||||
noEmitSubstitution,
|
||||
nodeIsSynthesized,
|
||||
NonNullExpression,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
notImplemented,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralExpression,
|
||||
OptionalTypeNode,
|
||||
outFile,
|
||||
OutputFile,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
ParsedCommandLine,
|
||||
PartiallyEmittedExpression,
|
||||
Placeholder,
|
||||
positionIsSynthesized,
|
||||
positionsAreOnSameLine,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
Printer,
|
||||
PrinterOptions,
|
||||
PrintHandlers,
|
||||
PrivateIdentifier,
|
||||
ProgramBuildInfo,
|
||||
ProgramBundleEmitBuildInfo,
|
||||
ProjectReference,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
QualifiedName,
|
||||
rangeEndIsOnSameLineAsRangeStart,
|
||||
rangeEndPositionsAreOnSameLine,
|
||||
rangeIsOnSingleLine,
|
||||
@ -420,28 +361,87 @@ import {
|
||||
readJsonOrUndefined,
|
||||
removeFileExtension,
|
||||
resolvePath,
|
||||
RestTypeNode,
|
||||
returnFalse,
|
||||
ReturnStatement,
|
||||
returnUndefined,
|
||||
SatisfiesExpression,
|
||||
ScriptTarget,
|
||||
setEachParent,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
ShorthandPropertyAssignment,
|
||||
SignatureDeclaration,
|
||||
singleOrUndefined,
|
||||
skipPartiallyEmittedExpressions,
|
||||
skipTrivia,
|
||||
SnippetElement,
|
||||
SnippetKind,
|
||||
some,
|
||||
SourceFile,
|
||||
SourceFilePrologueDirective,
|
||||
SourceFilePrologueInfo,
|
||||
SourceMapEmitResult,
|
||||
SourceMapGenerator,
|
||||
SourceMapSource,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
stableSort,
|
||||
Statement,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
supportedJSExtensionsFlat,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
SynthesizedComment,
|
||||
sys,
|
||||
TabStop,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateSpan,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
tokenToString,
|
||||
tracing,
|
||||
TransformationResult,
|
||||
transformNodes,
|
||||
tryParseRawSourceMap,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeOfExpression,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnionTypeNode,
|
||||
UnparsedNode,
|
||||
UnparsedPrepend,
|
||||
UnparsedPrologue,
|
||||
UnparsedSource,
|
||||
UnparsedSyntheticReference,
|
||||
UnparsedTextLike,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
writeCommentRange,
|
||||
writeFile,
|
||||
WriteFileCallbackData,
|
||||
YieldExpression,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {
|
||||
Node,
|
||||
SyntaxKind,
|
||||
objectAllocator,
|
||||
SyntaxKind,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
import {
|
||||
__String,
|
||||
ArrayLiteralExpression,
|
||||
arrayToMap,
|
||||
BindingOrAssignmentElement,
|
||||
Block,
|
||||
compareValues,
|
||||
Comparison,
|
||||
createExpressionFromEntityName,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
@ -12,26 +16,22 @@ import {
|
||||
Expression,
|
||||
FunctionExpression,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
PrivateIdentifierKind,
|
||||
ScriptTarget,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
UnscopedEmitHelper,
|
||||
__String,
|
||||
arrayToMap,
|
||||
compareValues,
|
||||
createExpressionFromEntityName,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
getPropertyNameOfBindingOrAssignmentElement,
|
||||
Identifier,
|
||||
isCallExpression,
|
||||
isComputedPropertyName,
|
||||
isIdentifier,
|
||||
memoize,
|
||||
PrivateIdentifierKind,
|
||||
ScriptTarget,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
UnscopedEmitHelper,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
import {
|
||||
AccessExpression,
|
||||
append,
|
||||
appendIfUnique,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitNode,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
isParseTreeNode,
|
||||
Node,
|
||||
orderedRemoveItem,
|
||||
SnippetElement,
|
||||
some,
|
||||
SourceFile,
|
||||
SourceMapRange,
|
||||
SyntaxKind,
|
||||
SynthesizedComment,
|
||||
TextRange,
|
||||
TypeNode,
|
||||
append,
|
||||
appendIfUnique,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
isParseTreeNode,
|
||||
orderedRemoveItem,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -5,16 +5,11 @@ import {
|
||||
BindingOrAssignmentElementTarget,
|
||||
BindingOrAssignmentPattern,
|
||||
Block,
|
||||
cast,
|
||||
ConciseBody,
|
||||
Debug,
|
||||
Expression,
|
||||
FunctionDeclaration,
|
||||
NodeConverters,
|
||||
NodeFactory,
|
||||
ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
SyntaxKind,
|
||||
cast,
|
||||
getStartsOnNewLine,
|
||||
isArrayBindingPattern,
|
||||
isArrayLiteralExpression,
|
||||
@ -27,10 +22,15 @@ import {
|
||||
isObjectLiteralElementLike,
|
||||
isObjectLiteralExpression,
|
||||
map,
|
||||
NodeConverters,
|
||||
NodeFactory,
|
||||
notImplemented,
|
||||
ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
setOriginalNode,
|
||||
setStartsOnNewLine,
|
||||
setTextRange,
|
||||
SyntaxKind,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
import {
|
||||
addRange,
|
||||
append,
|
||||
appendIfUnique,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
@ -34,9 +37,11 @@ import {
|
||||
CallChain,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
canHaveModifiers,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
cast,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
@ -51,10 +56,14 @@ import {
|
||||
ConciseBody,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ContinueStatement,
|
||||
createBaseNodeFactory,
|
||||
createNodeConverters,
|
||||
createParenthesizerRules,
|
||||
createScanner,
|
||||
Debug,
|
||||
DebuggerStatement,
|
||||
Declaration,
|
||||
@ -68,6 +77,7 @@ import {
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitNode,
|
||||
emptyArray,
|
||||
EmptyStatement,
|
||||
EndOfDeclarationMarker,
|
||||
EndOfFileToken,
|
||||
@ -75,6 +85,8 @@ import {
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
EqualsGreaterThanToken,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
@ -85,8 +97,11 @@ import {
|
||||
ExternalModuleReference,
|
||||
FalseLiteral,
|
||||
FileReference,
|
||||
ForInStatement,
|
||||
findUseStrictPrologue,
|
||||
forEach,
|
||||
ForInitializer,
|
||||
ForInStatement,
|
||||
formatGeneratedName,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
@ -97,256 +112,6 @@ import {
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedNamePart,
|
||||
GetAccessorDeclaration,
|
||||
HasModifiers,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
InferTypeNode,
|
||||
InputFiles,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
JSDoc,
|
||||
JSDocAllType,
|
||||
JSDocAugmentsTag,
|
||||
JSDocAuthorTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocComment,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocMemberName,
|
||||
JSDocNameReference,
|
||||
JSDocNamepathType,
|
||||
JSDocNamespaceDeclaration,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocText,
|
||||
JSDocThisTag,
|
||||
JSDocType,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
JsxAttribute,
|
||||
JsxAttributeLike,
|
||||
JsxAttributeValue,
|
||||
JsxAttributes,
|
||||
JsxChild,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxTagNameExpression,
|
||||
JsxText,
|
||||
KeywordSyntaxKind,
|
||||
KeywordToken,
|
||||
KeywordTypeNode,
|
||||
KeywordTypeSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
LeftHandSideExpression,
|
||||
LiteralToken,
|
||||
LiteralTypeNode,
|
||||
MappedTypeNode,
|
||||
MergeDeclarationMarker,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
MinusToken,
|
||||
MissingDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModifierSyntaxKind,
|
||||
ModifierToken,
|
||||
ModuleBlock,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleName,
|
||||
ModuleReference,
|
||||
Mutable,
|
||||
MutableNodeArray,
|
||||
NamedDeclaration,
|
||||
NamedExportBindings,
|
||||
NamedExports,
|
||||
NamedImportBindings,
|
||||
NamedImports,
|
||||
NamedTupleMember,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
NonNullChain,
|
||||
NonNullExpression,
|
||||
NotEmittedStatement,
|
||||
NullLiteral,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OmittedExpression,
|
||||
OptionalTypeNode,
|
||||
OuterExpression,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
PartiallyEmittedExpression,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PostfixUnaryOperator,
|
||||
PrefixUnaryExpression,
|
||||
PrefixUnaryOperator,
|
||||
PrimaryExpression,
|
||||
PrivateIdentifier,
|
||||
PrologueDirective,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyDescriptorAttributes,
|
||||
PropertyName,
|
||||
PropertyNameLiteral,
|
||||
PropertySignature,
|
||||
PseudoBigInt,
|
||||
PunctuationSyntaxKind,
|
||||
PunctuationToken,
|
||||
Push,
|
||||
QualifiedName,
|
||||
QuestionDotToken,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
RegularExpressionLiteral,
|
||||
RestTypeNode,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
Scanner,
|
||||
ScriptTarget,
|
||||
SemicolonClassElement,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
SignatureDeclarationBase,
|
||||
SourceFile,
|
||||
SourceMapSource,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
SuperExpression,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
SyntaxList,
|
||||
SyntheticExpression,
|
||||
SyntheticReferenceExpression,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateHead,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralLikeNode,
|
||||
TemplateLiteralToken,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateMiddle,
|
||||
TemplateSpan,
|
||||
TemplateTail,
|
||||
TextRange,
|
||||
ThisExpression,
|
||||
ThisTypeNode,
|
||||
ThrowStatement,
|
||||
Token,
|
||||
TokenFlags,
|
||||
TransformFlags,
|
||||
TrueLiteral,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
Type,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeElement,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeOfExpression,
|
||||
TypeOfTag,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnionOrIntersectionTypeNode,
|
||||
UnionTypeNode,
|
||||
UnparsedNode,
|
||||
UnparsedPrepend,
|
||||
UnparsedPrologue,
|
||||
UnparsedSource,
|
||||
UnparsedSourceText,
|
||||
UnparsedSyntheticReference,
|
||||
UnparsedTextLike,
|
||||
UnscopedEmitHelper,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
addRange,
|
||||
append,
|
||||
appendIfUnique,
|
||||
canHaveModifiers,
|
||||
cast,
|
||||
createBaseNodeFactory,
|
||||
createNodeConverters,
|
||||
createParenthesizerRules,
|
||||
createScanner,
|
||||
emptyArray,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
findUseStrictPrologue,
|
||||
forEach,
|
||||
formatGeneratedName,
|
||||
getAllUnscopedEmitHelpers,
|
||||
getBuildInfo,
|
||||
getCommentRange,
|
||||
@ -362,10 +127,26 @@ import {
|
||||
getTargetOfBindingOrAssignmentElement,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasInvalidEscape,
|
||||
HasModifiers,
|
||||
hasProperty,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexedAccessTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InferTypeNode,
|
||||
InputFiles,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
@ -438,34 +219,253 @@ import {
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
isVariableStatement,
|
||||
JSDoc,
|
||||
JSDocAllType,
|
||||
JSDocAugmentsTag,
|
||||
JSDocAuthorTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocComment,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocMemberName,
|
||||
JSDocNamepathType,
|
||||
JSDocNameReference,
|
||||
JSDocNamespaceDeclaration,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocText,
|
||||
JSDocThisTag,
|
||||
JSDocType,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
JsxAttribute,
|
||||
JsxAttributeLike,
|
||||
JsxAttributes,
|
||||
JsxAttributeValue,
|
||||
JsxChild,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxTagNameExpression,
|
||||
JsxText,
|
||||
KeywordSyntaxKind,
|
||||
KeywordToken,
|
||||
KeywordTypeNode,
|
||||
KeywordTypeSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
LiteralToken,
|
||||
LiteralTypeNode,
|
||||
map,
|
||||
MappedTypeNode,
|
||||
memoize,
|
||||
memoizeOne,
|
||||
MergeDeclarationMarker,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
MinusToken,
|
||||
MissingDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
modifiersToFlags,
|
||||
ModifierSyntaxKind,
|
||||
ModifierToken,
|
||||
ModuleBlock,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleName,
|
||||
ModuleReference,
|
||||
Mutable,
|
||||
MutableNodeArray,
|
||||
NamedDeclaration,
|
||||
NamedExportBindings,
|
||||
NamedExports,
|
||||
NamedImportBindings,
|
||||
NamedImports,
|
||||
NamedTupleMember,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
nodeIsSynthesized,
|
||||
NonNullChain,
|
||||
NonNullExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
NotEmittedStatement,
|
||||
NullLiteral,
|
||||
nullNodeConverters,
|
||||
nullParenthesizerRules,
|
||||
NumericLiteral,
|
||||
objectAllocator,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OmittedExpression,
|
||||
OptionalTypeNode,
|
||||
OuterExpression,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
parseNodeFactory,
|
||||
PartiallyEmittedExpression,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PostfixUnaryOperator,
|
||||
PrefixUnaryExpression,
|
||||
PrefixUnaryOperator,
|
||||
PrimaryExpression,
|
||||
PrivateIdentifier,
|
||||
PrologueDirective,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyDescriptorAttributes,
|
||||
PropertyName,
|
||||
PropertyNameLiteral,
|
||||
PropertySignature,
|
||||
PseudoBigInt,
|
||||
pseudoBigIntToString,
|
||||
PunctuationSyntaxKind,
|
||||
PunctuationToken,
|
||||
Push,
|
||||
QualifiedName,
|
||||
QuestionDotToken,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
reduceLeft,
|
||||
RegularExpressionLiteral,
|
||||
RestTypeNode,
|
||||
ReturnStatement,
|
||||
returnTrue,
|
||||
sameFlatMap,
|
||||
SatisfiesExpression,
|
||||
Scanner,
|
||||
ScriptTarget,
|
||||
SemicolonClassElement,
|
||||
SetAccessorDeclaration,
|
||||
setEachParent,
|
||||
setEmitFlags,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
ShorthandPropertyAssignment,
|
||||
SignatureDeclarationBase,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipParentheses,
|
||||
some,
|
||||
SourceFile,
|
||||
SourceMapSource,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
startOnNewLine,
|
||||
startsWith,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
stringToToken,
|
||||
SuperExpression,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
SyntaxList,
|
||||
SyntheticExpression,
|
||||
SyntheticReferenceExpression,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateHead,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralLikeNode,
|
||||
TemplateLiteralToken,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateMiddle,
|
||||
TemplateSpan,
|
||||
TemplateTail,
|
||||
TextRange,
|
||||
ThisExpression,
|
||||
ThisTypeNode,
|
||||
ThrowStatement,
|
||||
Token,
|
||||
TokenFlags,
|
||||
TransformFlags,
|
||||
TrueLiteral,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
Type,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeElement,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeOfExpression,
|
||||
TypeOfTag,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnionOrIntersectionTypeNode,
|
||||
UnionTypeNode,
|
||||
UnparsedNode,
|
||||
UnparsedPrepend,
|
||||
UnparsedPrologue,
|
||||
UnparsedSource,
|
||||
UnparsedSourceText,
|
||||
UnparsedSyntheticReference,
|
||||
UnparsedTextLike,
|
||||
UnscopedEmitHelper,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
let nextAutoGenerateId = 0;
|
||||
|
||||
@ -32,9 +32,9 @@ import {
|
||||
ComputedPropertyName,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ContinueStatement,
|
||||
DebuggerStatement,
|
||||
Decorator,
|
||||
@ -73,8 +73,8 @@ import {
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
@ -92,8 +92,8 @@ import {
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocMemberName,
|
||||
JSDocNameReference,
|
||||
JSDocNamepathType,
|
||||
JSDocNameReference,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
@ -109,10 +109,10 @@ import {
|
||||
JSDocSignature,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
@ -146,9 +146,9 @@ import {
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NonNullExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
NotEmittedStatement,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
|
||||
@ -2,22 +2,11 @@ import {
|
||||
Associativity,
|
||||
BinaryExpression,
|
||||
BinaryOperator,
|
||||
cast,
|
||||
compareValues,
|
||||
Comparison,
|
||||
ConciseBody,
|
||||
Expression,
|
||||
LeftHandSideExpression,
|
||||
NamedTupleMember,
|
||||
NewExpression,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
OperatorPrecedence,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizerRules,
|
||||
SyntaxKind,
|
||||
TypeNode,
|
||||
UnaryExpression,
|
||||
cast,
|
||||
compareValues,
|
||||
getExpressionAssociativity,
|
||||
getExpressionPrecedence,
|
||||
getLeftmostExpression,
|
||||
@ -44,10 +33,21 @@ import {
|
||||
isUnaryExpression,
|
||||
isUnionTypeNode,
|
||||
last,
|
||||
LeftHandSideExpression,
|
||||
NamedTupleMember,
|
||||
NewExpression,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
OperatorPrecedence,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizerRules,
|
||||
sameMap,
|
||||
setTextRange,
|
||||
skipPartiallyEmittedExpressions,
|
||||
some,
|
||||
SyntaxKind,
|
||||
TypeNode,
|
||||
UnaryExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
addEmitFlags,
|
||||
AdditiveOperator,
|
||||
AdditiveOperatorOrHigher,
|
||||
AssertionLevel,
|
||||
@ -17,6 +18,7 @@ import {
|
||||
BooleanLiteral,
|
||||
CharacterCodes,
|
||||
CommaListExpression,
|
||||
compareStringsCaseSensitive,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Declaration,
|
||||
@ -32,81 +34,20 @@ import {
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
externalHelpersModuleNameText,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
ForInitializer,
|
||||
GeneratedIdentifier,
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedNamePart,
|
||||
GeneratedPrivateIdentifier,
|
||||
GetAccessorDeclaration,
|
||||
HasIllegalDecorators,
|
||||
HasIllegalModifiers,
|
||||
HasIllegalType,
|
||||
HasIllegalTypeParameters,
|
||||
Identifier,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
JSDocNamespaceBody,
|
||||
JSDocTypeAssertion,
|
||||
JsxOpeningFragment,
|
||||
JsxOpeningLikeElement,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LogicalOperator,
|
||||
LogicalOperatorOrHigher,
|
||||
MemberExpression,
|
||||
MethodDeclaration,
|
||||
MinusToken,
|
||||
ModifiersArray,
|
||||
ModuleKind,
|
||||
ModuleName,
|
||||
MultiplicativeOperator,
|
||||
MultiplicativeOperatorOrHigher,
|
||||
Mutable,
|
||||
NamedImportBindings,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
NullLiteral,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OuterExpression,
|
||||
OuterExpressionKinds,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
RelationalOperator,
|
||||
RelationalOperatorOrHigher,
|
||||
SetAccessorDeclaration,
|
||||
ShiftOperator,
|
||||
ShiftOperatorOrHigher,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThisTypeNode,
|
||||
Token,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addEmitFlags,
|
||||
compareStringsCaseSensitive,
|
||||
externalHelpersModuleNameText,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
getAllAccessorDeclarations,
|
||||
getESModuleInterop,
|
||||
getEmitFlags,
|
||||
getEmitHelpers,
|
||||
getEmitModuleKind,
|
||||
getESModuleInterop,
|
||||
getExternalModuleName,
|
||||
getExternalModuleNameFromPath,
|
||||
getJSDocType,
|
||||
@ -117,7 +58,15 @@ import {
|
||||
getOriginalNode,
|
||||
getParseTreeNode,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
HasIllegalDecorators,
|
||||
HasIllegalModifiers,
|
||||
HasIllegalType,
|
||||
HasIllegalTypeParameters,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
isAssignmentExpression,
|
||||
isAssignmentOperator,
|
||||
isBlock,
|
||||
@ -156,16 +105,67 @@ import {
|
||||
isTypeNode,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclarationList,
|
||||
JSDocNamespaceBody,
|
||||
JSDocTypeAssertion,
|
||||
JsxOpeningFragment,
|
||||
JsxOpeningLikeElement,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LogicalOperator,
|
||||
LogicalOperatorOrHigher,
|
||||
map,
|
||||
MemberExpression,
|
||||
MethodDeclaration,
|
||||
MinusToken,
|
||||
ModifiersArray,
|
||||
ModuleKind,
|
||||
ModuleName,
|
||||
MultiplicativeOperator,
|
||||
MultiplicativeOperatorOrHigher,
|
||||
Mutable,
|
||||
NamedImportBindings,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
NullLiteral,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
or,
|
||||
OuterExpression,
|
||||
OuterExpressionKinds,
|
||||
outFile,
|
||||
parseNodeFactory,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
pushIfUnique,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
RelationalOperator,
|
||||
RelationalOperatorOrHigher,
|
||||
SetAccessorDeclaration,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setStartsOnNewLine,
|
||||
setTextRange,
|
||||
ShiftOperator,
|
||||
ShiftOperatorOrHigher,
|
||||
ShorthandPropertyAssignment,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThisTypeNode,
|
||||
Token,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// Compound nodes
|
||||
|
||||
@ -2,9 +2,9 @@ import {
|
||||
HasDecorators,
|
||||
HasModifiers,
|
||||
Node,
|
||||
setTextRangePosEnd,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
setTextRangePosEnd,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
export function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T {
|
||||
|
||||
@ -1,61 +1,42 @@
|
||||
import {
|
||||
append,
|
||||
appendIfUnique,
|
||||
arrayFrom,
|
||||
changeAnyExtension,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
comparePaths,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
contains,
|
||||
containsPath,
|
||||
createCompilerDiagnostic,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
Extension,
|
||||
FileReference,
|
||||
GetCanonicalFileName,
|
||||
GetEffectiveTypeRootsHost,
|
||||
MapLike,
|
||||
MatchingKeys,
|
||||
ModuleKind,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionKind,
|
||||
PackageId,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
Pattern,
|
||||
Push,
|
||||
ResolutionMode,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations,
|
||||
SourceFile,
|
||||
StringLiteralLike,
|
||||
Version,
|
||||
VersionRange,
|
||||
append,
|
||||
appendIfUnique,
|
||||
arrayFrom,
|
||||
changeAnyExtension,
|
||||
combinePaths,
|
||||
comparePaths,
|
||||
contains,
|
||||
containsPath,
|
||||
createCompilerDiagnostic,
|
||||
directoryProbablyExists,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
Extension,
|
||||
extensionIsTS,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileReference,
|
||||
filter,
|
||||
firstDefined,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
formatMessage,
|
||||
getBaseFileName,
|
||||
GetCanonicalFileName,
|
||||
getCommonSourceDirectory,
|
||||
getDirectoryPath,
|
||||
GetEffectiveTypeRootsHost,
|
||||
getEmitModuleKind,
|
||||
getEmitModuleResolutionKind,
|
||||
getModeForUsageLocation,
|
||||
@ -78,25 +59,42 @@ import {
|
||||
isStringLiteralLike,
|
||||
lastOrUndefined,
|
||||
length,
|
||||
matchPatternOrExact,
|
||||
MapLike,
|
||||
matchedText,
|
||||
MatchingKeys,
|
||||
matchPatternOrExact,
|
||||
ModuleKind,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionKind,
|
||||
noop,
|
||||
noopPush,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
optionsHaveModuleResolutionChanges,
|
||||
PackageId,
|
||||
packageIdToString,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
pathIsRelative,
|
||||
Pattern,
|
||||
patternText,
|
||||
perfLogger,
|
||||
Push,
|
||||
readJson,
|
||||
removeExtension,
|
||||
removeFileExtension,
|
||||
removePrefix,
|
||||
ResolutionMode,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations,
|
||||
some,
|
||||
sort,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
stringContains,
|
||||
StringLiteralLike,
|
||||
supportedDeclarationExtensions,
|
||||
supportedTSImplementationExtensions,
|
||||
toFileNameLowerCase,
|
||||
@ -105,7 +103,9 @@ import {
|
||||
tryGetExtensionFromPath,
|
||||
tryParsePatterns,
|
||||
version,
|
||||
Version,
|
||||
versionMajorMinor,
|
||||
VersionRange,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,60 +1,37 @@
|
||||
import {
|
||||
AmbientModuleDeclaration,
|
||||
CharacterCodes,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
ExportAssignment,
|
||||
Extension,
|
||||
FileIncludeKind,
|
||||
GetCanonicalFileName,
|
||||
Identifier,
|
||||
JsxEmit,
|
||||
MapLike,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModulePath,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionKind,
|
||||
ModuleSpecifierCache,
|
||||
ModuleSpecifierOptions,
|
||||
ModuleSpecifierResolutionHost,
|
||||
NodeFlags,
|
||||
NodeModulePathParts,
|
||||
Path,
|
||||
PropertyAccessExpression,
|
||||
ResolutionMode,
|
||||
ScriptKind,
|
||||
SourceFile,
|
||||
StringLiteral,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
TypeChecker,
|
||||
UserPreferences,
|
||||
__String,
|
||||
allKeysStartWithDot,
|
||||
AmbientModuleDeclaration,
|
||||
append,
|
||||
arrayFrom,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
compareBooleans,
|
||||
compareNumberOfDirectorySeparators,
|
||||
comparePaths,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
containsIgnoredPath,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
Debug,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
ExportAssignment,
|
||||
Extension,
|
||||
extensionFromPath,
|
||||
fileExtensionIsOneOf,
|
||||
FileIncludeKind,
|
||||
firstDefined,
|
||||
flatMap,
|
||||
flatten,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
GetCanonicalFileName,
|
||||
getDirectoryPath,
|
||||
getEmitModuleResolutionKind,
|
||||
getImpliedNodeFormatForFile,
|
||||
@ -74,6 +51,7 @@ import {
|
||||
hasJSFileExtension,
|
||||
hasTSFileExtension,
|
||||
hostGetCanonicalFileName,
|
||||
Identifier,
|
||||
isAmbientModule,
|
||||
isApplicableVersionedTypesKey,
|
||||
isExternalModuleAugmentation,
|
||||
@ -84,24 +62,46 @@ import {
|
||||
isRootedDiskPath,
|
||||
isSourceFile,
|
||||
isString,
|
||||
JsxEmit,
|
||||
map,
|
||||
mapDefined,
|
||||
MapLike,
|
||||
matchPatternOrExact,
|
||||
min,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModulePath,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionKind,
|
||||
ModuleSpecifierCache,
|
||||
ModuleSpecifierOptions,
|
||||
ModuleSpecifierResolutionHost,
|
||||
NodeFlags,
|
||||
NodeModulePathParts,
|
||||
normalizePath,
|
||||
Path,
|
||||
pathContainsNodeModules,
|
||||
pathIsBareSpecifier,
|
||||
pathIsRelative,
|
||||
PropertyAccessExpression,
|
||||
removeFileExtension,
|
||||
removeSuffix,
|
||||
ResolutionMode,
|
||||
resolvePath,
|
||||
ScriptKind,
|
||||
some,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
startsWithDirectory,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
toPath,
|
||||
tryGetExtensionFromPath,
|
||||
tryParsePatterns,
|
||||
TypeChecker,
|
||||
UserPreferences,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// Used by importFixes, getEditsForFileRename, and declaration emit to synthesize import module specifiers.
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
addRange,
|
||||
addRelatedInfo,
|
||||
AmdDependency,
|
||||
append,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
@ -12,6 +15,7 @@ import {
|
||||
AssertEntry,
|
||||
AssertionLevel,
|
||||
AsteriskToken,
|
||||
attachFileToDiagnostics,
|
||||
AwaitExpression,
|
||||
BaseNodeFactory,
|
||||
BinaryExpression,
|
||||
@ -25,6 +29,7 @@ import {
|
||||
BreakStatement,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
canHaveModifiers,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
@ -38,26 +43,38 @@ import {
|
||||
ClassStaticBlockDeclaration,
|
||||
CommaListExpression,
|
||||
CommentDirective,
|
||||
commentPragmas,
|
||||
CommentRange,
|
||||
ComputedPropertyName,
|
||||
concatenate,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
containsParseError,
|
||||
ContinueStatement,
|
||||
convertToObjectWorker,
|
||||
createDetachedDiagnostic,
|
||||
createNodeFactory,
|
||||
createScanner,
|
||||
createTextChangeRange,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticWithDetachedLocation,
|
||||
Diagnostics,
|
||||
DiagnosticWithDetachedLocation,
|
||||
DoStatement,
|
||||
DotDotDotToken,
|
||||
ElementAccessExpression,
|
||||
emptyArray,
|
||||
emptyMap,
|
||||
EndOfFileToken,
|
||||
ensureScriptKind,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
@ -69,7 +86,10 @@ import {
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
ExternalModuleReference,
|
||||
fileExtensionIsOneOf,
|
||||
FileReference,
|
||||
findIndex,
|
||||
forEach,
|
||||
ForEachChildNodes,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
@ -80,10 +100,20 @@ import {
|
||||
FunctionOrConstructorTypeNode,
|
||||
FunctionTypeNode,
|
||||
GetAccessorDeclaration,
|
||||
getBinaryOperatorPrecedence,
|
||||
getFullWidth,
|
||||
getJSDocCommentRanges,
|
||||
getLanguageVariant,
|
||||
getLastChild,
|
||||
getLeadingCommentRanges,
|
||||
getSpellingSuggestion,
|
||||
getTextOfNodeFromSourceText,
|
||||
HasJSDoc,
|
||||
hasJSDocNodes,
|
||||
HasModifiers,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
@ -92,11 +122,42 @@ import {
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
isArray,
|
||||
isAssignmentOperator,
|
||||
isAsyncModifier,
|
||||
isClassMemberModifier,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExportModifier,
|
||||
isExpressionWithTypeArguments,
|
||||
isExternalModuleReference,
|
||||
isFunctionTypeNode,
|
||||
isIdentifierText,
|
||||
isImportDeclaration,
|
||||
isImportEqualsDeclaration,
|
||||
isJSDocFunctionType,
|
||||
isJSDocNullableType,
|
||||
isJSDocReturnTag,
|
||||
isJSDocTypeTag,
|
||||
isJsxOpeningElement,
|
||||
isJsxOpeningFragment,
|
||||
isKeyword,
|
||||
isLeftHandSideExpression,
|
||||
isLiteralKind,
|
||||
isMetaProperty,
|
||||
isModifierKind,
|
||||
isNonNullExpression,
|
||||
isPrivateIdentifier,
|
||||
isSetAccessorDeclaration,
|
||||
isStringOrNumericLiteralLike,
|
||||
isTaggedTemplateExpression,
|
||||
isTemplateLiteralKind,
|
||||
isTypeReferenceNode,
|
||||
IterationStatement,
|
||||
JSDoc,
|
||||
JSDocAllType,
|
||||
@ -135,10 +196,10 @@ import {
|
||||
JSDocTemplateTag,
|
||||
JSDocText,
|
||||
JSDocThisTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
@ -146,8 +207,8 @@ import {
|
||||
JsonObjectExpressionStatement,
|
||||
JsonSourceFile,
|
||||
JsxAttribute,
|
||||
JsxAttributeValue,
|
||||
JsxAttributes,
|
||||
JsxAttributeValue,
|
||||
JsxChild,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
@ -165,10 +226,13 @@ import {
|
||||
JsxTokenSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LiteralLikeNode,
|
||||
LiteralTypeNode,
|
||||
map,
|
||||
mapDefined,
|
||||
MappedTypeNode,
|
||||
MemberExpression,
|
||||
MetaProperty,
|
||||
@ -180,6 +244,7 @@ import {
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModifiersArray,
|
||||
modifiersToFlags,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
@ -194,14 +259,19 @@ import {
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactoryFlags,
|
||||
NodeFlags,
|
||||
nodeIsMissing,
|
||||
nodeIsPresent,
|
||||
NonNullExpression,
|
||||
noop,
|
||||
normalizePath,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
NullLiteral,
|
||||
NumericLiteral,
|
||||
objectAllocator,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
@ -212,6 +282,7 @@ import {
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
PartiallyEmittedExpression,
|
||||
perfLogger,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PostfixUnaryOperator,
|
||||
@ -243,12 +314,22 @@ import {
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setTextRange,
|
||||
setTextRangePos,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
ShorthandPropertyAssignment,
|
||||
skipTrivia,
|
||||
some,
|
||||
SourceFile,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
startsWith,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
supportedDeclarationExtensions,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
@ -261,13 +342,23 @@ import {
|
||||
TemplateSpan,
|
||||
TemplateTail,
|
||||
TextChangeRange,
|
||||
textChangeRangeIsUnchanged,
|
||||
textChangeRangeNewSpan,
|
||||
TextRange,
|
||||
textSpanEnd,
|
||||
textToKeywordObj,
|
||||
ThisExpression,
|
||||
ThisTypeNode,
|
||||
ThrowStatement,
|
||||
toArray,
|
||||
Token,
|
||||
TokenFlags,
|
||||
tokenIsIdentifierOrKeyword,
|
||||
tokenIsIdentifierOrKeywordOrGreaterThan,
|
||||
tokenToString,
|
||||
tracing,
|
||||
TransformFlags,
|
||||
trimString,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
TypeAliasDeclaration,
|
||||
@ -292,97 +383,6 @@ import {
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
addRange,
|
||||
addRelatedInfo,
|
||||
append,
|
||||
attachFileToDiagnostics,
|
||||
canHaveModifiers,
|
||||
commentPragmas,
|
||||
concatenate,
|
||||
containsParseError,
|
||||
convertToObjectWorker,
|
||||
createDetachedDiagnostic,
|
||||
createNodeFactory,
|
||||
createScanner,
|
||||
createTextChangeRange,
|
||||
createTextSpanFromBounds,
|
||||
emptyArray,
|
||||
emptyMap,
|
||||
ensureScriptKind,
|
||||
fileExtensionIsOneOf,
|
||||
findIndex,
|
||||
forEach,
|
||||
getBinaryOperatorPrecedence,
|
||||
getFullWidth,
|
||||
getJSDocCommentRanges,
|
||||
getLanguageVariant,
|
||||
getLastChild,
|
||||
getLeadingCommentRanges,
|
||||
getSpellingSuggestion,
|
||||
getTextOfNodeFromSourceText,
|
||||
hasJSDocNodes,
|
||||
idText,
|
||||
isArray,
|
||||
isAssignmentOperator,
|
||||
isAsyncModifier,
|
||||
isClassMemberModifier,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExportModifier,
|
||||
isExpressionWithTypeArguments,
|
||||
isExternalModuleReference,
|
||||
isFunctionTypeNode,
|
||||
isIdentifierText,
|
||||
isImportDeclaration,
|
||||
isImportEqualsDeclaration,
|
||||
isJSDocFunctionType,
|
||||
isJSDocNullableType,
|
||||
isJSDocReturnTag,
|
||||
isJSDocTypeTag,
|
||||
isJsxOpeningElement,
|
||||
isJsxOpeningFragment,
|
||||
isKeyword,
|
||||
isLeftHandSideExpression,
|
||||
isLiteralKind,
|
||||
isMetaProperty,
|
||||
isModifierKind,
|
||||
isNonNullExpression,
|
||||
isPrivateIdentifier,
|
||||
isSetAccessorDeclaration,
|
||||
isStringOrNumericLiteralLike,
|
||||
isTaggedTemplateExpression,
|
||||
isTemplateLiteralKind,
|
||||
isTypeReferenceNode,
|
||||
lastOrUndefined,
|
||||
map,
|
||||
mapDefined,
|
||||
modifiersToFlags,
|
||||
nodeIsMissing,
|
||||
nodeIsPresent,
|
||||
noop,
|
||||
normalizePath,
|
||||
objectAllocator,
|
||||
perfLogger,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setTextRange,
|
||||
setTextRangePos,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
skipTrivia,
|
||||
some,
|
||||
startsWith,
|
||||
supportedDeclarationExtensions,
|
||||
textChangeRangeIsUnchanged,
|
||||
textChangeRangeNewSpan,
|
||||
textSpanEnd,
|
||||
textToKeywordObj,
|
||||
toArray,
|
||||
tokenIsIdentifierOrKeyword,
|
||||
tokenIsIdentifierOrKeywordOrGreaterThan,
|
||||
tokenToString,
|
||||
tracing,
|
||||
trimString,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
import {
|
||||
CharacterCodes,
|
||||
Comparison,
|
||||
Debug,
|
||||
GetCanonicalFileName,
|
||||
Path,
|
||||
compareStringsCaseInsensitive,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
Comparison,
|
||||
Debug,
|
||||
endsWith,
|
||||
equateStringsCaseInsensitive,
|
||||
equateStringsCaseSensitive,
|
||||
GetCanonicalFileName,
|
||||
getStringComparer,
|
||||
identity,
|
||||
lastOrUndefined,
|
||||
Path,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import {
|
||||
Debug,
|
||||
noop,
|
||||
Performance,
|
||||
PerformanceHooks,
|
||||
System,
|
||||
noop,
|
||||
sys,
|
||||
System,
|
||||
timestamp,
|
||||
tryGetNativePerformanceHooks,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {
|
||||
isNodeLikeSystem,
|
||||
Version,
|
||||
VersionRange,
|
||||
isNodeLikeSystem,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// The following definitions provide the minimum compatible support for the Web Performance User Timings API
|
||||
|
||||
@ -1,123 +1,30 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
CommentDirective,
|
||||
CommentDirectivesMap,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CreateProgramOptions,
|
||||
CreateSourceFileOptions,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DeclarationWithTypeParameterChildren,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticReporter,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
DirectoryStructureHost,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitOnly,
|
||||
EmitResult,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Extension,
|
||||
FileIncludeKind,
|
||||
FileIncludeReason,
|
||||
FilePreprocessingDiagnostics,
|
||||
FilePreprocessingDiagnosticsKind,
|
||||
FileReference,
|
||||
FunctionLikeDeclaration,
|
||||
GetCanonicalFileName,
|
||||
HasChangedAutomaticTypeDirectiveNames,
|
||||
HasInvalidatedResolutions,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
InputFiles,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
ModuleResolutionKind,
|
||||
Mutable,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NodeWithTypeArguments,
|
||||
ObjectLiteralExpression,
|
||||
OperationCanceledException,
|
||||
PackageId,
|
||||
PackageJsonInfoCache,
|
||||
ParameterDeclaration,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ProjectReferenceFile,
|
||||
PropertyDeclaration,
|
||||
ReferencedFile,
|
||||
ResolutionMode,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
SourceOfProjectReferenceRedirect,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
StructureIsReused,
|
||||
SymlinkCache,
|
||||
SyntaxKind,
|
||||
TsConfigSourceFile,
|
||||
TypeChecker,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
__String,
|
||||
addEmitFlags,
|
||||
addRange,
|
||||
append,
|
||||
arrayFrom,
|
||||
arrayIsEqualTo,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
canHaveModifiers,
|
||||
chainDiagnosticMessages,
|
||||
changeExtension,
|
||||
changesAffectModuleResolution,
|
||||
changesAffectingProgramStructure,
|
||||
changesAffectModuleResolution,
|
||||
clone,
|
||||
combinePaths,
|
||||
CommentDirective,
|
||||
CommentDirectivesMap,
|
||||
compareDataObjects,
|
||||
comparePaths,
|
||||
compareValues,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
computeLineAndCharacterOfPosition,
|
||||
concatenate,
|
||||
contains,
|
||||
@ -137,24 +44,49 @@ import {
|
||||
createModeAwareCache,
|
||||
createModuleResolutionCache,
|
||||
createMultiMap,
|
||||
CreateProgramOptions,
|
||||
createSourceFile,
|
||||
CreateSourceFileOptions,
|
||||
createSymlinkCache,
|
||||
createTypeChecker,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DeclarationWithTypeParameterChildren,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
diagnosticCategoryName,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
DiagnosticWithLocation,
|
||||
directorySeparator,
|
||||
DirectoryStructureHost,
|
||||
emitFiles,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitOnly,
|
||||
EmitResult,
|
||||
emptyArray,
|
||||
ensureTrailingDirectorySeparator,
|
||||
equateStringsCaseInsensitive,
|
||||
equateStringsCaseSensitive,
|
||||
explainIfFileIsRedirectAndImpliedFormat,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Extension,
|
||||
extensionFromPath,
|
||||
externalHelpersModuleNameText,
|
||||
factory,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileIncludeKind,
|
||||
FileIncludeReason,
|
||||
fileIncludeReasonToDiagnostics,
|
||||
FilePreprocessingDiagnostics,
|
||||
FilePreprocessingDiagnosticsKind,
|
||||
FileReference,
|
||||
filter,
|
||||
find,
|
||||
firstDefined,
|
||||
@ -168,9 +100,11 @@ import {
|
||||
forEachEmittedFile,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
FunctionLikeDeclaration,
|
||||
getAllowJSCompilerOption,
|
||||
getAutomaticTypeDirectiveNames,
|
||||
getBaseFileName,
|
||||
GetCanonicalFileName,
|
||||
getCommonSourceDirectoryOfConfig,
|
||||
getDefaultLibFileName,
|
||||
getDirectoryPath,
|
||||
@ -214,15 +148,23 @@ import {
|
||||
getTsConfigObjectLiteralExpression,
|
||||
getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue,
|
||||
HasChangedAutomaticTypeDirectiveNames,
|
||||
hasChangesInResolutions,
|
||||
hasExtension,
|
||||
HasInvalidatedResolutions,
|
||||
hasJSDocNodes,
|
||||
hasJSFileExtension,
|
||||
hasJsonModuleEmitEnabled,
|
||||
hasProperty,
|
||||
hasSyntacticModifier,
|
||||
hasZeroOrOneAsteriskCharacter,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
identity,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
InputFiles,
|
||||
inverseJsxOptionMap,
|
||||
isAmbientModule,
|
||||
isAnyImportOrReExport,
|
||||
@ -241,8 +183,8 @@ import {
|
||||
isImportEqualsDeclaration,
|
||||
isImportSpecifier,
|
||||
isImportTypeNode,
|
||||
isInJSFile,
|
||||
isIncrementalCompilation,
|
||||
isInJSFile,
|
||||
isLiteralImportTypeNode,
|
||||
isModifier,
|
||||
isModuleDeclaration,
|
||||
@ -255,6 +197,8 @@ import {
|
||||
isStringLiteral,
|
||||
isStringLiteralLike,
|
||||
isTraceEnabled,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
length,
|
||||
libMap,
|
||||
libs,
|
||||
@ -262,32 +206,70 @@ import {
|
||||
mapDefinedIterator,
|
||||
maybeBind,
|
||||
memoize,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
moduleResolutionIsEqualTo,
|
||||
noTransformers,
|
||||
ModuleResolutionKind,
|
||||
Mutable,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeModulesPathPart,
|
||||
NodeWithTypeArguments,
|
||||
noop,
|
||||
normalizePath,
|
||||
notImplementedResolver,
|
||||
noTransformers,
|
||||
ObjectLiteralExpression,
|
||||
OperationCanceledException,
|
||||
optionsHaveChanges,
|
||||
outFile,
|
||||
PackageId,
|
||||
packageIdToPackageName,
|
||||
packageIdToString,
|
||||
PackageJsonInfoCache,
|
||||
padLeft,
|
||||
ParameterDeclaration,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
parseIsolatedEntityName,
|
||||
parseJsonSourceFileConfigFileContent,
|
||||
Path,
|
||||
pathIsAbsolute,
|
||||
pathIsRelative,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ProjectReferenceFile,
|
||||
projectReferenceIsEqualTo,
|
||||
PropertyDeclaration,
|
||||
ReferencedFile,
|
||||
removeFileExtension,
|
||||
removePrefix,
|
||||
removeSuffix,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
ResolutionMode,
|
||||
resolveConfigFileProjectName,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
resolveModuleName,
|
||||
resolveModuleNameFromCache,
|
||||
resolveTypeReferenceDirective,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setResolvedModule,
|
||||
@ -296,12 +278,21 @@ import {
|
||||
skipTypeChecking,
|
||||
some,
|
||||
sortAndDeduplicateDiagnostics,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
sourceFileAffectingCompilerOptions,
|
||||
sourceFileMayBeEmitted,
|
||||
SourceOfProjectReferenceRedirect,
|
||||
stableSort,
|
||||
startsWith,
|
||||
Statement,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
StructureIsReused,
|
||||
supportedJSExtensionsFlat,
|
||||
SymlinkCache,
|
||||
SyntaxKind,
|
||||
sys,
|
||||
targetOptionDeclaration,
|
||||
toFileNameLowerCase,
|
||||
@ -309,8 +300,17 @@ import {
|
||||
trace,
|
||||
tracing,
|
||||
trimStringEnd,
|
||||
TsConfigSourceFile,
|
||||
TypeChecker,
|
||||
typeDirectiveIsEqualTo,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
walkUpParenthesizedExpressions,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
writeFileEnsuringDirectories,
|
||||
zipToModeAwareCache,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
@ -1,54 +1,35 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
CacheWithRedirects,
|
||||
CachedDirectoryStructureHost,
|
||||
CharacterCodes,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Diagnostics,
|
||||
DirectoryWatcherCallback,
|
||||
Extension,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
GetCanonicalFileName,
|
||||
HasInvalidatedResolutions,
|
||||
MinimalResolutionCacheHost,
|
||||
ModeAwareCache,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
PackageId,
|
||||
Path,
|
||||
PerModuleNameCache,
|
||||
Program,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations,
|
||||
SourceFile,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
WatchDirectoryFlags,
|
||||
arrayToMap,
|
||||
CachedDirectoryStructureHost,
|
||||
CacheWithRedirects,
|
||||
CharacterCodes,
|
||||
clearMap,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
CompilerOptions,
|
||||
contains,
|
||||
createCacheWithRedirects,
|
||||
createModeAwareCache,
|
||||
createModuleResolutionCache,
|
||||
createMultiMap,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
Debug,
|
||||
Diagnostics,
|
||||
directorySeparator,
|
||||
DirectoryWatcherCallback,
|
||||
emptyArray,
|
||||
emptyIterator,
|
||||
endsWith,
|
||||
Extension,
|
||||
extensionIsTS,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
firstDefinedIterator,
|
||||
GetCanonicalFileName,
|
||||
getDirectoryPath,
|
||||
getEffectiveTypeRoots,
|
||||
getModeForFileReference,
|
||||
@ -57,6 +38,7 @@ import {
|
||||
getNormalizedAbsolutePath,
|
||||
getResolutionName,
|
||||
getRootLength,
|
||||
HasInvalidatedResolutions,
|
||||
ignoredPaths,
|
||||
inferredTypesContainingFile,
|
||||
isEmittedFileOfProgram,
|
||||
@ -70,21 +52,39 @@ import {
|
||||
length,
|
||||
loadModuleFromGlobalCache,
|
||||
memoize,
|
||||
MinimalResolutionCacheHost,
|
||||
ModeAwareCache,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
mutateMap,
|
||||
noopFileWatcher,
|
||||
normalizePath,
|
||||
PackageId,
|
||||
packageIdToString,
|
||||
parseNodeModuleFromPath,
|
||||
Path,
|
||||
pathContainsNodeModules,
|
||||
PerModuleNameCache,
|
||||
Program,
|
||||
removeSuffix,
|
||||
removeTrailingDirectorySeparator,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations,
|
||||
returnTrue,
|
||||
some,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
stringContains,
|
||||
trace,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
unorderedRemoveItem,
|
||||
WatchDirectoryFlags,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,30 +1,30 @@
|
||||
import {
|
||||
append,
|
||||
arraysEqual,
|
||||
binarySearch,
|
||||
CharacterCodes,
|
||||
CommentDirective,
|
||||
CommentDirectiveType,
|
||||
CommentKind,
|
||||
CommentRange,
|
||||
compareValues,
|
||||
Debug,
|
||||
DiagnosticMessage,
|
||||
Diagnostics,
|
||||
getEntries,
|
||||
identity,
|
||||
JSDocSyntaxKind,
|
||||
JsxTokenSyntaxKind,
|
||||
KeywordSyntaxKind,
|
||||
LanguageVariant,
|
||||
LineAndCharacter,
|
||||
MapLike,
|
||||
parsePseudoBigInt,
|
||||
positionIsSynthesized,
|
||||
ScriptTarget,
|
||||
SourceFileLike,
|
||||
SyntaxKind,
|
||||
TokenFlags,
|
||||
append,
|
||||
arraysEqual,
|
||||
binarySearch,
|
||||
compareValues,
|
||||
getEntries,
|
||||
identity,
|
||||
parsePseudoBigInt,
|
||||
positionIsSynthesized,
|
||||
trimStringStart,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import {
|
||||
Comparison,
|
||||
Debug,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
Comparison,
|
||||
Debug,
|
||||
emptyArray,
|
||||
every,
|
||||
isArray,
|
||||
|
||||
@ -1,18 +1,14 @@
|
||||
import {
|
||||
arrayFrom,
|
||||
binarySearchKey,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
compareValues,
|
||||
Debug,
|
||||
DocumentPosition,
|
||||
DocumentPositionMapper,
|
||||
DocumentPositionMapperHost,
|
||||
EmitHost,
|
||||
LineAndCharacter,
|
||||
RawSourceMap,
|
||||
SortedReadonlyArray,
|
||||
SourceMapGenerator,
|
||||
arrayFrom,
|
||||
binarySearchKey,
|
||||
combinePaths,
|
||||
compareValues,
|
||||
emptyArray,
|
||||
every,
|
||||
getDirectoryPath,
|
||||
@ -22,8 +18,12 @@ import {
|
||||
identity,
|
||||
isArray,
|
||||
isString,
|
||||
LineAndCharacter,
|
||||
RawSourceMap,
|
||||
some,
|
||||
sortAndDeduplicate,
|
||||
SortedReadonlyArray,
|
||||
SourceMapGenerator,
|
||||
trimStringEnd,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
import {
|
||||
clear,
|
||||
EntityNameOrEntityNameExpression,
|
||||
forEach,
|
||||
getOwnValues,
|
||||
getSymbolId,
|
||||
Identifier,
|
||||
IndexType,
|
||||
IndexedAccessType,
|
||||
IndexType,
|
||||
InterfaceType,
|
||||
MappedType,
|
||||
Node,
|
||||
@ -20,10 +24,6 @@ import {
|
||||
TypeQueryNode,
|
||||
TypeReference,
|
||||
UnionOrIntersectionType,
|
||||
clear,
|
||||
forEach,
|
||||
getOwnValues,
|
||||
getSymbolId,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,26 +1,20 @@
|
||||
import {
|
||||
AssertionLevel,
|
||||
Comparison,
|
||||
Debug,
|
||||
FileSystemEntries,
|
||||
Path,
|
||||
PollingWatchKind,
|
||||
RequireResult,
|
||||
WatchDirectoryKind,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
Comparison,
|
||||
contains,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
createMultiMap,
|
||||
Debug,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
emptyFileSystemEntries,
|
||||
endsWith,
|
||||
enumerateInsertsAndDeletes,
|
||||
FileSystemEntries,
|
||||
getDirectoryPath,
|
||||
getFallbackOptions,
|
||||
getNormalizedAbsolutePath,
|
||||
@ -31,20 +25,26 @@ import {
|
||||
isNodeLikeSystem,
|
||||
isString,
|
||||
mapDefined,
|
||||
matchFiles,
|
||||
matchesExclude,
|
||||
matchFiles,
|
||||
memoize,
|
||||
noop,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
orderedRemoveItem,
|
||||
Path,
|
||||
perfLogger,
|
||||
PollingWatchKind,
|
||||
RequireResult,
|
||||
resolveJSModule,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
timestamp,
|
||||
unorderedRemoveItem,
|
||||
WatchDirectoryKind,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
writeFileEnsuringDirectories,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
import {
|
||||
combinePaths,
|
||||
ConditionalType,
|
||||
Debug,
|
||||
EvolvingArrayType,
|
||||
IndexType,
|
||||
getLineAndCharacterOfPosition,
|
||||
getSourceFileOfNode,
|
||||
IndexedAccessType,
|
||||
IndexType,
|
||||
IntersectionType,
|
||||
LineAndCharacter,
|
||||
Node,
|
||||
@ -11,15 +14,12 @@ import {
|
||||
Path,
|
||||
ReverseMappedType,
|
||||
SubstitutionType,
|
||||
timestamp,
|
||||
Type,
|
||||
TypeFlags,
|
||||
TypeReference,
|
||||
UnionType,
|
||||
combinePaths,
|
||||
getLineAndCharacterOfPosition,
|
||||
getSourceFileOfNode,
|
||||
timestamp,
|
||||
unescapeLeadingUnderscores,
|
||||
UnionType,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,11 +1,16 @@
|
||||
import {
|
||||
addRange,
|
||||
append,
|
||||
Bundle,
|
||||
chainBundle,
|
||||
CompilerOptions,
|
||||
createEmitHelperFactory,
|
||||
CustomTransformer,
|
||||
CustomTransformerFactory,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DiagnosticWithLocation,
|
||||
disposeEmitNodes,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitHint,
|
||||
@ -13,48 +18,42 @@ import {
|
||||
EmitOnly,
|
||||
EmitResolver,
|
||||
EmitTransformers,
|
||||
FunctionDeclaration,
|
||||
Identifier,
|
||||
LexicalEnvironmentFlags,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
ScriptTarget,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TransformationResult,
|
||||
Transformer,
|
||||
TransformerFactory,
|
||||
VariableDeclaration,
|
||||
addRange,
|
||||
append,
|
||||
chainBundle,
|
||||
createEmitHelperFactory,
|
||||
disposeEmitNodes,
|
||||
emptyArray,
|
||||
factory,
|
||||
FunctionDeclaration,
|
||||
getEmitFlags,
|
||||
getEmitModuleKind,
|
||||
getEmitScriptTarget,
|
||||
getJSXTransformEnabled,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
Identifier,
|
||||
isBundle,
|
||||
isSourceFile,
|
||||
LexicalEnvironmentFlags,
|
||||
map,
|
||||
memoize,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
noop,
|
||||
notImplemented,
|
||||
returnUndefined,
|
||||
ScriptTarget,
|
||||
setEmitFlags,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
tracing,
|
||||
TransformationContext,
|
||||
TransformationResult,
|
||||
transformClassFields,
|
||||
transformDeclarations,
|
||||
transformECMAScriptModule,
|
||||
Transformer,
|
||||
TransformerFactory,
|
||||
transformES2015,
|
||||
transformES2016,
|
||||
transformES2017,
|
||||
@ -71,6 +70,7 @@ import {
|
||||
transformNodeModule,
|
||||
transformSystemModule,
|
||||
transformTypeScript,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
import {
|
||||
__String,
|
||||
AccessorDeclaration,
|
||||
addEmitFlags,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
append,
|
||||
AssignmentOperator,
|
||||
AssignmentPattern,
|
||||
AutoAccessorPropertyDeclaration,
|
||||
@ -7,72 +12,37 @@ import {
|
||||
BindingOrAssignmentElement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
chainBundle,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
ClassStaticBlockDeclaration,
|
||||
compact,
|
||||
ComputedPropertyName,
|
||||
ConstructorDeclaration,
|
||||
createAccessorPropertyBackingField,
|
||||
createAccessorPropertyGetRedirector,
|
||||
createAccessorPropertySetRedirector,
|
||||
createMemberAccessForPropertyName,
|
||||
Debug,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
expandPreOrPostfixIncrementOrDecrementExpression,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
factory,
|
||||
filter,
|
||||
findSuperStatementIndex,
|
||||
ForStatement,
|
||||
GeneratedIdentifier,
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedNamePart,
|
||||
GeneratedPrivateIdentifier,
|
||||
GetAccessorDeclaration,
|
||||
Identifier,
|
||||
InKeyword,
|
||||
LeftHandSideExpression,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
ObjectLiteralElementLike,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PrivateIdentifierPropertyAccessExpression,
|
||||
PrivateIdentifierPropertyDeclaration,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SuperProperty,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
ThisExpression,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
UnderscoreEscapedMap,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
__String,
|
||||
addEmitFlags,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
append,
|
||||
chainBundle,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
compact,
|
||||
createAccessorPropertyBackingField,
|
||||
createAccessorPropertyGetRedirector,
|
||||
createAccessorPropertySetRedirector,
|
||||
createMemberAccessForPropertyName,
|
||||
expandPreOrPostfixIncrementOrDecrementExpression,
|
||||
factory,
|
||||
filter,
|
||||
findSuperStatementIndex,
|
||||
getCommentRange,
|
||||
getEffectiveBaseTypeNode,
|
||||
getEmitFlags,
|
||||
@ -93,6 +63,8 @@ import {
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
InKeyword,
|
||||
isAccessorModifier,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
@ -145,10 +117,27 @@ import {
|
||||
isSuperProperty,
|
||||
isTemplateLiteral,
|
||||
isThisProperty,
|
||||
LeftHandSideExpression,
|
||||
map,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
moveRangePastModifiers,
|
||||
moveRangePos,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
nodeIsSynthesized,
|
||||
ObjectLiteralElementLike,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PrivateIdentifierPropertyAccessExpression,
|
||||
PrivateIdentifierPropertyDeclaration,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
@ -160,9 +149,19 @@ import {
|
||||
skipParentheses,
|
||||
skipPartiallyEmittedExpressions,
|
||||
some,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
SuperProperty,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
ThisExpression,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
tryGetTextOfPropertyName,
|
||||
UnderscoreEscapedMap,
|
||||
unescapeLeadingUnderscores,
|
||||
VariableStatement,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
@ -170,6 +169,7 @@ import {
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ClassPropertySubstitutionFlags {
|
||||
|
||||
@ -1,95 +1,27 @@
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
addRelatedInfo,
|
||||
AllAccessorDeclarations,
|
||||
AnyImportSyntax,
|
||||
append,
|
||||
ArrayBindingElement,
|
||||
arrayFrom,
|
||||
AssertClause,
|
||||
BindingElement,
|
||||
BindingName,
|
||||
BindingPattern,
|
||||
Bundle,
|
||||
CallSignatureDeclaration,
|
||||
ClassDeclaration,
|
||||
CommentRange,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationDiagnosticProducing,
|
||||
DeclarationName,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitResolver,
|
||||
EntityNameOrEntityNameExpression,
|
||||
EnumDeclaration,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExpressionWithTypeArguments,
|
||||
FileReference,
|
||||
FunctionDeclaration,
|
||||
FunctionTypeNode,
|
||||
GeneratedIdentifierFlags,
|
||||
GetAccessorDeclaration,
|
||||
GetSymbolAccessibilityDiagnostic,
|
||||
HasModifiers,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InterfaceDeclaration,
|
||||
LateBoundDeclaration,
|
||||
LateVisibilityPaintedStatement,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
NamedDeclaration,
|
||||
NamespaceDeclaration,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeBuilderFlags,
|
||||
NodeFlags,
|
||||
NodeId,
|
||||
OmittedExpression,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
ResolutionMode,
|
||||
SetAccessorDeclaration,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
Symbol,
|
||||
SymbolAccessibility,
|
||||
SymbolAccessibilityResult,
|
||||
SymbolFlags,
|
||||
SymbolTracker,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TypeAliasDeclaration,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
TypeReferenceNode,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
addRelatedInfo,
|
||||
append,
|
||||
arrayFrom,
|
||||
canHaveModifiers,
|
||||
canProduceDiagnostics,
|
||||
ClassDeclaration,
|
||||
CommentRange,
|
||||
compact,
|
||||
concatenate,
|
||||
ConditionalTypeNode,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
contains,
|
||||
createDiagnosticForNode,
|
||||
createEmptyExports,
|
||||
@ -97,13 +29,32 @@ import {
|
||||
createGetSymbolAccessibilityDiagnosticForNodeName,
|
||||
createSymbolTable,
|
||||
createUnparsedSourceFile,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationDiagnosticProducing,
|
||||
DeclarationName,
|
||||
declarationNameToString,
|
||||
Diagnostics,
|
||||
DiagnosticWithLocation,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitResolver,
|
||||
emptyArray,
|
||||
EntityNameOrEntityNameExpression,
|
||||
EnumDeclaration,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExpressionWithTypeArguments,
|
||||
factory,
|
||||
FileReference,
|
||||
filter,
|
||||
flatMap,
|
||||
flatten,
|
||||
forEach,
|
||||
FunctionDeclaration,
|
||||
FunctionTypeNode,
|
||||
GeneratedIdentifierFlags,
|
||||
GetAccessorDeclaration,
|
||||
getCommentRange,
|
||||
getDirectoryPath,
|
||||
getEffectiveBaseTypeNode,
|
||||
@ -123,6 +74,7 @@ import {
|
||||
getResolvedExternalModuleName,
|
||||
getSetAccessorValueParameter,
|
||||
getSourceFileOfNode,
|
||||
GetSymbolAccessibilityDiagnostic,
|
||||
getTextOfNode,
|
||||
getThisParameter,
|
||||
getTrailingCommentRanges,
|
||||
@ -130,7 +82,15 @@ import {
|
||||
hasEffectiveModifier,
|
||||
hasExtension,
|
||||
hasJSDocNodes,
|
||||
HasModifiers,
|
||||
hasSyntacticModifier,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
InterfaceDeclaration,
|
||||
isAnyImportSyntax,
|
||||
isArray,
|
||||
isBindingPattern,
|
||||
@ -181,35 +141,75 @@ import {
|
||||
isTypeQueryNode,
|
||||
isUnparsedSource,
|
||||
last,
|
||||
LateBoundDeclaration,
|
||||
LateVisibilityPaintedStatement,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
NamedDeclaration,
|
||||
NamespaceDeclaration,
|
||||
needsScopeMarker,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeBuilderFlags,
|
||||
NodeFlags,
|
||||
NodeId,
|
||||
normalizeSlashes,
|
||||
OmittedExpression,
|
||||
orderedRemoveItem,
|
||||
ParameterDeclaration,
|
||||
parseNodeFactory,
|
||||
pathContainsNodeModules,
|
||||
pathIsRelative,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
pushIfUnique,
|
||||
removeAllComments,
|
||||
ResolutionMode,
|
||||
SetAccessorDeclaration,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setTextRange,
|
||||
SignatureDeclaration,
|
||||
skipTrivia,
|
||||
some,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
Statement,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
Symbol,
|
||||
SymbolAccessibility,
|
||||
SymbolAccessibilityResult,
|
||||
SymbolFlags,
|
||||
SymbolTracker,
|
||||
SyntaxKind,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
TransformationContext,
|
||||
transformNodes,
|
||||
tryCast,
|
||||
TypeAliasDeclaration,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
TypeReferenceNode,
|
||||
unescapeLeadingUnderscores,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
import * as moduleSpecifiers from "../_namespaces/ts.moduleSpecifiers";
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import {
|
||||
BindingElement,
|
||||
CallSignatureDeclaration,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructSignatureDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
@ -11,8 +11,34 @@ import {
|
||||
ExpressionWithTypeArguments,
|
||||
FunctionDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
getNameOfDeclaration,
|
||||
hasSyntacticModifier,
|
||||
ImportEqualsDeclaration,
|
||||
IndexSignatureDeclaration,
|
||||
isBindingElement,
|
||||
isCallSignatureDeclaration,
|
||||
isClassDeclaration,
|
||||
isConstructorDeclaration,
|
||||
isConstructSignatureDeclaration,
|
||||
isExpressionWithTypeArguments,
|
||||
isFunctionDeclaration,
|
||||
isGetAccessor,
|
||||
isHeritageClause,
|
||||
isImportEqualsDeclaration,
|
||||
isIndexSignatureDeclaration,
|
||||
isJSDocTypeAlias,
|
||||
isMethodDeclaration,
|
||||
isMethodSignature,
|
||||
isParameter,
|
||||
isParameterPropertyDeclaration,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyDeclaration,
|
||||
isPropertySignature,
|
||||
isSetAccessor,
|
||||
isStatic,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocTypedefTag,
|
||||
@ -33,32 +59,6 @@ import {
|
||||
TypeAliasDeclaration,
|
||||
TypeParameterDeclaration,
|
||||
VariableDeclaration,
|
||||
getNameOfDeclaration,
|
||||
hasSyntacticModifier,
|
||||
isBindingElement,
|
||||
isCallSignatureDeclaration,
|
||||
isClassDeclaration,
|
||||
isConstructSignatureDeclaration,
|
||||
isConstructorDeclaration,
|
||||
isExpressionWithTypeArguments,
|
||||
isFunctionDeclaration,
|
||||
isGetAccessor,
|
||||
isHeritageClause,
|
||||
isImportEqualsDeclaration,
|
||||
isIndexSignatureDeclaration,
|
||||
isJSDocTypeAlias,
|
||||
isMethodDeclaration,
|
||||
isMethodSignature,
|
||||
isParameter,
|
||||
isParameterPropertyDeclaration,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyDeclaration,
|
||||
isPropertySignature,
|
||||
isSetAccessor,
|
||||
isStatic,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
import {
|
||||
__String,
|
||||
addRange,
|
||||
append,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingOrAssignmentPattern,
|
||||
BindingElement,
|
||||
@ -9,23 +12,8 @@ import {
|
||||
Debug,
|
||||
DestructuringAssignment,
|
||||
ElementAccessExpression,
|
||||
Expression,
|
||||
Identifier,
|
||||
LeftHandSideExpression,
|
||||
Node,
|
||||
NodeFactory,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
ParameterDeclaration,
|
||||
PropertyName,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VisitResult,
|
||||
__String,
|
||||
addRange,
|
||||
append,
|
||||
every,
|
||||
Expression,
|
||||
factory,
|
||||
forEach,
|
||||
getElementsOfBindingOrAssignmentPattern,
|
||||
@ -33,6 +21,7 @@ import {
|
||||
getPropertyNameOfBindingOrAssignmentElement,
|
||||
getRestIndicatorOfBindingOrAssignmentElement,
|
||||
getTargetOfBindingOrAssignmentElement,
|
||||
Identifier,
|
||||
idText,
|
||||
isArrayBindingElement,
|
||||
isArrayBindingOrAssignmentPattern,
|
||||
@ -54,12 +43,23 @@ import {
|
||||
isStringOrNumericLiteralLike,
|
||||
isVariableDeclaration,
|
||||
last,
|
||||
LeftHandSideExpression,
|
||||
map,
|
||||
Node,
|
||||
NodeFactory,
|
||||
nodeIsSynthesized,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
ParameterDeclaration,
|
||||
PropertyName,
|
||||
setTextRange,
|
||||
some,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
tryGetPropertyNameOfBindingOrAssignmentElement,
|
||||
VariableDeclaration,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
interface FlattenContext {
|
||||
|
||||
@ -1,6 +1,12 @@
|
||||
import {
|
||||
__String,
|
||||
AccessorDeclaration,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
addSyntheticLeadingComment,
|
||||
AllAccessorDeclarations,
|
||||
append,
|
||||
arrayIsEqualTo,
|
||||
ArrayLiteralExpression,
|
||||
ArrowFunction,
|
||||
BinaryExpression,
|
||||
@ -12,22 +18,38 @@ import {
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
cast,
|
||||
CatchClause,
|
||||
chainBundle,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
CommaListExpression,
|
||||
ComputedPropertyName,
|
||||
concatenate,
|
||||
ConstructorDeclaration,
|
||||
createExpressionForPropertyName,
|
||||
createMemberAccessForPropertyName,
|
||||
createRange,
|
||||
createTokenRange,
|
||||
Debug,
|
||||
Declaration,
|
||||
DoStatement,
|
||||
elementAt,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
emptyArray,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
filter,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flatten,
|
||||
flattenDestructuringAssignment,
|
||||
flattenDestructuringBinding,
|
||||
FlattenLevel,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
@ -37,73 +59,6 @@ import {
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
IterationStatement,
|
||||
LabeledStatement,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
NamedDeclaration,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PrimaryExpression,
|
||||
ProcessLevel,
|
||||
PropertyAssignment,
|
||||
ReturnStatement,
|
||||
SemicolonClassElement,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TextRange,
|
||||
TokenFlags,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
YieldExpression,
|
||||
__String,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
addSyntheticLeadingComment,
|
||||
append,
|
||||
arrayIsEqualTo,
|
||||
cast,
|
||||
chainBundle,
|
||||
concatenate,
|
||||
createExpressionForPropertyName,
|
||||
createMemberAccessForPropertyName,
|
||||
createRange,
|
||||
createTokenRange,
|
||||
elementAt,
|
||||
emptyArray,
|
||||
filter,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flatten,
|
||||
flattenDestructuringAssignment,
|
||||
flattenDestructuringBinding,
|
||||
getAllAccessorDeclarations,
|
||||
getClassExtendsHeritageElement,
|
||||
getCombinedNodeFlags,
|
||||
@ -119,7 +74,9 @@ import {
|
||||
getUseDefineForClassFields,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
insertStatementAfterCustomPrologue,
|
||||
insertStatementsAfterCustomPrologue,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
@ -171,15 +128,38 @@ import {
|
||||
isVariableDeclarationList,
|
||||
isVariableStatement,
|
||||
isWithStatement,
|
||||
IterationStatement,
|
||||
LabeledStatement,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
map,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
moveRangeEnd,
|
||||
moveRangePos,
|
||||
moveSyntheticComments,
|
||||
NamedDeclaration,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
nodeIsSynthesized,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PrimaryExpression,
|
||||
ProcessLevel,
|
||||
processTaggedTemplateExpression,
|
||||
PropertyAssignment,
|
||||
rangeEndIsOnSameLineAsRangeStart,
|
||||
ReturnStatement,
|
||||
SemicolonClassElement,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
@ -189,21 +169,41 @@ import {
|
||||
setTextRangeEnd,
|
||||
setTextRangePos,
|
||||
setTokenSourceMapRange,
|
||||
ShorthandPropertyAssignment,
|
||||
singleOrMany,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
SourceFile,
|
||||
spanMap,
|
||||
SpreadElement,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
takeWhile,
|
||||
TemplateExpression,
|
||||
TextRange,
|
||||
TokenFlags,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
tryCast,
|
||||
unescapeLeadingUnderscores,
|
||||
unwrapInnermostStatementOfLabel,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
YieldExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ES2015SubstitutionFlags {
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
import {
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
Expression,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
Expression,
|
||||
isElementAccessExpression,
|
||||
isExpression,
|
||||
isPropertyAccessExpression,
|
||||
Node,
|
||||
setTextRange,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,13 +1,20 @@
|
||||
import {
|
||||
__String,
|
||||
AccessorDeclaration,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
advancedAsyncSuperHelper,
|
||||
ArrowFunction,
|
||||
asyncSuperHelper,
|
||||
AwaitExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CatchClause,
|
||||
chainBundle,
|
||||
ClassDeclaration,
|
||||
concatenate,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
@ -16,8 +23,9 @@ import {
|
||||
EmitHint,
|
||||
EmitResolver,
|
||||
Expression,
|
||||
ForInStatement,
|
||||
forEach,
|
||||
ForInitializer,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
@ -27,37 +35,6 @@ import {
|
||||
FunctionLikeDeclaration,
|
||||
GeneratedIdentifierFlags,
|
||||
GetAccessorDeclaration,
|
||||
LeftHandSideExpression,
|
||||
MethodDeclaration,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
TypeNode,
|
||||
TypeReferenceSerializationKind,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
__String,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
advancedAsyncSuperHelper,
|
||||
asyncSuperHelper,
|
||||
chainBundle,
|
||||
concatenate,
|
||||
forEach,
|
||||
getEmitScriptTarget,
|
||||
getEntityNameFromTypeNode,
|
||||
getFunctionFlags,
|
||||
@ -82,19 +59,42 @@ import {
|
||||
isSuperProperty,
|
||||
isToken,
|
||||
isVariableDeclarationList,
|
||||
LeftHandSideExpression,
|
||||
map,
|
||||
MethodDeclaration,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
TypeNode,
|
||||
TypeReferenceSerializationKind,
|
||||
unescapeLeadingUnderscores,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
type SuperContainer = ClassDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration;
|
||||
|
||||
@ -1,20 +1,34 @@
|
||||
import {
|
||||
__String,
|
||||
AccessorDeclaration,
|
||||
addEmitFlags,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
advancedAsyncSuperHelper,
|
||||
append,
|
||||
ArrowFunction,
|
||||
asyncSuperHelper,
|
||||
AwaitExpression,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CatchClause,
|
||||
chainBundle,
|
||||
CommaListExpression,
|
||||
concatenate,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
createForOfBindingStatement,
|
||||
createSuperAccessVariableStatement,
|
||||
Debug,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
flattenDestructuringAssignment,
|
||||
flattenDestructuringBinding,
|
||||
FlattenLevel,
|
||||
ForInitializer,
|
||||
ForOfStatement,
|
||||
@ -26,55 +40,11 @@ import {
|
||||
FunctionLikeDeclaration,
|
||||
GeneratedIdentifierFlags,
|
||||
GetAccessorDeclaration,
|
||||
Identifier,
|
||||
LabeledStatement,
|
||||
LeftHandSideExpression,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ProcessLevel,
|
||||
PropertyAccessExpression,
|
||||
ReturnStatement,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
Token,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
YieldExpression,
|
||||
__String,
|
||||
addEmitFlags,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
advancedAsyncSuperHelper,
|
||||
append,
|
||||
asyncSuperHelper,
|
||||
chainBundle,
|
||||
concatenate,
|
||||
createForOfBindingStatement,
|
||||
createSuperAccessVariableStatement,
|
||||
flattenDestructuringAssignment,
|
||||
flattenDestructuringBinding,
|
||||
getEmitScriptTarget,
|
||||
getFunctionFlags,
|
||||
getNodeId,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isAssignmentPattern,
|
||||
isBindingPattern,
|
||||
@ -95,21 +65,51 @@ import {
|
||||
isSuperProperty,
|
||||
isToken,
|
||||
isVariableDeclarationList,
|
||||
LabeledStatement,
|
||||
LeftHandSideExpression,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ProcessLevel,
|
||||
processTaggedTemplateExpression,
|
||||
PropertyAccessExpression,
|
||||
ReturnStatement,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
SignatureDeclaration,
|
||||
skipParentheses,
|
||||
some,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
Token,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
unwrapInnermostStatementOfLabel,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitLexicalEnvironment,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
VoidExpression,
|
||||
YieldExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ESNextSubstitutionFlags {
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import {
|
||||
Bundle,
|
||||
CatchClause,
|
||||
chainBundle,
|
||||
isBlock,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
isBlock,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,24 +1,15 @@
|
||||
import {
|
||||
AccessExpression,
|
||||
addEmitFlags,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
cast,
|
||||
chainBundle,
|
||||
Debug,
|
||||
DeleteExpression,
|
||||
EmitFlags,
|
||||
Expression,
|
||||
Node,
|
||||
OptionalChain,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizedExpression,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
addEmitFlags,
|
||||
cast,
|
||||
chainBundle,
|
||||
isCallChain,
|
||||
isExpression,
|
||||
isGeneratedIdentifier,
|
||||
@ -29,13 +20,22 @@ import {
|
||||
isSimpleCopiableExpression,
|
||||
isSyntheticReference,
|
||||
isTaggedTemplateExpression,
|
||||
Node,
|
||||
OptionalChain,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizedExpression,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
skipParentheses,
|
||||
skipPartiallyEmittedExpressions,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -2,14 +2,6 @@ import {
|
||||
AssignmentExpression,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
LogicalOrCoalescingAssignmentOperator,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
Token,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
getNonAssignmentOperatorForCompoundAssignment,
|
||||
isAccessExpression,
|
||||
@ -18,9 +10,17 @@ import {
|
||||
isLogicalOrCoalescingAssignmentExpression,
|
||||
isPropertyAccessExpression,
|
||||
isSimpleCopiableExpression,
|
||||
LogicalOrCoalescingAssignmentOperator,
|
||||
Node,
|
||||
skipParentheses,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
Token,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
import {
|
||||
Bundle,
|
||||
chainBundle,
|
||||
EmitHint,
|
||||
Expression,
|
||||
Identifier,
|
||||
JsxClosingElement,
|
||||
JsxEmit,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
Node,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
chainBundle,
|
||||
getOriginalNodeId,
|
||||
Identifier,
|
||||
idText,
|
||||
isIdentifier,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyAssignment,
|
||||
JsxClosingElement,
|
||||
JsxEmit,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
Node,
|
||||
nodeIsSynthesized,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
setTextRange,
|
||||
SourceFile,
|
||||
stringToToken,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import {
|
||||
Bundle,
|
||||
chainBundle,
|
||||
Node,
|
||||
SourceFile,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
addEmitHelpers,
|
||||
addSyntheticTrailingComment,
|
||||
ArrayLiteralExpression,
|
||||
Associativity,
|
||||
BinaryExpression,
|
||||
@ -8,9 +10,11 @@ import {
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CaseClause,
|
||||
chainBundle,
|
||||
CommaListExpression,
|
||||
ConditionalExpression,
|
||||
ContinueStatement,
|
||||
createExpressionForObjectLiteralElementLike,
|
||||
Debug,
|
||||
DoStatement,
|
||||
ElementAccessExpression,
|
||||
@ -18,46 +22,11 @@ import {
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
forEach,
|
||||
ForInStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
InitializedVariableDeclaration,
|
||||
LabeledStatement,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
Mutable,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
PropertyAccessExpression,
|
||||
ReturnStatement,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
TryStatement,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
addEmitHelpers,
|
||||
addSyntheticTrailingComment,
|
||||
chainBundle,
|
||||
createExpressionForObjectLiteralElementLike,
|
||||
forEach,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
getExpressionAssociativity,
|
||||
@ -65,7 +34,10 @@ import {
|
||||
getNonAssignmentOperatorForCompoundAssignment,
|
||||
getOriginalNode,
|
||||
getOriginalNodeId,
|
||||
Identifier,
|
||||
idText,
|
||||
IfStatement,
|
||||
InitializedVariableDeclaration,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isBinaryExpression,
|
||||
isBlock,
|
||||
@ -80,21 +52,49 @@ import {
|
||||
isObjectLiteralElementLike,
|
||||
isStatement,
|
||||
isVariableDeclarationList,
|
||||
LabeledStatement,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
map,
|
||||
Mutable,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NumericLiteral,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
PropertyAccessExpression,
|
||||
reduceLeft,
|
||||
ReturnStatement,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
ThrowStatement,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
TryStatement,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// Transforms generator functions into a compatible ES5 representation with similar runtime
|
||||
|
||||
@ -1,47 +1,19 @@
|
||||
import {
|
||||
Bundle,
|
||||
Debug,
|
||||
Expression,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
ImportSpecifier,
|
||||
JsxAttribute,
|
||||
JsxAttributeValue,
|
||||
JsxChild,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningFragment,
|
||||
JsxOpeningLikeElement,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxText,
|
||||
Node,
|
||||
NodeFlags,
|
||||
PropertyAssignment,
|
||||
ScriptTarget,
|
||||
SourceFile,
|
||||
SpreadAssignment,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VisitResult,
|
||||
addEmitHelpers,
|
||||
arrayFrom,
|
||||
Bundle,
|
||||
chainBundle,
|
||||
createExpressionForJsxElement,
|
||||
createExpressionForJsxFragment,
|
||||
createExpressionFromEntityName,
|
||||
createJsxFactoryExpression,
|
||||
Debug,
|
||||
emptyArray,
|
||||
Expression,
|
||||
filter,
|
||||
find,
|
||||
flatten,
|
||||
GeneratedIdentifierFlags,
|
||||
getEmitScriptTarget,
|
||||
getEntries,
|
||||
getJSXImplicitImportBase,
|
||||
@ -49,7 +21,9 @@ import {
|
||||
getLineAndCharacterOfPosition,
|
||||
getOriginalNode,
|
||||
getSemanticJsxChildren,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportSpecifier,
|
||||
insertStatementAfterCustomPrologue,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
@ -65,17 +39,43 @@ import {
|
||||
isSourceFile,
|
||||
isStringDoubleQuoted,
|
||||
isWhiteSpaceSingleLine,
|
||||
JsxAttribute,
|
||||
JsxAttributeValue,
|
||||
JsxChild,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningFragment,
|
||||
JsxOpeningLikeElement,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxText,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
Node,
|
||||
NodeFlags,
|
||||
PropertyAssignment,
|
||||
ScriptTarget,
|
||||
setParentRecursive,
|
||||
setTextRange,
|
||||
singleOrUndefined,
|
||||
SourceFile,
|
||||
spanMap,
|
||||
SpreadAssignment,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
utf16EncodeAsString,
|
||||
VariableDeclaration,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,44 +1,27 @@
|
||||
import {
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
AllDecorators,
|
||||
append,
|
||||
Bundle,
|
||||
canHaveDecorators,
|
||||
chainBundle,
|
||||
childIsDecorated,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
ConstructorDeclaration,
|
||||
Decorator,
|
||||
elideNodes,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EnumMember,
|
||||
Expression,
|
||||
GetAccessorDeclaration,
|
||||
Identifier,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
append,
|
||||
canHaveDecorators,
|
||||
chainBundle,
|
||||
childIsDecorated,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
elideNodes,
|
||||
filter,
|
||||
flatMap,
|
||||
GetAccessorDeclaration,
|
||||
getAllDecoratorsOfClass,
|
||||
getAllDecoratorsOfClassElement,
|
||||
getEmitFlags,
|
||||
@ -47,6 +30,7 @@ import {
|
||||
hasAccessorModifier,
|
||||
hasDecorators,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
isBindingName,
|
||||
isBlock,
|
||||
@ -65,8 +49,18 @@ import {
|
||||
isSimpleInlineableExpression,
|
||||
isStatic,
|
||||
map,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
moveRangePastModifiers,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeCheckFlags,
|
||||
NodeFlags,
|
||||
nodeOrChildIsDecorated,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
@ -74,9 +68,15 @@ import {
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
import {
|
||||
addRange,
|
||||
append,
|
||||
Bundle,
|
||||
chainBundle,
|
||||
createEmptyExports,
|
||||
createExternalHelpersImportDeclarationIfNeeded,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
@ -7,31 +12,15 @@ import {
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ModifierFlags,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ScriptTarget,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
addRange,
|
||||
append,
|
||||
chainBundle,
|
||||
createEmptyExports,
|
||||
createExternalHelpersImportDeclarationIfNeeded,
|
||||
getEmitFlags,
|
||||
getEmitModuleKind,
|
||||
getEmitScriptTarget,
|
||||
getExternalModuleNameLiteral,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
insertStatementsAfterCustomPrologue,
|
||||
isExportNamespaceAsDefaultDeclaration,
|
||||
isExternalModule,
|
||||
@ -41,12 +30,23 @@ import {
|
||||
isNamespaceExport,
|
||||
isSourceFile,
|
||||
isStatement,
|
||||
ModifierFlags,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ScriptTarget,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,71 +1,41 @@
|
||||
import {
|
||||
addEmitFlags,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
append,
|
||||
ArrowFunction,
|
||||
BinaryExpression,
|
||||
BindingElement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
chainBundle,
|
||||
ClassDeclaration,
|
||||
collectExternalModuleInfo,
|
||||
Debug,
|
||||
Declaration,
|
||||
DestructuringAssignment,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitHint,
|
||||
emptyArray,
|
||||
EndOfDeclarationMarker,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExternalModuleInfo,
|
||||
firstOrUndefined,
|
||||
flattenDestructuringAssignment,
|
||||
FlattenLevel,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
InitializedVariableDeclaration,
|
||||
MergeDeclarationMarker,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PartiallyEmittedExpression,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
ScriptTarget,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
addEmitFlags,
|
||||
addEmitHelper,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
append,
|
||||
chainBundle,
|
||||
collectExternalModuleInfo,
|
||||
emptyArray,
|
||||
firstOrUndefined,
|
||||
flattenDestructuringAssignment,
|
||||
getESModuleInterop,
|
||||
getEmitFlags,
|
||||
getEmitModuleKind,
|
||||
getEmitScriptTarget,
|
||||
getESModuleInterop,
|
||||
getExportNeedsImportStarHelper,
|
||||
getExternalHelpersModuleName,
|
||||
getExternalModuleNameLiteral,
|
||||
@ -79,7 +49,12 @@ import {
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasJsonModuleEmitEnabled,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
InitializedVariableDeclaration,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
@ -120,19 +95,44 @@ import {
|
||||
isStringLiteral,
|
||||
length,
|
||||
mapDefined,
|
||||
MergeDeclarationMarker,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModuleKind,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
outFile,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PartiallyEmittedExpression,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
reduceLeft,
|
||||
removeAllComments,
|
||||
ScriptTarget,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
ShorthandPropertyAssignment,
|
||||
singleOrMany,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
tryGetModuleNameFromFile,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -2,13 +2,13 @@ import {
|
||||
Bundle,
|
||||
Debug,
|
||||
EmitHint,
|
||||
isSourceFile,
|
||||
map,
|
||||
ModuleKind,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
isSourceFile,
|
||||
map,
|
||||
transformECMAScriptModule,
|
||||
transformModule,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import {
|
||||
addRange,
|
||||
append,
|
||||
BinaryExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
@ -7,7 +9,9 @@ import {
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
chainBundle,
|
||||
ClassDeclaration,
|
||||
collectExternalModuleInfo,
|
||||
Debug,
|
||||
Declaration,
|
||||
DefaultClause,
|
||||
@ -21,51 +25,15 @@ import {
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExternalModuleInfo,
|
||||
firstOrUndefined,
|
||||
flattenDestructuringAssignment,
|
||||
FlattenLevel,
|
||||
ForInStatement,
|
||||
forEach,
|
||||
ForInitializer,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
Identifier,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
LabeledStatement,
|
||||
MergeDeclarationMarker,
|
||||
MetaProperty,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
ParenthesizedExpression,
|
||||
PartiallyEmittedExpression,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PropertyAssignment,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
TryStatement,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
addRange,
|
||||
append,
|
||||
chainBundle,
|
||||
collectExternalModuleInfo,
|
||||
firstOrUndefined,
|
||||
flattenDestructuringAssignment,
|
||||
forEach,
|
||||
getEmitFlags,
|
||||
getExternalHelpersModuleName,
|
||||
getExternalModuleNameLiteral,
|
||||
@ -76,7 +44,11 @@ import {
|
||||
getStrictOptionValue,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportCall,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression,
|
||||
isAssignmentExpression,
|
||||
@ -114,20 +86,48 @@ import {
|
||||
isStatement,
|
||||
isStringLiteral,
|
||||
isVariableDeclarationList,
|
||||
LabeledStatement,
|
||||
map,
|
||||
MergeDeclarationMarker,
|
||||
MetaProperty,
|
||||
ModifierFlags,
|
||||
moveEmitHelpers,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ObjectLiteralElementLike,
|
||||
outFile,
|
||||
ParenthesizedExpression,
|
||||
PartiallyEmittedExpression,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PropertyAssignment,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
ShorthandPropertyAssignment,
|
||||
singleOrMany,
|
||||
some,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
tryGetModuleNameFromFile,
|
||||
TryStatement,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
VisitResult,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -2,8 +2,15 @@ import {
|
||||
CallExpression,
|
||||
Debug,
|
||||
Expression,
|
||||
factory,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
hasInvalidEscape,
|
||||
Identifier,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isNoSubstitutionTemplateLiteral,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
setTextRange,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
@ -12,16 +19,9 @@ import {
|
||||
TemplateMiddle,
|
||||
TemplateTail,
|
||||
TransformationContext,
|
||||
Visitor,
|
||||
factory,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
hasInvalidEscape,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isNoSubstitutionTemplateLiteral,
|
||||
setTextRange,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
Visitor,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,21 +1,36 @@
|
||||
import {
|
||||
__String,
|
||||
AccessorDeclaration,
|
||||
addEmitFlags,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
addSyntheticTrailingComment,
|
||||
AllDecorators,
|
||||
append,
|
||||
ArrowFunction,
|
||||
AssertionExpression,
|
||||
Block,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
childIsDecorated,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
concatenate,
|
||||
ConstructorDeclaration,
|
||||
createExpressionFromEntityName,
|
||||
createRange,
|
||||
createRuntimeTypeSerializer,
|
||||
createTokenRange,
|
||||
createUnparsedSourceFile,
|
||||
Debug,
|
||||
Declaration,
|
||||
Decorator,
|
||||
ElementAccessExpression,
|
||||
elideNodes,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EntityName,
|
||||
@ -26,80 +41,16 @@ import {
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionWithTypeArguments,
|
||||
FlattenLevel,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportSpecifier,
|
||||
ImportsNotUsedAsValues,
|
||||
InitializedVariableDeclaration,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
LeftHandSideExpression,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
NamedExportBindings,
|
||||
NamedExports,
|
||||
NamedImportBindings,
|
||||
NamespaceExport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeFlags,
|
||||
NonNullExpression,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
ParameterPropertyDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
SatisfiesExpression,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
UnderscoreEscapedMap,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
VisitResult,
|
||||
__String,
|
||||
addEmitFlags,
|
||||
addEmitHelpers,
|
||||
addRange,
|
||||
addSyntheticTrailingComment,
|
||||
append,
|
||||
childIsDecorated,
|
||||
classOrConstructorParameterIsDecorated,
|
||||
concatenate,
|
||||
createExpressionFromEntityName,
|
||||
createRange,
|
||||
createRuntimeTypeSerializer,
|
||||
createTokenRange,
|
||||
createUnparsedSourceFile,
|
||||
elideNodes,
|
||||
filter,
|
||||
findSuperStatementIndex,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flattenDestructuringAssignment,
|
||||
FlattenLevel,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
getAllDecoratorsOfClass,
|
||||
getAllDecoratorsOfClassElement,
|
||||
getEffectiveBaseTypeNode,
|
||||
@ -116,7 +67,15 @@ import {
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportsNotUsedAsValues,
|
||||
ImportSpecifier,
|
||||
InitializedVariableDeclaration,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
@ -160,16 +119,45 @@ import {
|
||||
isSimpleInlineableExpression,
|
||||
isSourceFile,
|
||||
isStatement,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
map,
|
||||
mapDefined,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
modifierToFlag,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
moveRangePastDecorators,
|
||||
moveRangePastModifiers,
|
||||
moveRangePos,
|
||||
NamedExportBindings,
|
||||
NamedExports,
|
||||
NamedImportBindings,
|
||||
NamespaceExport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeFlags,
|
||||
nodeIsMissing,
|
||||
NonNullExpression,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
parameterIsThisKeyword,
|
||||
ParameterPropertyDeclaration,
|
||||
ParenthesizedExpression,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
removeAllComments,
|
||||
SatisfiesExpression,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setCommentRange,
|
||||
setConstantValue,
|
||||
setEmitFlags,
|
||||
@ -183,13 +171,24 @@ import {
|
||||
setTextRangePos,
|
||||
setTextRangePosEnd,
|
||||
setTypeNode,
|
||||
ShorthandPropertyAssignment,
|
||||
shouldPreserveConstEnums,
|
||||
singleOrMany,
|
||||
skipOuterExpressions,
|
||||
skipPartiallyEmittedExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
SourceFile,
|
||||
startOnNewLine,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
TransformFlags,
|
||||
UnderscoreEscapedMap,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
@ -197,6 +196,7 @@ import {
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
VisitResult,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -11,35 +11,9 @@ import {
|
||||
Debug,
|
||||
EntityName,
|
||||
Expression,
|
||||
FunctionLikeDeclaration,
|
||||
Identifier,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
LiteralTypeNode,
|
||||
MethodDeclaration,
|
||||
ModuleBlock,
|
||||
Node,
|
||||
NumericLiteral,
|
||||
ParameterDeclaration,
|
||||
PrefixUnaryExpression,
|
||||
PropertyAccessEntityNameExpression,
|
||||
PropertyDeclaration,
|
||||
QualifiedName,
|
||||
ScriptTarget,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TypeNode,
|
||||
TypeOperatorNode,
|
||||
TypePredicateNode,
|
||||
TypeReferenceNode,
|
||||
TypeReferenceSerializationKind,
|
||||
UnionOrIntersectionTypeNode,
|
||||
VoidExpression,
|
||||
factory,
|
||||
findAncestor,
|
||||
FunctionLikeDeclaration,
|
||||
getAllAccessorDeclarations,
|
||||
getEffectiveReturnTypeNode,
|
||||
getEmitScriptTarget,
|
||||
@ -48,6 +22,7 @@ import {
|
||||
getRestParameterElementType,
|
||||
getSetAccessorTypeAnnotationNode,
|
||||
getStrictOptionValue,
|
||||
Identifier,
|
||||
isAsyncFunction,
|
||||
isBinaryExpression,
|
||||
isClassLike,
|
||||
@ -63,11 +38,36 @@ import {
|
||||
isStringLiteral,
|
||||
isTypeOfExpression,
|
||||
isVoidExpression,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
LiteralTypeNode,
|
||||
MethodDeclaration,
|
||||
ModuleBlock,
|
||||
Node,
|
||||
nodeIsPresent,
|
||||
NumericLiteral,
|
||||
ParameterDeclaration,
|
||||
parseNodeFactory,
|
||||
PrefixUnaryExpression,
|
||||
PropertyAccessEntityNameExpression,
|
||||
PropertyDeclaration,
|
||||
QualifiedName,
|
||||
ScriptTarget,
|
||||
setParent,
|
||||
setTextRange,
|
||||
SignatureDeclaration,
|
||||
skipTypeParentheses,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
TypeNode,
|
||||
TypeOperatorNode,
|
||||
TypePredicateNode,
|
||||
TypeReferenceNode,
|
||||
TypeReferenceSerializationKind,
|
||||
UnionOrIntersectionTypeNode,
|
||||
VoidExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
AllDecorators,
|
||||
append,
|
||||
BinaryOperator,
|
||||
BindingElement,
|
||||
Bundle,
|
||||
cast,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
@ -12,43 +14,17 @@ import {
|
||||
CompilerOptions,
|
||||
CompoundAssignmentOperator,
|
||||
CoreTransformationContext,
|
||||
createExternalHelpersImportDeclarationIfNeeded,
|
||||
createMultiMap,
|
||||
Decorator,
|
||||
EmitResolver,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
filter,
|
||||
FunctionDeclaration,
|
||||
FunctionLikeDeclaration,
|
||||
Identifier,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportSpecifier,
|
||||
InitializedPropertyDeclaration,
|
||||
InternalSymbolName,
|
||||
LogicalOperatorOrHigher,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
NamedImportBindings,
|
||||
NamespaceExport,
|
||||
Node,
|
||||
NodeArray,
|
||||
PrivateIdentifierAccessorDeclaration,
|
||||
PrivateIdentifierAutoAccessorPropertyDeclaration,
|
||||
PrivateIdentifierMethodDeclaration,
|
||||
PropertyDeclaration,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SuperCall,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
append,
|
||||
cast,
|
||||
createExternalHelpersImportDeclarationIfNeeded,
|
||||
createMultiMap,
|
||||
filter,
|
||||
getAllAccessorDeclarations,
|
||||
getDecorators,
|
||||
getFirstConstructorWithBody,
|
||||
@ -58,7 +34,13 @@ import {
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportSpecifier,
|
||||
InitializedPropertyDeclaration,
|
||||
InternalSymbolName,
|
||||
isAutoAccessorPropertyDeclaration,
|
||||
isBindingPattern,
|
||||
isClassStaticBlockDeclaration,
|
||||
@ -76,10 +58,28 @@ import {
|
||||
isStatic,
|
||||
isStringLiteralLike,
|
||||
isSuperCall,
|
||||
LogicalOperatorOrHigher,
|
||||
map,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
NamedImportBindings,
|
||||
NamespaceExport,
|
||||
Node,
|
||||
NodeArray,
|
||||
parameterIsThisKeyword,
|
||||
PrivateIdentifierAccessorDeclaration,
|
||||
PrivateIdentifierAutoAccessorPropertyDeclaration,
|
||||
PrivateIdentifierMethodDeclaration,
|
||||
PropertyDeclaration,
|
||||
skipParentheses,
|
||||
some,
|
||||
SourceFile,
|
||||
Statement,
|
||||
SuperCall,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import {
|
||||
Extension,
|
||||
ResolvedConfigFileName,
|
||||
combinePaths,
|
||||
Extension,
|
||||
fileExtensionIs,
|
||||
ResolvedConfigFileName,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,68 +1,21 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AffectedFileResult,
|
||||
BuildInfo,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CompilerOptionsValue,
|
||||
ConfigFileProgramReloadLevel,
|
||||
CreateProgram,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticCollection,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
EmitResult,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
ForegroundColorEscapeSequences,
|
||||
GetCanonicalFileName,
|
||||
ModuleResolutionCache,
|
||||
OutputFile,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PollingInterval,
|
||||
Program,
|
||||
ProgramBuildInfo,
|
||||
ProgramBundleEmitBuildInfo,
|
||||
ProgramHost,
|
||||
ProgramMultiFileEmitBuildInfo,
|
||||
ReadBuildProgramHost,
|
||||
ResolutionMode,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
SemanticDiagnosticsBuilderProgram,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
Status,
|
||||
System,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
UpToDateStatus,
|
||||
UpToDateStatusType,
|
||||
WatchFactory,
|
||||
WatchHost,
|
||||
WatchOptions,
|
||||
WatchStatusReporter,
|
||||
WatchType,
|
||||
WildcardDirectoryWatcher,
|
||||
WriteFileCallback,
|
||||
arrayToMap,
|
||||
assertType,
|
||||
BuilderProgram,
|
||||
BuildInfo,
|
||||
CancellationToken,
|
||||
canJsonReportNoInputFiles,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
clearMap,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
commonOptionsWithBuild,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CompilerOptionsValue,
|
||||
ConfigFileProgramReloadLevel,
|
||||
convertToRelativePath,
|
||||
copyProperties,
|
||||
createCompilerDiagnostic,
|
||||
@ -71,19 +24,35 @@ import {
|
||||
createDiagnosticReporter,
|
||||
createGetCanonicalFileName,
|
||||
createModuleResolutionCache,
|
||||
CreateProgram,
|
||||
createProgramHost,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
createWatchFactory,
|
||||
createWatchHost,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticCollection,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
emitFilesAndReportErrors,
|
||||
EmitResult,
|
||||
emitUsingBuildInfo,
|
||||
emptyArray,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
findIndex,
|
||||
flattenDiagnosticMessageText,
|
||||
forEach,
|
||||
ForegroundColorEscapeSequences,
|
||||
formatColorAndReset,
|
||||
getAllProjectOutputs,
|
||||
getBuildInfoFileVersionMap,
|
||||
GetCanonicalFileName,
|
||||
getConfigFileParsingDiagnostics,
|
||||
getDirectoryPath,
|
||||
getEntries,
|
||||
@ -110,27 +79,58 @@ import {
|
||||
map,
|
||||
maybeBind,
|
||||
missingFileModifiedTime,
|
||||
ModuleResolutionCache,
|
||||
mutateMap,
|
||||
mutateMapSkippingNewValues,
|
||||
noop,
|
||||
outFile,
|
||||
OutputFile,
|
||||
ParseConfigFileHost,
|
||||
parseConfigHostFromCompilerHostLike,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PollingInterval,
|
||||
Program,
|
||||
ProgramBuildInfo,
|
||||
ProgramBundleEmitBuildInfo,
|
||||
ProgramHost,
|
||||
ProgramMultiFileEmitBuildInfo,
|
||||
readBuilderProgram,
|
||||
ReadBuildProgramHost,
|
||||
ResolutionMode,
|
||||
resolveConfigFileProjectName,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
resolveModuleName,
|
||||
resolvePath,
|
||||
resolveProjectReferencePath,
|
||||
resolveTypeReferenceDirective,
|
||||
returnUndefined,
|
||||
SemanticDiagnosticsBuilderProgram,
|
||||
setGetSourceFileAsHashVersioned,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
some,
|
||||
SourceFile,
|
||||
Status,
|
||||
sys,
|
||||
System,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
unorderedRemoveItem,
|
||||
updateErrorForNoInputFiles,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
UpToDateStatus,
|
||||
UpToDateStatusType,
|
||||
version,
|
||||
WatchFactory,
|
||||
WatchHost,
|
||||
WatchOptions,
|
||||
WatchStatusReporter,
|
||||
WatchType,
|
||||
WildcardDirectoryWatcher,
|
||||
writeFile,
|
||||
WriteFileCallback,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,21 +1,28 @@
|
||||
import {
|
||||
__String,
|
||||
AccessExpression,
|
||||
AccessorDeclaration,
|
||||
addRange,
|
||||
affectsDeclarationPathOptionDeclarations,
|
||||
affectsEmitOptionDeclarations,
|
||||
AllAccessorDeclarations,
|
||||
AmbientModuleDeclaration,
|
||||
AnyImportOrBareOrAccessedRequire,
|
||||
AnyImportOrReExport,
|
||||
AnyImportSyntax,
|
||||
AnyValidImportOrReExport,
|
||||
arrayFrom,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertionExpression,
|
||||
assertType,
|
||||
AssignmentDeclarationKind,
|
||||
AssignmentExpression,
|
||||
AssignmentOperatorToken,
|
||||
BinaryExpression,
|
||||
binarySearch,
|
||||
BindableObjectDefinePropertyCall,
|
||||
BindableStaticAccessExpression,
|
||||
BindableStaticElementAccessExpression,
|
||||
@ -27,27 +34,46 @@ import {
|
||||
BundleFileTextLike,
|
||||
CallExpression,
|
||||
CallLikeExpression,
|
||||
canHaveDecorators,
|
||||
canHaveIllegalDecorators,
|
||||
canHaveModifiers,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
changeAnyExtension,
|
||||
CharacterCodes,
|
||||
CheckFlags,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
combinePaths,
|
||||
CommaListExpression,
|
||||
CommandLineOption,
|
||||
CommentDirective,
|
||||
CommentDirectiveType,
|
||||
CommentDirectivesMap,
|
||||
CommentDirectiveType,
|
||||
CommentRange,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
ComputedPropertyName,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineOfPosition,
|
||||
computeLineStarts,
|
||||
concatenate,
|
||||
ConditionalExpression,
|
||||
ConstructorDeclaration,
|
||||
contains,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
createModeAwareCache,
|
||||
createMultiMap,
|
||||
createScanner,
|
||||
createTextSpan,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
@ -61,9 +87,10 @@ import {
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticRelatedInformation,
|
||||
Diagnostics,
|
||||
DiagnosticWithDetachedLocation,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
directorySeparator,
|
||||
DoStatement,
|
||||
DynamicNamedBinaryExpression,
|
||||
DynamicNamedDeclaration,
|
||||
@ -72,12 +99,19 @@ import {
|
||||
EmitHost,
|
||||
EmitResolver,
|
||||
EmitTextWriter,
|
||||
emptyArray,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
EntityName,
|
||||
EntityNameExpression,
|
||||
EntityNameOrEntityNameExpression,
|
||||
EnumDeclaration,
|
||||
EqualityComparer,
|
||||
equalOwnProperties,
|
||||
EqualsToken,
|
||||
equateValues,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
@ -86,234 +120,12 @@ import {
|
||||
ExpressionWithTypeArguments,
|
||||
Extension,
|
||||
ExternalModuleReference,
|
||||
FileExtensionInfo,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
GetCanonicalFileName,
|
||||
HasExpressionInitializer,
|
||||
HasInitializer,
|
||||
HasJSDoc,
|
||||
HasModifiers,
|
||||
HasType,
|
||||
HasTypeArguments,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IdentifierTypePredicate,
|
||||
IfStatement,
|
||||
ImportCall,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportMetaProperty,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
IndexInfo,
|
||||
InitializedVariableDeclaration,
|
||||
InterfaceDeclaration,
|
||||
JSDoc,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocMemberName,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocTypedefTag,
|
||||
JsonSourceFile,
|
||||
JsxChild,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningLikeElement,
|
||||
JsxSelfClosingElement,
|
||||
JsxTagNameExpression,
|
||||
KeywordSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
LateVisibilityPaintedStatement,
|
||||
LiteralImportTypeNode,
|
||||
LiteralLikeElementAccessExpression,
|
||||
LiteralLikeNode,
|
||||
LogicalOrCoalescingAssignmentOperator,
|
||||
MapLike,
|
||||
MemberName,
|
||||
MethodDeclaration,
|
||||
ModeAwareCache,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleDetectionKind,
|
||||
ModuleKind,
|
||||
ModuleResolutionKind,
|
||||
MultiMap,
|
||||
NamedDeclaration,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedImportsOrExports,
|
||||
NamespaceExport,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NewLineKind,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NonNullExpression,
|
||||
NumericLiteral,
|
||||
ObjectFlags,
|
||||
ObjectFlagsType,
|
||||
ObjectLiteralElement,
|
||||
ObjectLiteralExpression,
|
||||
ObjectLiteralExpressionBase,
|
||||
ObjectTypeDeclaration,
|
||||
OuterExpressionKinds,
|
||||
PackageId,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
PartiallyEmittedExpression,
|
||||
Path,
|
||||
Pattern,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrintHandlers,
|
||||
PrinterOptions,
|
||||
PrivateIdentifier,
|
||||
ProjectReference,
|
||||
PrologueDirective,
|
||||
PropertyAccessEntityNameExpression,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
PropertyNameLiteral,
|
||||
PseudoBigInt,
|
||||
QualifiedName,
|
||||
ReadonlyCollection,
|
||||
ReadonlyTextRange,
|
||||
RequireOrImportCall,
|
||||
RequireVariableStatement,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
Signature,
|
||||
SignatureDeclaration,
|
||||
SignatureFlags,
|
||||
SignatureKind,
|
||||
SortedArray,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
SourceFileMayBeEmittedHost,
|
||||
SourceMapSource,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
SuperCall,
|
||||
SuperExpression,
|
||||
SuperProperty,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SymbolTable,
|
||||
SyntaxKind,
|
||||
SyntaxList,
|
||||
TaggedTemplateExpression,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralLikeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateSpan,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
ThisTypePredicate,
|
||||
Token,
|
||||
TokenFlags,
|
||||
TransformFlags,
|
||||
TransientSymbol,
|
||||
TriviaSyntaxKind,
|
||||
TryStatement,
|
||||
TsConfigSourceFile,
|
||||
TupleTypeNode,
|
||||
Type,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeChecker,
|
||||
TypeElement,
|
||||
TypeFlags,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeNodeSyntaxKind,
|
||||
TypeParameter,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicate,
|
||||
TypePredicateKind,
|
||||
TypeReferenceNode,
|
||||
UnionOrIntersectionTypeNode,
|
||||
ValidImportTypeNode,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationInitializedTo,
|
||||
VariableDeclarationList,
|
||||
VariableLikeDeclaration,
|
||||
VariableStatement,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
YieldExpression,
|
||||
__String,
|
||||
addRange,
|
||||
affectsDeclarationPathOptionDeclarations,
|
||||
affectsEmitOptionDeclarations,
|
||||
arrayFrom,
|
||||
assertType,
|
||||
binarySearch,
|
||||
canHaveDecorators,
|
||||
canHaveIllegalDecorators,
|
||||
canHaveModifiers,
|
||||
changeAnyExtension,
|
||||
combinePaths,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineOfPosition,
|
||||
computeLineStarts,
|
||||
concatenate,
|
||||
contains,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
createModeAwareCache,
|
||||
createMultiMap,
|
||||
createScanner,
|
||||
createTextSpan,
|
||||
createTextSpanFromBounds,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
equalOwnProperties,
|
||||
equateValues,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
factory,
|
||||
FileExtensionInfo,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
filter,
|
||||
find,
|
||||
findAncestor,
|
||||
@ -329,7 +141,17 @@ import {
|
||||
forEachAncestorDirectory,
|
||||
forEachChild,
|
||||
forEachChildRecursively,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
getBaseFileName,
|
||||
GetCanonicalFileName,
|
||||
getCombinedModifierFlags,
|
||||
getCombinedNodeFlags,
|
||||
getDirectoryPath,
|
||||
@ -352,8 +174,8 @@ import {
|
||||
getJSDocTypeTag,
|
||||
getLeadingCommentRanges,
|
||||
getLineAndCharacterOfPosition,
|
||||
getLineStarts,
|
||||
getLinesBetweenPositions,
|
||||
getLineStarts,
|
||||
getNameOfDeclaration,
|
||||
getNormalizedAbsolutePath,
|
||||
getNormalizedPathComponents,
|
||||
@ -368,15 +190,35 @@ import {
|
||||
getStringComparer,
|
||||
getSymbolId,
|
||||
getTrailingCommentRanges,
|
||||
HasExpressionInitializer,
|
||||
hasExtension,
|
||||
hasInitializer,
|
||||
HasInitializer,
|
||||
HasJSDoc,
|
||||
hasJSDocNodes,
|
||||
HasModifiers,
|
||||
hasProperty,
|
||||
idText,
|
||||
HasType,
|
||||
HasTypeArguments,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IdentifierTypePredicate,
|
||||
identity,
|
||||
idText,
|
||||
IfStatement,
|
||||
ignoredPaths,
|
||||
ImportCall,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportMetaProperty,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
IndexInfo,
|
||||
indexOfAnyCharCode,
|
||||
InitializedVariableDeclaration,
|
||||
insertSorted,
|
||||
InterfaceDeclaration,
|
||||
isAccessor,
|
||||
isAnyDirectorySeparator,
|
||||
isArray,
|
||||
@ -480,41 +322,199 @@ import {
|
||||
isVoidExpression,
|
||||
isWhiteSpaceLike,
|
||||
isWhiteSpaceSingleLine,
|
||||
JSDoc,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocMemberName,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocTypedefTag,
|
||||
JsonSourceFile,
|
||||
JsxChild,
|
||||
JsxElement,
|
||||
JsxEmit,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningLikeElement,
|
||||
JsxSelfClosingElement,
|
||||
JsxTagNameExpression,
|
||||
KeywordSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
LateVisibilityPaintedStatement,
|
||||
length,
|
||||
LiteralImportTypeNode,
|
||||
LiteralLikeElementAccessExpression,
|
||||
LiteralLikeNode,
|
||||
LogicalOrCoalescingAssignmentOperator,
|
||||
map,
|
||||
mapDefined,
|
||||
MapLike,
|
||||
MemberName,
|
||||
MethodDeclaration,
|
||||
ModeAwareCache,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleDetectionKind,
|
||||
ModuleKind,
|
||||
ModuleResolutionKind,
|
||||
moduleResolutionOptionDeclarations,
|
||||
MultiMap,
|
||||
NamedDeclaration,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedImportsOrExports,
|
||||
NamespaceExport,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NewLineKind,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeModulesPathPart,
|
||||
NonNullExpression,
|
||||
noop,
|
||||
normalizePath,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
NumericLiteral,
|
||||
ObjectFlags,
|
||||
ObjectFlagsType,
|
||||
ObjectLiteralElement,
|
||||
ObjectLiteralExpression,
|
||||
ObjectLiteralExpressionBase,
|
||||
ObjectTypeDeclaration,
|
||||
optionsAffectingProgramStructure,
|
||||
or,
|
||||
OuterExpressionKinds,
|
||||
PackageId,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
parseConfigFileTextToJson,
|
||||
PartiallyEmittedExpression,
|
||||
Path,
|
||||
pathIsRelative,
|
||||
Pattern,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrinterOptions,
|
||||
PrintHandlers,
|
||||
PrivateIdentifier,
|
||||
ProjectReference,
|
||||
PrologueDirective,
|
||||
PropertyAccessEntityNameExpression,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
PropertyNameLiteral,
|
||||
PseudoBigInt,
|
||||
QualifiedName,
|
||||
ReadonlyCollection,
|
||||
ReadonlyTextRange,
|
||||
removeTrailingDirectorySeparator,
|
||||
RequireOrImportCall,
|
||||
RequireVariableStatement,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
semanticDiagnosticsOptionDeclarations,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
Signature,
|
||||
SignatureDeclaration,
|
||||
SignatureFlags,
|
||||
SignatureKind,
|
||||
singleElementArray,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
sort,
|
||||
SortedArray,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
SourceFileMayBeEmittedHost,
|
||||
SourceMapSource,
|
||||
startsWith,
|
||||
startsWithUseStrict,
|
||||
Statement,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
stringToToken,
|
||||
SuperCall,
|
||||
SuperExpression,
|
||||
SuperProperty,
|
||||
SwitchStatement,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SymbolTable,
|
||||
SyntaxKind,
|
||||
SyntaxList,
|
||||
sys,
|
||||
toPath,
|
||||
TaggedTemplateExpression,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralLikeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateSpan,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
ThisTypePredicate,
|
||||
Token,
|
||||
TokenFlags,
|
||||
tokenToString,
|
||||
toPath,
|
||||
tracing,
|
||||
TransformFlags,
|
||||
TransientSymbol,
|
||||
trimString,
|
||||
trimStringStart,
|
||||
TriviaSyntaxKind,
|
||||
tryCast,
|
||||
tryRemovePrefix,
|
||||
TryStatement,
|
||||
TsConfigSourceFile,
|
||||
TupleTypeNode,
|
||||
Type,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeChecker,
|
||||
TypeElement,
|
||||
TypeFlags,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeNodeSyntaxKind,
|
||||
TypeParameter,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicate,
|
||||
TypePredicateKind,
|
||||
TypeReferenceNode,
|
||||
unescapeLeadingUnderscores,
|
||||
UnionOrIntersectionTypeNode,
|
||||
ValidImportTypeNode,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationInitializedTo,
|
||||
VariableDeclarationList,
|
||||
VariableLikeDeclaration,
|
||||
VariableStatement,
|
||||
version,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
YieldExpression,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import {
|
||||
__String,
|
||||
AccessExpression,
|
||||
AccessorDeclaration,
|
||||
ArrayBindingElement,
|
||||
@ -22,15 +23,20 @@ import {
|
||||
CallChain,
|
||||
CallExpression,
|
||||
CallLikeExpression,
|
||||
canHaveIllegalTypeParameters,
|
||||
CaseOrDefaultClause,
|
||||
CharacterCodes,
|
||||
ClassElement,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
combinePaths,
|
||||
compareDiagnostics,
|
||||
CompilerOptions,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
contains,
|
||||
createCompilerDiagnostic,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
@ -41,14 +47,20 @@ import {
|
||||
Diagnostics,
|
||||
ElementAccessChain,
|
||||
ElementAccessExpression,
|
||||
emptyArray,
|
||||
EntityName,
|
||||
entityNameToString,
|
||||
EnumDeclaration,
|
||||
every,
|
||||
ExportAssignment,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
FileReference,
|
||||
ForInOrOfStatement,
|
||||
filter,
|
||||
find,
|
||||
flatMap,
|
||||
ForInitializer,
|
||||
ForInOrOfStatement,
|
||||
FunctionBody,
|
||||
FunctionLikeDeclaration,
|
||||
FunctionTypeNode,
|
||||
@ -56,129 +68,6 @@ import {
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedPrivateIdentifier,
|
||||
GetAccessorDeclaration,
|
||||
HasDecorators,
|
||||
HasExpressionInitializer,
|
||||
HasInitializer,
|
||||
HasJSDoc,
|
||||
HasModifiers,
|
||||
HasType,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportEqualsDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
IterationStatement,
|
||||
JSDocAugmentsTag,
|
||||
JSDocClassTag,
|
||||
JSDocComment,
|
||||
JSDocContainer,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocNamespaceBody,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JsxAttributeLike,
|
||||
JsxChild,
|
||||
JsxExpression,
|
||||
JsxOpeningLikeElement,
|
||||
JsxTagNameExpression,
|
||||
LabeledStatement,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LiteralToken,
|
||||
MemberName,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleReference,
|
||||
NamedDeclaration,
|
||||
NamedExportBindings,
|
||||
NamedImportBindings,
|
||||
NamespaceBody,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NonNullChain,
|
||||
NotEmittedStatement,
|
||||
ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
ObjectLiteralElement,
|
||||
ObjectLiteralElementLike,
|
||||
OptionalChain,
|
||||
OptionalChainRoot,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
PartiallyEmittedExpression,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateClassElementDeclaration,
|
||||
PrivateIdentifier,
|
||||
PrivateIdentifierPropertyAccessExpression,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
Push,
|
||||
QualifiedName,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
SignatureDeclaration,
|
||||
SortedReadonlyArray,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralToken,
|
||||
TemplateMiddle,
|
||||
TemplateTail,
|
||||
TextChangeRange,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TypeElement,
|
||||
TypeNode,
|
||||
TypeOnlyAliasDeclaration,
|
||||
TypeParameterDeclaration,
|
||||
TypeReferenceType,
|
||||
UnaryExpression,
|
||||
UnparsedNode,
|
||||
UnparsedTextLike,
|
||||
VariableDeclaration,
|
||||
__String,
|
||||
canHaveIllegalTypeParameters,
|
||||
combinePaths,
|
||||
compareDiagnostics,
|
||||
contains,
|
||||
createCompilerDiagnostic,
|
||||
emptyArray,
|
||||
entityNameToString,
|
||||
every,
|
||||
filter,
|
||||
find,
|
||||
flatMap,
|
||||
getAssignmentDeclarationKind,
|
||||
getDirectoryPath,
|
||||
getEffectiveModifierFlags,
|
||||
@ -189,8 +78,20 @@ import {
|
||||
getJSDocTypeParameterDeclarations,
|
||||
hasAccessorModifier,
|
||||
hasDecorators,
|
||||
HasDecorators,
|
||||
HasExpressionInitializer,
|
||||
HasInitializer,
|
||||
HasJSDoc,
|
||||
HasModifiers,
|
||||
hasProperty,
|
||||
hasSyntacticModifier,
|
||||
HasType,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportEqualsDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
ImportSpecifier,
|
||||
ImportTypeNode,
|
||||
isAccessExpression,
|
||||
isAmbientModule,
|
||||
isAnyImportOrReExport,
|
||||
@ -254,15 +155,114 @@ import {
|
||||
isVariableDeclarationList,
|
||||
isVariableStatement,
|
||||
isWhiteSpaceLike,
|
||||
IterationStatement,
|
||||
JSDocAugmentsTag,
|
||||
JSDocClassTag,
|
||||
JSDocComment,
|
||||
JSDocContainer,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocNamespaceBody,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSignature,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeTag,
|
||||
JsxAttributeLike,
|
||||
JsxChild,
|
||||
JsxExpression,
|
||||
JsxOpeningLikeElement,
|
||||
JsxTagNameExpression,
|
||||
LabeledStatement,
|
||||
lastOrUndefined,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LiteralToken,
|
||||
MemberName,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
modifierToFlag,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleReference,
|
||||
NamedDeclaration,
|
||||
NamedExportBindings,
|
||||
NamedImportBindings,
|
||||
NamespaceBody,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NonNullChain,
|
||||
normalizePath,
|
||||
NotEmittedStatement,
|
||||
ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
ObjectLiteralElement,
|
||||
ObjectLiteralElementLike,
|
||||
OptionalChain,
|
||||
OptionalChainRoot,
|
||||
OuterExpressionKinds,
|
||||
ParameterDeclaration,
|
||||
PartiallyEmittedExpression,
|
||||
pathIsRelative,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateClassElementDeclaration,
|
||||
PrivateIdentifier,
|
||||
PrivateIdentifierPropertyAccessExpression,
|
||||
PropertyAccessChain,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
Push,
|
||||
QualifiedName,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
setLocalizedDiagnosticMessages,
|
||||
setUILocale,
|
||||
SignatureDeclaration,
|
||||
skipOuterExpressions,
|
||||
some,
|
||||
sortAndDeduplicate,
|
||||
SortedReadonlyArray,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
TemplateLiteral,
|
||||
TemplateLiteralToken,
|
||||
TemplateMiddle,
|
||||
TemplateTail,
|
||||
TextChangeRange,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TypeElement,
|
||||
TypeNode,
|
||||
TypeOnlyAliasDeclaration,
|
||||
TypeParameterDeclaration,
|
||||
TypeReferenceType,
|
||||
UnaryExpression,
|
||||
UnparsedNode,
|
||||
UnparsedTextLike,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export function isExternalModuleNameRelative(moduleName: string): boolean {
|
||||
|
||||
@ -3,23 +3,11 @@ import {
|
||||
Debug,
|
||||
EmitFlags,
|
||||
Expression,
|
||||
FunctionBody,
|
||||
Identifier,
|
||||
LexicalEnvironmentFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeVisitor,
|
||||
NodesVisitor,
|
||||
ParameterDeclaration,
|
||||
ScriptTarget,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VisitEachChildNodes,
|
||||
Visitor,
|
||||
factory,
|
||||
FunctionBody,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
Identifier,
|
||||
isArray,
|
||||
isArrayBindingElement,
|
||||
isAssertClause,
|
||||
@ -96,11 +84,23 @@ import {
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
isVariableDeclarationList,
|
||||
LexicalEnvironmentFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodesVisitor,
|
||||
NodeVisitor,
|
||||
ParameterDeclaration,
|
||||
ScriptTarget,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
singleOrUndefined,
|
||||
some,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VisitEachChildNodes,
|
||||
Visitor,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,10 +1,24 @@
|
||||
import {
|
||||
addRange,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
chainDiagnosticMessages,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
contains,
|
||||
convertToRelativePath,
|
||||
copyProperties,
|
||||
countWhere,
|
||||
createCompilerDiagnostic,
|
||||
createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
createGetCanonicalFileName,
|
||||
createGetSourceFile,
|
||||
createIncrementalCompilerHost,
|
||||
createIncrementalProgram,
|
||||
CreateProgram,
|
||||
createWriteFileMeasuringIO,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
@ -16,62 +30,26 @@ import {
|
||||
DirectoryStructureHost,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
EmitResult,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
externalHelpersModuleNameText,
|
||||
FileExtensionInfo,
|
||||
fileExtensionIs,
|
||||
FileIncludeKind,
|
||||
FileIncludeReason,
|
||||
FileWatcher,
|
||||
ForegroundColorEscapeSequences,
|
||||
FormatDiagnosticsHost,
|
||||
HasCurrentDirectory,
|
||||
ModuleKind,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ReportEmitErrorSummary,
|
||||
ReportFileInError,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
System,
|
||||
WatchCompilerHost,
|
||||
WatchCompilerHostOfConfigFile,
|
||||
WatchCompilerHostOfFilesAndCompilerOptions,
|
||||
WatchFactory,
|
||||
WatchFactoryHost,
|
||||
WatchHost,
|
||||
WatchLogLevel,
|
||||
WatchOptions,
|
||||
WatchStatusReporter,
|
||||
WriteFileCallback,
|
||||
addRange,
|
||||
chainDiagnosticMessages,
|
||||
combinePaths,
|
||||
contains,
|
||||
convertToRelativePath,
|
||||
copyProperties,
|
||||
countWhere,
|
||||
createCompilerDiagnostic,
|
||||
createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
createGetCanonicalFileName,
|
||||
createGetSourceFile,
|
||||
createIncrementalCompilerHost,
|
||||
createIncrementalProgram,
|
||||
createWriteFileMeasuringIO,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
externalHelpersModuleNameText,
|
||||
fileExtensionIs,
|
||||
filter,
|
||||
find,
|
||||
flattenDiagnosticMessageText,
|
||||
forEach,
|
||||
forEachEntry,
|
||||
ForegroundColorEscapeSequences,
|
||||
formatColorAndReset,
|
||||
formatDiagnostic,
|
||||
FormatDiagnosticsHost,
|
||||
formatDiagnosticsWithColorAndContext,
|
||||
generateDjb2Hash,
|
||||
getDefaultLibFileName,
|
||||
@ -86,25 +64,47 @@ import {
|
||||
getRegexFromPattern,
|
||||
getRelativePathFromDirectory,
|
||||
getWatchFactory,
|
||||
HasCurrentDirectory,
|
||||
isExternalOrCommonJsModule,
|
||||
isLineBreak,
|
||||
isReferenceFileLocation,
|
||||
isReferencedFile,
|
||||
isReferenceFileLocation,
|
||||
isString,
|
||||
last,
|
||||
maybeBind,
|
||||
memoize,
|
||||
ModuleKind,
|
||||
noop,
|
||||
normalizePath,
|
||||
outFile,
|
||||
packageIdToString,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
pathIsAbsolute,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ReportEmitErrorSummary,
|
||||
ReportFileInError,
|
||||
sortAndDeduplicateDiagnostics,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
sourceMapCommentRegExp,
|
||||
sourceMapCommentRegExpDontCareLineStart,
|
||||
sys,
|
||||
System,
|
||||
targetOptionDeclaration,
|
||||
WatchCompilerHost,
|
||||
WatchCompilerHostOfConfigFile,
|
||||
WatchCompilerHostOfFilesAndCompilerOptions,
|
||||
WatchFactory,
|
||||
WatchFactoryHost,
|
||||
WatchHost,
|
||||
WatchLogLevel,
|
||||
WatchOptions,
|
||||
WatchStatusReporter,
|
||||
whitespaceOrMapCommentRegExp,
|
||||
WriteFileCallback,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
const sysFormatDiagnosticsHost: FormatDiagnosticsHost | undefined = sys ? {
|
||||
|
||||
@ -1,12 +1,31 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
BuildInfo,
|
||||
BuilderProgram,
|
||||
BuildInfo,
|
||||
canJsonReportNoInputFiles,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
changesAffectModuleResolution,
|
||||
cleanExtendedConfigCache,
|
||||
clearMap,
|
||||
clearSharedExtendedConfigFileWatcher,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
ConfigFileDiagnosticsReporter,
|
||||
ConfigFileProgramReloadLevel,
|
||||
createBuilderProgramUsingProgramBuildInfo,
|
||||
createCachedDirectoryStructureHost,
|
||||
createCompilerDiagnostic,
|
||||
createCompilerHostFromProgramHost,
|
||||
createCompilerHostWorker,
|
||||
createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
createGetCanonicalFileName,
|
||||
createResolutionCache,
|
||||
CreateSourceFileOptions,
|
||||
createWatchCompilerHostOfConfigFile,
|
||||
createWatchCompilerHostOfFilesAndCompilerOptions,
|
||||
createWatchFactory,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
@ -21,48 +40,6 @@ import {
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
HasInvalidatedResolutions,
|
||||
MapLike,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionInfo,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PollingInterval,
|
||||
ProjectReference,
|
||||
ResolutionCacheHost,
|
||||
ResolutionMode,
|
||||
ResolvedModule,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ScriptTarget,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
System,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
WatchDirectoryFlags,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
WatchTypeRegistry,
|
||||
WildcardDirectoryWatcher,
|
||||
canJsonReportNoInputFiles,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
changesAffectModuleResolution,
|
||||
cleanExtendedConfigCache,
|
||||
clearMap,
|
||||
clearSharedExtendedConfigFileWatcher,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
createBuilderProgramUsingProgramBuildInfo,
|
||||
createCachedDirectoryStructureHost,
|
||||
createCompilerDiagnostic,
|
||||
createCompilerHostFromProgramHost,
|
||||
createCompilerHostWorker,
|
||||
createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
createGetCanonicalFileName,
|
||||
createResolutionCache,
|
||||
createWatchCompilerHostOfConfigFile,
|
||||
createWatchCompilerHostOfFilesAndCompilerOptions,
|
||||
createWatchFactory,
|
||||
getBuildInfo,
|
||||
getConfigFileParsingDiagnostics,
|
||||
getDirectoryPath,
|
||||
@ -72,24 +49,47 @@ import {
|
||||
getNormalizedAbsolutePath,
|
||||
getParsedCommandLineOfConfigFile,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
HasInvalidatedResolutions,
|
||||
isArray,
|
||||
isIgnoredFileFromWildCardWatching,
|
||||
isProgramUptoDate,
|
||||
MapLike,
|
||||
maybeBind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionInfo,
|
||||
noop,
|
||||
noopFileWatcher,
|
||||
parseConfigHostFromCompilerHostLike,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
perfLogger,
|
||||
PollingInterval,
|
||||
ProjectReference,
|
||||
ResolutionCacheHost,
|
||||
ResolutionMode,
|
||||
ResolvedModule,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
returnFalse,
|
||||
returnTrue,
|
||||
ScriptTarget,
|
||||
setGetSourceFileAsHashVersioned,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
sys,
|
||||
System,
|
||||
toPath,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
updateErrorForNoInputFiles,
|
||||
updateMissingFilePathsWatch,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
version,
|
||||
WatchDirectoryFlags,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
WatchTypeRegistry,
|
||||
WildcardDirectoryWatcher,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface ReadBuildProgramHost {
|
||||
|
||||
@ -1,33 +1,25 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
arrayToMap,
|
||||
binarySearch,
|
||||
BuilderProgram,
|
||||
closeFileWatcher,
|
||||
compareStringsCaseSensitive,
|
||||
CompilerOptions,
|
||||
createGetCanonicalFileName,
|
||||
Debug,
|
||||
DirectoryWatcherCallback,
|
||||
emptyArray,
|
||||
emptyFileSystemEntries,
|
||||
ensureTrailingDirectorySeparator,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
FileExtensionInfo,
|
||||
fileExtensionIsOneOf,
|
||||
FileSystemEntries,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
Path,
|
||||
PollingInterval,
|
||||
Program,
|
||||
SortedArray,
|
||||
SortedReadonlyArray,
|
||||
WatchDirectoryFlags,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
arrayToMap,
|
||||
binarySearch,
|
||||
closeFileWatcher,
|
||||
compareStringsCaseSensitive,
|
||||
createGetCanonicalFileName,
|
||||
emptyArray,
|
||||
emptyFileSystemEntries,
|
||||
ensureTrailingDirectorySeparator,
|
||||
fileExtensionIsOneOf,
|
||||
find,
|
||||
getBaseFileName,
|
||||
getDirectoryPath,
|
||||
@ -40,19 +32,27 @@ import {
|
||||
isExcludedFile,
|
||||
isSupportedSourceFileName,
|
||||
map,
|
||||
matchFiles,
|
||||
matchesExclude,
|
||||
matchFiles,
|
||||
mutateMap,
|
||||
noop,
|
||||
normalizePath,
|
||||
outFile,
|
||||
Path,
|
||||
PollingInterval,
|
||||
Program,
|
||||
removeFileExtension,
|
||||
removeIgnoredPath,
|
||||
returnNoopFileWatcher,
|
||||
returnTrue,
|
||||
setSysLog,
|
||||
SortedArray,
|
||||
SortedReadonlyArray,
|
||||
supportedJSExtensionsFlat,
|
||||
timestamp,
|
||||
WatchDirectoryFlags,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -21,11 +21,13 @@ import {
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionWithTypeArguments,
|
||||
factory,
|
||||
GeneratedIdentifierFlags,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
IndexSignatureDeclaration,
|
||||
isNodeKind,
|
||||
JSDocParameterTag,
|
||||
JSDocTypeExpression,
|
||||
MethodSignature,
|
||||
@ -33,11 +35,12 @@ import {
|
||||
Mutable,
|
||||
NamedExportBindings,
|
||||
NamedImportBindings,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
NumericLiteral,
|
||||
ParameterDeclaration,
|
||||
parseBaseNodeFactory,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrimaryExpression,
|
||||
@ -45,6 +48,9 @@ import {
|
||||
PropertySignature,
|
||||
PseudoBigInt,
|
||||
QuestionToken,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
@ -57,12 +63,6 @@ import {
|
||||
TypePredicateNode,
|
||||
VariableDeclaration,
|
||||
YieldExpression,
|
||||
factory,
|
||||
isNodeKind,
|
||||
parseBaseNodeFactory,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
} from "../_namespaces/ts";
|
||||
import { deprecate } from "../deprecate";
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
import {
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
ConstructorTypeNode,
|
||||
factory,
|
||||
Modifier,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
ParameterDeclaration,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads for createConstructorTypeNode/updateConstructorTypeNode that do not accept 'modifiers'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {
|
||||
isMemberName,
|
||||
MemberName,
|
||||
Node,
|
||||
isMemberName,
|
||||
} from "../_namespaces/ts";
|
||||
import { deprecate } from "../deprecate";
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import {
|
||||
EntityName,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
NodeFactory,
|
||||
TypeNode,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
EntityName,
|
||||
factory,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
isArray,
|
||||
isEntityName,
|
||||
isImportTypeAssertionContainer,
|
||||
NodeFactory,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads to createImportTypeNode/updateImportTypeNode that do not accept `assertions`
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import {
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
Identifier,
|
||||
isArray,
|
||||
Modifier,
|
||||
NodeFactory,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
isArray,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads to createTypeParameter/updateTypeParameter that does not accept `modifiers`
|
||||
|
||||
@ -1,22 +1,27 @@
|
||||
import {
|
||||
addNodeFactoryPatcher,
|
||||
AssertClause,
|
||||
AsteriskToken,
|
||||
BindingName,
|
||||
Block,
|
||||
buildOverload,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassStaticBlockDeclaration,
|
||||
concatenate,
|
||||
ConstructorDeclaration,
|
||||
Decorator,
|
||||
DeprecationOptions,
|
||||
DotDotDotToken,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
every,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
factory,
|
||||
FunctionDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
HeritageClause,
|
||||
@ -26,30 +31,6 @@ import {
|
||||
ImportEqualsDeclaration,
|
||||
IndexSignatureDeclaration,
|
||||
InterfaceDeclaration,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierLike,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleName,
|
||||
ModuleReference,
|
||||
NamedExportBindings,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
QuestionToken,
|
||||
SetAccessorDeclaration,
|
||||
TypeAliasDeclaration,
|
||||
TypeElement,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
concatenate,
|
||||
every,
|
||||
factory,
|
||||
isArray,
|
||||
isAssertClause,
|
||||
isAsteriskToken,
|
||||
@ -74,7 +55,26 @@ import {
|
||||
isTypeElement,
|
||||
isTypeNode,
|
||||
isTypeParameterDeclaration,
|
||||
MethodDeclaration,
|
||||
Modifier,
|
||||
ModifierLike,
|
||||
ModuleBody,
|
||||
ModuleDeclaration,
|
||||
ModuleName,
|
||||
ModuleReference,
|
||||
NamedExportBindings,
|
||||
NodeFactory,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
QuestionToken,
|
||||
SetAccessorDeclaration,
|
||||
some,
|
||||
TypeAliasDeclaration,
|
||||
TypeElement,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Deprecate passing `decorators` separate from `modifiers`
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import {
|
||||
Debug,
|
||||
DeprecationOptions,
|
||||
Version,
|
||||
formatStringFromArgs,
|
||||
noop,
|
||||
version,
|
||||
Version,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export let enableDeprecationWarnings = true;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {
|
||||
hasProperty,
|
||||
UnionToIntersection,
|
||||
Version,
|
||||
hasProperty,
|
||||
} from "./_namespaces/ts";
|
||||
import { deprecate } from "./deprecate";
|
||||
|
||||
|
||||
@ -1,35 +1,15 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
BuildOptions,
|
||||
BuilderProgram,
|
||||
CharacterCodes,
|
||||
CommandLineOption,
|
||||
CompilerOptions,
|
||||
CreateProgram,
|
||||
CreateProgramOptions,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
ParsedCommandLine,
|
||||
Program,
|
||||
ReportEmitErrorSummary,
|
||||
SolutionBuilder,
|
||||
SolutionBuilderHostBase,
|
||||
SourceFile,
|
||||
System,
|
||||
WatchCompilerHost,
|
||||
WatchOptions,
|
||||
arrayFrom,
|
||||
BuilderProgram,
|
||||
BuildOptions,
|
||||
buildOpts,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
CharacterCodes,
|
||||
combinePaths,
|
||||
CommandLineOption,
|
||||
compareStringsCaseInsensitive,
|
||||
CompilerOptions,
|
||||
contains,
|
||||
convertToOptionsWithAbsolutePaths,
|
||||
convertToTSConfig,
|
||||
@ -40,6 +20,8 @@ import {
|
||||
createGetCanonicalFileName,
|
||||
createIncrementalCompilerHost,
|
||||
createProgram,
|
||||
CreateProgram,
|
||||
CreateProgramOptions,
|
||||
createSolutionBuilder,
|
||||
createSolutionBuilderHost,
|
||||
createSolutionBuilderWithWatch,
|
||||
@ -47,8 +29,17 @@ import {
|
||||
createWatchCompilerHostOfConfigFile,
|
||||
createWatchCompilerHostOfFilesAndCompilerOptions,
|
||||
createWatchProgram,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
dumpTracingLegend,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
emitFilesAndReportErrorsAndGetExitStatus,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
@ -75,18 +66,27 @@ import {
|
||||
parseBuildCommand,
|
||||
parseCommandLine,
|
||||
parseConfigFileWithSystem,
|
||||
ParsedCommandLine,
|
||||
Program,
|
||||
reduceLeftIterator,
|
||||
ReportEmitErrorSummary,
|
||||
SolutionBuilder,
|
||||
SolutionBuilderHostBase,
|
||||
sort,
|
||||
startTracing,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
startTracing,
|
||||
stringContains,
|
||||
supportedJSExtensionsFlat,
|
||||
supportedTSExtensionsFlat,
|
||||
sys,
|
||||
System,
|
||||
toPath,
|
||||
tracing,
|
||||
validateLocaleAndSetLanguage,
|
||||
version,
|
||||
WatchCompilerHost,
|
||||
WatchOptions,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "../compiler/_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -10,6 +10,11 @@ import {
|
||||
CompletionEntry,
|
||||
CompletionEntryDetails,
|
||||
CompletionInfo,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineStarts,
|
||||
computePositionOfLineAndCharacter,
|
||||
createQueue,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
DefinitionInfo,
|
||||
DefinitionInfoAndBoundSpan,
|
||||
@ -22,25 +27,32 @@ import {
|
||||
EditorOptions,
|
||||
EmitOutput,
|
||||
FileTextChanges,
|
||||
firstDefined,
|
||||
FormatCodeOptions,
|
||||
FormatCodeSettings,
|
||||
getSnapshotText,
|
||||
identity,
|
||||
ImplementationLocation,
|
||||
InlayHint,
|
||||
InlayHintKind,
|
||||
isString,
|
||||
JSDocTagInfo,
|
||||
LanguageService,
|
||||
LanguageServiceHost,
|
||||
map,
|
||||
mapOneOrMany,
|
||||
NavigateToItem,
|
||||
NavigationBarItem,
|
||||
NavigationTree,
|
||||
notImplemented,
|
||||
OrganizeImportsArgs,
|
||||
OutliningSpan,
|
||||
PatternMatchKind,
|
||||
Program,
|
||||
QuickInfo,
|
||||
RefactorEditInfo,
|
||||
ReferenceEntry,
|
||||
ReferencedSymbol,
|
||||
ReferenceEntry,
|
||||
RenameInfo,
|
||||
RenameInfoFailure,
|
||||
RenameInfoSuccess,
|
||||
@ -53,24 +65,12 @@ import {
|
||||
Symbol,
|
||||
TextChange,
|
||||
TextInsertion,
|
||||
textPart,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TodoComment,
|
||||
TodoCommentDescriptor,
|
||||
UserPreferences,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineStarts,
|
||||
computePositionOfLineAndCharacter,
|
||||
createQueue,
|
||||
createTextSpanFromBounds,
|
||||
firstDefined,
|
||||
getSnapshotText,
|
||||
identity,
|
||||
isString,
|
||||
map,
|
||||
mapOneOrMany,
|
||||
notImplemented,
|
||||
textPart,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
CommandNames,
|
||||
|
||||
@ -1,16 +1,12 @@
|
||||
import {
|
||||
CharacterCodes,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Extension,
|
||||
MapLike,
|
||||
Path,
|
||||
TypeAcquisition,
|
||||
Version,
|
||||
combinePaths,
|
||||
compareStringsCaseSensitive,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
deduplicate,
|
||||
equateStringsCaseSensitive,
|
||||
Extension,
|
||||
fileExtensionIs,
|
||||
flatMap,
|
||||
forEach,
|
||||
@ -23,11 +19,15 @@ import {
|
||||
getProperty,
|
||||
hasJSFileExtension,
|
||||
mapDefined,
|
||||
MapLike,
|
||||
normalizePath,
|
||||
Path,
|
||||
readConfigFile,
|
||||
removeFileExtension,
|
||||
removeMinAndVersionNumbers,
|
||||
some,
|
||||
TypeAcquisition,
|
||||
Version,
|
||||
versionMajorMinor,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,104 +1,57 @@
|
||||
import {
|
||||
ActionInvalidate,
|
||||
ActionSet,
|
||||
asNormalizedPath,
|
||||
AutoImportProviderProject,
|
||||
BeginEnablePluginResult,
|
||||
BeginInstallTypes,
|
||||
ConfiguredProject,
|
||||
countEachFileTypes,
|
||||
createPackageJsonCache,
|
||||
emptyArray,
|
||||
EndInstallTypes,
|
||||
Errors,
|
||||
ExternalProject,
|
||||
ITypingsInstaller,
|
||||
getBaseConfigFileName,
|
||||
hasNoTypeScriptSource,
|
||||
InferredProject,
|
||||
InvalidateCachedTypings,
|
||||
LogLevel,
|
||||
isConfiguredProject,
|
||||
isDynamicFileName,
|
||||
isInferredProject,
|
||||
isInferredProjectName,
|
||||
ITypingsInstaller,
|
||||
Logger,
|
||||
LogLevel,
|
||||
makeAutoImportProviderProjectName,
|
||||
makeAuxiliaryProjectName,
|
||||
makeInferredProjectName,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
normalizedPathToPath,
|
||||
nullTypingsInstaller,
|
||||
PackageInstalledResponse,
|
||||
PackageJsonCache,
|
||||
Project,
|
||||
ProjectFilesWithTSDiagnostics,
|
||||
ProjectKind,
|
||||
ProjectOptions,
|
||||
protocol,
|
||||
ScriptInfo,
|
||||
ScriptInfoVersion,
|
||||
ServerHost,
|
||||
Session,
|
||||
SetTypings,
|
||||
ThrottledOperations,
|
||||
TypingsCache,
|
||||
asNormalizedPath,
|
||||
countEachFileTypes,
|
||||
createPackageJsonCache,
|
||||
emptyArray,
|
||||
getBaseConfigFileName,
|
||||
hasNoTypeScriptSource,
|
||||
isConfiguredProject,
|
||||
isDynamicFileName,
|
||||
isInferredProject,
|
||||
isInferredProjectName,
|
||||
makeAutoImportProviderProjectName,
|
||||
makeAuxiliaryProjectName,
|
||||
makeInferredProjectName,
|
||||
normalizedPathToPath,
|
||||
nullTypingsInstaller,
|
||||
protocol,
|
||||
toNormalizedPath,
|
||||
TypingsCache,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
AssertionLevel,
|
||||
CachedDirectoryStructureHost,
|
||||
CommandLineOption,
|
||||
CompilerOptions,
|
||||
CompletionInfo,
|
||||
ConfigFileProgramReloadLevel,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DirectoryStructureHost,
|
||||
DocumentPosition,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistry,
|
||||
DocumentRegistryBucketKeyWithMode,
|
||||
ExtendedConfigCacheEntry,
|
||||
FileExtensionInfo,
|
||||
FileWatcher,
|
||||
FileWatcherEventKind,
|
||||
FormatCodeSettings,
|
||||
HostCancellationToken,
|
||||
IncompleteCompletionsCache,
|
||||
IndentStyle,
|
||||
LanguageServiceMode,
|
||||
MultiMap,
|
||||
PackageJsonAutoImportPreference,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PerformanceEvent,
|
||||
PluginImport,
|
||||
PollingInterval,
|
||||
ProjectPackageJsonInfo,
|
||||
ProjectReference,
|
||||
ReadMapFile,
|
||||
ReadonlyCollection,
|
||||
ResolvedProjectReference,
|
||||
ScriptKind,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
Ternary,
|
||||
TextChange,
|
||||
TsConfigSourceFile,
|
||||
TypeAcquisition,
|
||||
UserPreferences,
|
||||
WatchDirectoryFlags,
|
||||
WatchFactory,
|
||||
WatchLogLevel,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
WildcardDirectoryWatcher,
|
||||
addToSeen,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
AssertionLevel,
|
||||
CachedDirectoryStructureHost,
|
||||
canJsonReportNoInputFiles,
|
||||
canWatchDirectoryOrFile,
|
||||
cleanExtendedConfigCache,
|
||||
@ -106,6 +59,10 @@ import {
|
||||
clearSharedExtendedConfigFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
CommandLineOption,
|
||||
CompilerOptions,
|
||||
CompletionInfo,
|
||||
ConfigFileProgramReloadLevel,
|
||||
contains,
|
||||
containsPath,
|
||||
convertCompilerOptionsForTelemetry,
|
||||
@ -115,10 +72,21 @@ import {
|
||||
createDocumentRegistryInternal,
|
||||
createGetCanonicalFileName,
|
||||
createMultiMap,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
directorySeparator,
|
||||
DirectoryStructureHost,
|
||||
DocumentPosition,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistry,
|
||||
DocumentRegistryBucketKeyWithMode,
|
||||
emptyOptions,
|
||||
ensureTrailingDirectorySeparator,
|
||||
ExtendedConfigCacheEntry,
|
||||
FileExtensionInfo,
|
||||
fileExtensionIs,
|
||||
FileWatcher,
|
||||
FileWatcherEventKind,
|
||||
find,
|
||||
flatMap,
|
||||
forEach,
|
||||
@ -126,6 +94,7 @@ import {
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
forEachResolvedProjectReference,
|
||||
FormatCodeSettings,
|
||||
getAnyExtensionFromPath,
|
||||
getBaseFileName,
|
||||
getDefaultFormatCodeSettings,
|
||||
@ -140,7 +109,10 @@ import {
|
||||
hasExtension,
|
||||
hasProperty,
|
||||
hasTSFileExtension,
|
||||
HostCancellationToken,
|
||||
identity,
|
||||
IncompleteCompletionsCache,
|
||||
IndentStyle,
|
||||
isArray,
|
||||
isIgnoredFileFromWildCardWatching,
|
||||
isInsideNodeModules,
|
||||
@ -148,37 +120,65 @@ import {
|
||||
isNodeModulesDirectory,
|
||||
isRootedDiskPath,
|
||||
isString,
|
||||
LanguageServiceMode,
|
||||
length,
|
||||
map,
|
||||
mapDefinedEntries,
|
||||
mapDefinedIterator,
|
||||
missingFileModifiedTime,
|
||||
MultiMap,
|
||||
noop,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
optionDeclarations,
|
||||
optionsForWatch,
|
||||
PackageJsonAutoImportPreference,
|
||||
ParsedCommandLine,
|
||||
parseJsonSourceFileConfigFileContent,
|
||||
parseJsonText,
|
||||
parsePackageName,
|
||||
Path,
|
||||
PerformanceEvent,
|
||||
PluginImport,
|
||||
PollingInterval,
|
||||
ProjectPackageJsonInfo,
|
||||
ProjectReference,
|
||||
ReadMapFile,
|
||||
ReadonlyCollection,
|
||||
removeFileExtension,
|
||||
removeIgnoredPath,
|
||||
removeMinAndVersionNumbers,
|
||||
ResolvedProjectReference,
|
||||
resolveProjectReferencePath,
|
||||
returnNoopFileWatcher,
|
||||
returnTrue,
|
||||
ScriptKind,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
some,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
startsWith,
|
||||
Ternary,
|
||||
TextChange,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
tracing,
|
||||
tryAddToSet,
|
||||
tryReadFile,
|
||||
TsConfigSourceFile,
|
||||
TypeAcquisition,
|
||||
typeAcquisitionDeclarations,
|
||||
unorderedRemoveItem,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
UserPreferences,
|
||||
version,
|
||||
WatchDirectoryFlags,
|
||||
WatchFactory,
|
||||
WatchLogLevel,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
WildcardDirectoryWatcher,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export const maxProgramSizeForNonTsFiles = 20 * 1024 * 1024;
|
||||
|
||||
@ -4,10 +4,10 @@ import {
|
||||
ModulePath,
|
||||
ModuleSpecifierCache,
|
||||
ModuleSpecifierOptions,
|
||||
nodeModulesPathPart,
|
||||
Path,
|
||||
ResolvedModuleSpecifierInfo,
|
||||
UserPreferences,
|
||||
nodeModulesPathPart,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import {
|
||||
combinePaths,
|
||||
createPackageJsonInfo,
|
||||
Debug,
|
||||
forEachAncestorDirectory,
|
||||
getDirectoryPath,
|
||||
Path,
|
||||
ProjectPackageJsonInfo,
|
||||
Ternary,
|
||||
combinePaths,
|
||||
createPackageJsonInfo,
|
||||
forEachAncestorDirectory,
|
||||
getDirectoryPath,
|
||||
tryFileExists,
|
||||
} from "./_namespaces/ts";
|
||||
import { ProjectService } from "./_namespaces/ts.server";
|
||||
|
||||
@ -1,105 +1,65 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
asNormalizedPath,
|
||||
createModuleSpecifierCache,
|
||||
emptyArray,
|
||||
Errors,
|
||||
FileStats,
|
||||
forEachResolvedProjectReferenceProject,
|
||||
LogLevel,
|
||||
ModuleImportResult,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
projectContainsInfoDirectly,
|
||||
ProjectOptions,
|
||||
ProjectReferenceProjectLoadKind,
|
||||
ProjectService,
|
||||
protocol,
|
||||
ScriptInfo,
|
||||
ServerHost,
|
||||
Session,
|
||||
TypingsCache,
|
||||
asNormalizedPath,
|
||||
createModuleSpecifierCache,
|
||||
emptyArray,
|
||||
forEachResolvedProjectReferenceProject,
|
||||
projectContainsInfoDirectly,
|
||||
protocol,
|
||||
toNormalizedPath,
|
||||
TypingsCache,
|
||||
updateProjectIfDirty,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
ApplyCodeActionCommandResult,
|
||||
BuilderState,
|
||||
CachedDirectoryStructureHost,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
ConfigFileProgramReloadLevel,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DirectoryStructureHost,
|
||||
DirectoryWatcherCallback,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistry,
|
||||
ExportInfoMap,
|
||||
Extension,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
GetCanonicalFileName,
|
||||
HasInvalidatedResolutions,
|
||||
HostCancellationToken,
|
||||
IScriptSnapshot,
|
||||
InstallPackageOptions,
|
||||
JsTyping,
|
||||
LanguageService,
|
||||
LanguageServiceHost,
|
||||
LanguageServiceMode,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
PackageJsonAutoImportPreference,
|
||||
PackageJsonInfo,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PerformanceEvent,
|
||||
PluginImport,
|
||||
PollingInterval,
|
||||
Program,
|
||||
ProjectPackageJsonInfo,
|
||||
ProjectReference,
|
||||
ResolutionCache,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ScriptKind,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
SourceMapper,
|
||||
StructureIsReused,
|
||||
SymlinkCache,
|
||||
ThrottledCancellationToken,
|
||||
TypeAcquisition,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
WatchDirectoryFlags,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
addRange,
|
||||
append,
|
||||
ApplyCodeActionCommandResult,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
BuilderState,
|
||||
CachedDirectoryStructureHost,
|
||||
changesAffectModuleResolution,
|
||||
clearMap,
|
||||
cloneCompilerOptions,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
concatenate,
|
||||
ConfigFileProgramReloadLevel,
|
||||
createCacheableExportInfoMap,
|
||||
createLanguageService,
|
||||
createResolutionCache,
|
||||
createSymlinkCache,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DirectoryStructureHost,
|
||||
DirectoryWatcherCallback,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistry,
|
||||
enumerateInsertsAndDeletes,
|
||||
every,
|
||||
explainFiles,
|
||||
ExportInfoMap,
|
||||
Extension,
|
||||
fileExtensionIs,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
filter,
|
||||
firstDefined,
|
||||
flatMap,
|
||||
@ -109,6 +69,7 @@ import {
|
||||
generateDjb2Hash,
|
||||
getAllowJSCompilerOption,
|
||||
getAutomaticTypeDirectiveNames,
|
||||
GetCanonicalFileName,
|
||||
getDeclarationEmitOutputFilePathWorker,
|
||||
getDefaultCompilerOptions,
|
||||
getDefaultLibFileName,
|
||||
@ -120,36 +81,75 @@ import {
|
||||
getNormalizedAbsolutePath,
|
||||
getOrUpdate,
|
||||
getStringComparer,
|
||||
HasInvalidatedResolutions,
|
||||
HostCancellationToken,
|
||||
inferredTypesContainingFile,
|
||||
InstallPackageOptions,
|
||||
IScriptSnapshot,
|
||||
isDeclarationFileName,
|
||||
isExternalModuleNameRelative,
|
||||
isInsideNodeModules,
|
||||
JsTyping,
|
||||
LanguageService,
|
||||
LanguageServiceHost,
|
||||
LanguageServiceMode,
|
||||
map,
|
||||
mapDefined,
|
||||
maybeBind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
noop,
|
||||
noopFileWatcher,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
orderedRemoveItem,
|
||||
outFile,
|
||||
PackageJsonAutoImportPreference,
|
||||
PackageJsonInfo,
|
||||
ParsedCommandLine,
|
||||
parsePackageName,
|
||||
Path,
|
||||
perfLogger,
|
||||
PerformanceEvent,
|
||||
PluginImport,
|
||||
PollingInterval,
|
||||
Program,
|
||||
ProjectPackageJsonInfo,
|
||||
ProjectReference,
|
||||
removeFileExtension,
|
||||
ResolutionCache,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
ResolutionMode,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
resolvePackageNameToPackageJson,
|
||||
returnFalse,
|
||||
returnTrue,
|
||||
ScriptKind,
|
||||
some,
|
||||
sort,
|
||||
sortAndDeduplicate,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
SourceMapper,
|
||||
startsWith,
|
||||
stripQuotes,
|
||||
StructureIsReused,
|
||||
SymlinkCache,
|
||||
ThrottledCancellationToken,
|
||||
timestamp,
|
||||
toPath,
|
||||
tracing,
|
||||
TypeAcquisition,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
updateErrorForNoInputFiles,
|
||||
updateMissingFilePathsWatch,
|
||||
WatchDirectoryFlags,
|
||||
WatchOptions,
|
||||
WatchType,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export enum ProjectKind {
|
||||
|
||||
@ -4,32 +4,18 @@ import {
|
||||
Errors,
|
||||
ExternalProject,
|
||||
InferredProject,
|
||||
NormalizedPath,
|
||||
Project,
|
||||
ProjectKind,
|
||||
ScriptVersionCache,
|
||||
ServerHost,
|
||||
isConfiguredProject,
|
||||
isExternalProject,
|
||||
isInferredProject,
|
||||
maxFileSize,
|
||||
NormalizedPath,
|
||||
Project,
|
||||
ProjectKind,
|
||||
protocol,
|
||||
ScriptVersionCache,
|
||||
ServerHost,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
Debug,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistryBucketKeyWithMode,
|
||||
FileWatcher,
|
||||
FileWatcherEventKind,
|
||||
FormatCodeSettings,
|
||||
IScriptSnapshot,
|
||||
LineInfo,
|
||||
Path,
|
||||
ScriptKind,
|
||||
ScriptSnapshot,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
TextSpan,
|
||||
assign,
|
||||
clear,
|
||||
closeFileWatcherOf,
|
||||
@ -38,18 +24,32 @@ import {
|
||||
computePositionOfLineAndCharacter,
|
||||
contains,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
directorySeparator,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistryBucketKeyWithMode,
|
||||
emptyOptions,
|
||||
FileWatcher,
|
||||
FileWatcherEventKind,
|
||||
forEach,
|
||||
FormatCodeSettings,
|
||||
getBaseFileName,
|
||||
getDefaultFormatCodeSettings,
|
||||
getLineInfo,
|
||||
getScriptKindFromFileName,
|
||||
getSnapshotText,
|
||||
hasTSFileExtension,
|
||||
IScriptSnapshot,
|
||||
isString,
|
||||
LineInfo,
|
||||
Path,
|
||||
ScriptKind,
|
||||
ScriptSnapshot,
|
||||
some,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
stringContains,
|
||||
TextSpan,
|
||||
unorderedRemoveItem,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import {
|
||||
Debug,
|
||||
IScriptSnapshot,
|
||||
TextChangeRange,
|
||||
TextSpan,
|
||||
collapseTextChangeRangesAcrossMultipleVersions,
|
||||
computeLineStarts,
|
||||
createTextChangeRange,
|
||||
createTextSpan,
|
||||
Debug,
|
||||
IScriptSnapshot,
|
||||
TextChangeRange,
|
||||
TextSpan,
|
||||
unchangedTextChangeRange,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
import {
|
||||
arrayFrom,
|
||||
arrayIterator,
|
||||
arrayReverseIterator,
|
||||
CallHierarchyIncomingCall,
|
||||
CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall,
|
||||
cast,
|
||||
CodeAction,
|
||||
CodeActionCommand,
|
||||
CodeFixAction,
|
||||
@ -12,64 +16,6 @@ import {
|
||||
CompletionEntryDetails,
|
||||
CompletionInfo,
|
||||
CompletionTriggerKind,
|
||||
Debug,
|
||||
DefinitionInfo,
|
||||
DefinitionInfoAndBoundSpan,
|
||||
Diagnostic,
|
||||
DiagnosticRelatedInformation,
|
||||
DocumentHighlights,
|
||||
DocumentPosition,
|
||||
DocumentSpan,
|
||||
EmitOutput,
|
||||
FileTextChanges,
|
||||
FindAllReferences,
|
||||
FormatCodeSettings,
|
||||
GoToDefinition,
|
||||
HostCancellationToken,
|
||||
ImplementationLocation,
|
||||
ImportSpecifier,
|
||||
JSDocLinkDisplayPart,
|
||||
JSDocTagInfo,
|
||||
LanguageServiceMode,
|
||||
LineAndCharacter,
|
||||
ModuleResolutionKind,
|
||||
MultiMap,
|
||||
NavigateToItem,
|
||||
NavigationBarItem,
|
||||
NavigationTree,
|
||||
OperationCanceledException,
|
||||
OrganizeImportsMode,
|
||||
OutliningSpan,
|
||||
Path,
|
||||
PerformanceEvent,
|
||||
PossibleProgramFileInfo,
|
||||
Program,
|
||||
QuickInfo,
|
||||
RefactorEditInfo,
|
||||
ReferenceEntry,
|
||||
ReferencedSymbol,
|
||||
ReferencedSymbolDefinitionInfo,
|
||||
ReferencedSymbolEntry,
|
||||
RenameInfo,
|
||||
RenameLocation,
|
||||
ScriptKind,
|
||||
SelectionRange,
|
||||
SemanticClassificationFormat,
|
||||
SignatureHelpItem,
|
||||
SignatureHelpItems,
|
||||
SourceFile,
|
||||
SymbolDisplayPart,
|
||||
SyntaxKind,
|
||||
TextChange,
|
||||
TextInsertion,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
UserPreferences,
|
||||
WithMetadata,
|
||||
arrayFrom,
|
||||
arrayIterator,
|
||||
arrayReverseIterator,
|
||||
cast,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineStarts,
|
||||
concatenate,
|
||||
@ -77,20 +23,32 @@ import {
|
||||
createSet,
|
||||
createTextSpan,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
decodedTextSpanIntersectsWith,
|
||||
deduplicate,
|
||||
DefinitionInfo,
|
||||
DefinitionInfoAndBoundSpan,
|
||||
Diagnostic,
|
||||
diagnosticCategoryName,
|
||||
DiagnosticRelatedInformation,
|
||||
displayPartsToString,
|
||||
DocumentHighlights,
|
||||
DocumentPosition,
|
||||
DocumentSpan,
|
||||
documentSpansEqual,
|
||||
EmitOutput,
|
||||
equateValues,
|
||||
FileTextChanges,
|
||||
filter,
|
||||
find,
|
||||
FindAllReferences,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flatMapToMutable,
|
||||
flattenDiagnosticMessageText,
|
||||
forEachNameInAccessChainWalkingLeft,
|
||||
FormatCodeSettings,
|
||||
formatting,
|
||||
getDeclarationFromName,
|
||||
getDeclarationOfKind,
|
||||
@ -110,45 +68,96 @@ import {
|
||||
getTemporaryModuleResolutionState,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
getTouchingPropertyName,
|
||||
GoToDefinition,
|
||||
HostCancellationToken,
|
||||
identity,
|
||||
ImplementationLocation,
|
||||
ImportSpecifier,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
isDeclarationFileName,
|
||||
isIdentifier,
|
||||
isString,
|
||||
isStringLiteralLike,
|
||||
JSDocLinkDisplayPart,
|
||||
JSDocTagInfo,
|
||||
LanguageServiceMode,
|
||||
LineAndCharacter,
|
||||
map,
|
||||
mapDefined,
|
||||
mapDefinedIterator,
|
||||
mapIterator,
|
||||
mapOneOrMany,
|
||||
memoize,
|
||||
ModuleResolutionKind,
|
||||
MultiMap,
|
||||
NavigateToItem,
|
||||
NavigationBarItem,
|
||||
NavigationTree,
|
||||
nodeModulesPathPart,
|
||||
normalizePath,
|
||||
OperationCanceledException,
|
||||
OrganizeImportsMode,
|
||||
outFile,
|
||||
OutliningSpan,
|
||||
Path,
|
||||
perfLogger,
|
||||
PerformanceEvent,
|
||||
PossibleProgramFileInfo,
|
||||
Program,
|
||||
QuickInfo,
|
||||
RefactorEditInfo,
|
||||
ReferencedSymbol,
|
||||
ReferencedSymbolDefinitionInfo,
|
||||
ReferencedSymbolEntry,
|
||||
ReferenceEntry,
|
||||
removeFileExtension,
|
||||
RenameInfo,
|
||||
RenameLocation,
|
||||
ScriptKind,
|
||||
SelectionRange,
|
||||
SemanticClassificationFormat,
|
||||
SignatureHelpItem,
|
||||
SignatureHelpItems,
|
||||
singleIterator,
|
||||
some,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
stringContains,
|
||||
SymbolDisplayPart,
|
||||
SyntaxKind,
|
||||
TextChange,
|
||||
TextInsertion,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
textSpanEnd,
|
||||
toArray,
|
||||
toFileNameLowerCase,
|
||||
tracing,
|
||||
unmangleScopedPackageName,
|
||||
UserPreferences,
|
||||
version,
|
||||
WithMetadata,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
ConfigFileDiagEvent,
|
||||
ConfiguredProject,
|
||||
convertFormatOptions,
|
||||
convertScriptKindName,
|
||||
convertUserPreferences,
|
||||
EmitResult,
|
||||
emptyArray,
|
||||
Errors,
|
||||
GcTimer,
|
||||
indent,
|
||||
isConfigFile,
|
||||
isConfiguredProject,
|
||||
isExternalProject,
|
||||
isInferredProject,
|
||||
ITypingsInstaller,
|
||||
LargeFileReferencedEvent,
|
||||
LogLevel,
|
||||
Logger,
|
||||
LogLevel,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
Project,
|
||||
@ -162,19 +171,10 @@ import {
|
||||
ProjectServiceEventHandler,
|
||||
ProjectServiceOptions,
|
||||
ProjectsUpdatedInBackgroundEvent,
|
||||
protocol,
|
||||
ScriptInfo,
|
||||
ScriptInfoOrConfig,
|
||||
ServerHost,
|
||||
convertFormatOptions,
|
||||
convertScriptKindName,
|
||||
convertUserPreferences,
|
||||
emptyArray,
|
||||
indent,
|
||||
isConfigFile,
|
||||
isConfiguredProject,
|
||||
isExternalProject,
|
||||
isInferredProject,
|
||||
protocol,
|
||||
stringifyIndented,
|
||||
toNormalizedPath,
|
||||
updateProjectIfDirty,
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
import {
|
||||
ApplyCodeActionCommandResult,
|
||||
CompilerOptions,
|
||||
InstallPackageOptions,
|
||||
Path,
|
||||
SortedReadonlyArray,
|
||||
TypeAcquisition,
|
||||
arrayIsEqualTo,
|
||||
CompilerOptions,
|
||||
getAllowJSCompilerOption,
|
||||
InstallPackageOptions,
|
||||
noop,
|
||||
notImplemented,
|
||||
Path,
|
||||
returnFalse,
|
||||
sort,
|
||||
SortedReadonlyArray,
|
||||
TypeAcquisition,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
emptyArray,
|
||||
Project,
|
||||
ProjectService,
|
||||
emptyArray,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
export interface InstallPackageOptionsWithProject extends InstallPackageOptions {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
import {
|
||||
Comparer,
|
||||
SortedArray,
|
||||
binarySearch,
|
||||
Comparer,
|
||||
getBaseFileName,
|
||||
identity,
|
||||
perfLogger,
|
||||
SortedArray,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
LogLevel,
|
||||
Logger,
|
||||
LogLevel,
|
||||
NormalizedPath,
|
||||
ServerHost,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {
|
||||
getNormalizedAbsolutePath,
|
||||
isRootedDiskPath,
|
||||
normalizePath,
|
||||
Path,
|
||||
SortedArray,
|
||||
SortedReadonlyArray,
|
||||
TypeAcquisition,
|
||||
getNormalizedAbsolutePath,
|
||||
isRootedDiskPath,
|
||||
normalizePath,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
DiscoverTypings,
|
||||
|
||||
@ -4,10 +4,12 @@ import {
|
||||
BindingPattern,
|
||||
Block,
|
||||
BreakOrContinueStatement,
|
||||
canHaveDecorators,
|
||||
CaseBlock,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
createTextSpanFromBounds,
|
||||
Debug,
|
||||
DestructuringPattern,
|
||||
DoStatement,
|
||||
@ -16,15 +18,32 @@ import {
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
findLast,
|
||||
findNextToken,
|
||||
findPrecedingToken,
|
||||
forEach,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionLikeDeclaration,
|
||||
getModuleInstanceState,
|
||||
getTokenAtPosition,
|
||||
HasDecorators,
|
||||
hasOnlyExpressionInitializer,
|
||||
hasSyntacticModifier,
|
||||
IfStatement,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
isArrayLiteralOrObjectLiteralDestructuringPattern,
|
||||
isAssignmentOperator,
|
||||
isBindingPattern,
|
||||
isDecorator,
|
||||
isExpressionNode,
|
||||
isFunctionBlock,
|
||||
isFunctionLike,
|
||||
isVariableDeclarationList,
|
||||
LabeledStatement,
|
||||
lastOrUndefined,
|
||||
ModifierFlags,
|
||||
ModuleDeclaration,
|
||||
ModuleInstanceState,
|
||||
@ -38,6 +57,7 @@ import {
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
ReturnStatement,
|
||||
skipTrivia,
|
||||
SourceFile,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
@ -50,26 +70,6 @@ import {
|
||||
VariableStatement,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
canHaveDecorators,
|
||||
createTextSpanFromBounds,
|
||||
findLast,
|
||||
findNextToken,
|
||||
findPrecedingToken,
|
||||
forEach,
|
||||
getModuleInstanceState,
|
||||
getTokenAtPosition,
|
||||
hasOnlyExpressionInitializer,
|
||||
hasSyntacticModifier,
|
||||
isArrayLiteralOrObjectLiteralDestructuringPattern,
|
||||
isAssignmentOperator,
|
||||
isBindingPattern,
|
||||
isDecorator,
|
||||
isExpressionNode,
|
||||
isFunctionBlock,
|
||||
isFunctionLike,
|
||||
isVariableDeclarationList,
|
||||
lastOrUndefined,
|
||||
skipTrivia,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import {
|
||||
AccessExpression,
|
||||
append,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
CallExpression,
|
||||
@ -7,53 +8,30 @@ import {
|
||||
CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall,
|
||||
CancellationToken,
|
||||
canHaveModifiers,
|
||||
ClassDeclaration,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
Debug,
|
||||
Decorator,
|
||||
ElementAccessExpression,
|
||||
EmitHint,
|
||||
FindAllReferences,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
Identifier,
|
||||
JsxOpeningLikeElement,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModuleDeclaration,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
Program,
|
||||
PropertyAccessExpression,
|
||||
SatisfiesExpression,
|
||||
SetAccessorDeclaration,
|
||||
SourceFile,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TypeAssertion,
|
||||
TypeChecker,
|
||||
VariableDeclaration,
|
||||
append,
|
||||
canHaveModifiers,
|
||||
compareStringsCaseSensitive,
|
||||
createPrinter,
|
||||
createTextRangeFromNode,
|
||||
createTextSpanFromBounds,
|
||||
createTextSpanFromRange,
|
||||
Debug,
|
||||
Decorator,
|
||||
ElementAccessExpression,
|
||||
EmitHint,
|
||||
filter,
|
||||
find,
|
||||
FindAllReferences,
|
||||
findAncestor,
|
||||
forEach,
|
||||
forEachChild,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
getAssignedName,
|
||||
getClassExtendsHeritageElement,
|
||||
getCombinedNodeFlags,
|
||||
@ -64,6 +42,7 @@ import {
|
||||
getNodeModifiers,
|
||||
group,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
idText,
|
||||
indicesOf,
|
||||
isAccessExpression,
|
||||
@ -100,10 +79,31 @@ import {
|
||||
isTaggedTemplateExpression,
|
||||
isTaggedTemplateTag,
|
||||
isVariableDeclaration,
|
||||
JsxOpeningLikeElement,
|
||||
map,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModuleDeclaration,
|
||||
moveRangePastModifiers,
|
||||
NewExpression,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
Program,
|
||||
PropertyAccessExpression,
|
||||
SatisfiesExpression,
|
||||
SetAccessorDeclaration,
|
||||
skipTrivia,
|
||||
SourceFile,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TypeAssertion,
|
||||
TypeChecker,
|
||||
usingSingleLineStringWriter,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,62 +1,29 @@
|
||||
import {
|
||||
__String,
|
||||
arrayToNumericMap,
|
||||
CancellationToken,
|
||||
CharacterCodes,
|
||||
ClassDeclaration,
|
||||
ClassificationInfo,
|
||||
ClassificationResult,
|
||||
Classifications,
|
||||
ClassificationType,
|
||||
ClassificationTypeNames,
|
||||
Classifications,
|
||||
ClassifiedSpan,
|
||||
Classifier,
|
||||
Debug,
|
||||
EndOfLineState,
|
||||
EnumDeclaration,
|
||||
HasJSDoc,
|
||||
InterfaceDeclaration,
|
||||
JSDoc,
|
||||
JSDocAugmentsTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocImplementsTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JsxAttribute,
|
||||
JsxClosingElement,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
ModuleDeclaration,
|
||||
ModuleInstanceState,
|
||||
Node,
|
||||
ParameterDeclaration,
|
||||
Push,
|
||||
Scanner,
|
||||
ScriptTarget,
|
||||
SemanticMeaning,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
TokenClass,
|
||||
TypeChecker,
|
||||
TypeParameterDeclaration,
|
||||
__String,
|
||||
arrayToNumericMap,
|
||||
commentPragmas,
|
||||
couldStartTrivia,
|
||||
createScanner,
|
||||
createTextSpan,
|
||||
Debug,
|
||||
decodedTextSpanIntersectsWith,
|
||||
EndOfLineState,
|
||||
EnumDeclaration,
|
||||
getMeaningFromLocation,
|
||||
getModuleInstanceState,
|
||||
getTypeArgumentOrTypeParameterList,
|
||||
HasJSDoc,
|
||||
InterfaceDeclaration,
|
||||
isAccessibilityModifier,
|
||||
isConstTypeReference,
|
||||
isIdentifier,
|
||||
@ -69,12 +36,45 @@ import {
|
||||
isThisIdentifier,
|
||||
isToken,
|
||||
isTrivia,
|
||||
JSDoc,
|
||||
JSDocAugmentsTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocImplementsTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocTypeTag,
|
||||
JsxAttribute,
|
||||
JsxClosingElement,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
lastOrUndefined,
|
||||
ModuleDeclaration,
|
||||
ModuleInstanceState,
|
||||
Node,
|
||||
nodeIsMissing,
|
||||
ParameterDeclaration,
|
||||
parseIsolatedJSDocComment,
|
||||
Push,
|
||||
Scanner,
|
||||
ScriptTarget,
|
||||
SemanticMeaning,
|
||||
setParent,
|
||||
some,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
textSpanIntersectsWith,
|
||||
TokenClass,
|
||||
TypeChecker,
|
||||
TypeParameterDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** The classifier is used for syntactic highlighting in editors via the TSServer */
|
||||
|
||||
@ -3,25 +3,10 @@ import {
|
||||
CancellationToken,
|
||||
Classifications,
|
||||
ClassifiedSpan2020,
|
||||
createTextSpan,
|
||||
Debug,
|
||||
Declaration,
|
||||
EndOfLineState,
|
||||
ModifierFlags,
|
||||
NamedDeclaration,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
Program,
|
||||
SemanticMeaning,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
Type,
|
||||
TypeChecker,
|
||||
VariableDeclaration,
|
||||
createTextSpan,
|
||||
forEachChild,
|
||||
getCombinedModifierFlags,
|
||||
getCombinedNodeFlags,
|
||||
@ -42,7 +27,22 @@ import {
|
||||
isQualifiedName,
|
||||
isSourceFile,
|
||||
isVariableDeclaration,
|
||||
ModifierFlags,
|
||||
NamedDeclaration,
|
||||
Node,
|
||||
NodeFlags,
|
||||
ParameterDeclaration,
|
||||
Program,
|
||||
SemanticMeaning,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SymbolFlags,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
textSpanIntersectsWith,
|
||||
Type,
|
||||
TypeChecker,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import {
|
||||
arrayFrom,
|
||||
cast,
|
||||
CodeActionCommand,
|
||||
CodeFixAction,
|
||||
CodeFixAllContext,
|
||||
@ -6,22 +8,20 @@ import {
|
||||
CodeFixContextBase,
|
||||
CodeFixRegistration,
|
||||
CombinedCodeActions,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticAndArguments,
|
||||
DiagnosticWithLocation,
|
||||
FileTextChanges,
|
||||
Push,
|
||||
TextChange,
|
||||
arrayFrom,
|
||||
cast,
|
||||
computeSuggestionDiagnostics,
|
||||
contains,
|
||||
createMultiMap,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticAndArguments,
|
||||
diagnosticToString,
|
||||
DiagnosticWithLocation,
|
||||
FileTextChanges,
|
||||
flatMap,
|
||||
isString,
|
||||
map,
|
||||
Push,
|
||||
TextChange,
|
||||
textChanges,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import {
|
||||
AsExpression,
|
||||
Diagnostics,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TypeAssertion,
|
||||
factory,
|
||||
findAncestor,
|
||||
getTokenAtPosition,
|
||||
isAsExpression,
|
||||
isInJSFile,
|
||||
isTypeAssertionExpression,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeAssertion,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
|
||||
@ -2,19 +2,15 @@ import {
|
||||
ArrowFunction,
|
||||
CodeFixAllContext,
|
||||
CodeFixContext,
|
||||
createTextSpanFromNode,
|
||||
Diagnostic,
|
||||
Diagnostics,
|
||||
FileTextChanges,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
SourceFile,
|
||||
TextSpan,
|
||||
createTextSpanFromNode,
|
||||
factory,
|
||||
FileTextChanges,
|
||||
find,
|
||||
findAncestor,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
getNodeId,
|
||||
getSyntacticModifierFlags,
|
||||
getSynthesizedDeepClone,
|
||||
@ -24,8 +20,12 @@ import {
|
||||
isFunctionExpression,
|
||||
isMethodDeclaration,
|
||||
isNumber,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
some,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
TextSpan,
|
||||
textSpanEnd,
|
||||
textSpansEqual,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
@ -2,26 +2,15 @@ import {
|
||||
CancellationToken,
|
||||
CodeFixAllContext,
|
||||
CodeFixContext,
|
||||
compact,
|
||||
contains,
|
||||
Diagnostic,
|
||||
Diagnostics,
|
||||
Expression,
|
||||
FileTextChanges,
|
||||
FindAllReferences,
|
||||
Identifier,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeFlags,
|
||||
Program,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
TypeChecker,
|
||||
TypeFlags,
|
||||
compact,
|
||||
contains,
|
||||
factory,
|
||||
FileTextChanges,
|
||||
find,
|
||||
FindAllReferences,
|
||||
findAncestor,
|
||||
findPrecedingToken,
|
||||
forEach,
|
||||
@ -29,6 +18,7 @@ import {
|
||||
getFixableErrorSpanExpression,
|
||||
getSymbolId,
|
||||
hasSyntacticModifier,
|
||||
Identifier,
|
||||
isArrowFunction,
|
||||
isBinaryExpression,
|
||||
isBlock,
|
||||
@ -38,12 +28,22 @@ import {
|
||||
isNumber,
|
||||
isPropertyAccessExpression,
|
||||
isVariableDeclaration,
|
||||
ModifierFlags,
|
||||
Node,
|
||||
NodeFlags,
|
||||
positionIsASICandidate,
|
||||
Program,
|
||||
some,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TextSpan,
|
||||
textSpansEqual,
|
||||
tryAddToSet,
|
||||
tryCast,
|
||||
TypeChecker,
|
||||
TypeFlags,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
|
||||
@ -1,12 +1,7 @@
|
||||
import {
|
||||
Diagnostics,
|
||||
Expression,
|
||||
Node,
|
||||
Program,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TypeChecker,
|
||||
every,
|
||||
Expression,
|
||||
findAncestor,
|
||||
getTokenAtPosition,
|
||||
isArrayLiteralExpression,
|
||||
@ -15,8 +10,13 @@ import {
|
||||
isExpressionStatement,
|
||||
isForInOrOfStatement,
|
||||
isIdentifier,
|
||||
Node,
|
||||
Program,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
tryAddToSet,
|
||||
TypeChecker,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import {
|
||||
Diagnostics,
|
||||
getTokenAtPosition,
|
||||
isIdentifier,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
getTokenAtPosition,
|
||||
isIdentifier,
|
||||
textChanges,
|
||||
tryAddToSet,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
SourceFile,
|
||||
factory,
|
||||
findAncestor,
|
||||
getTokenAtPosition,
|
||||
isDecorator,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
Identifier,
|
||||
SourceFile,
|
||||
factory,
|
||||
getTokenAtPosition,
|
||||
Identifier,
|
||||
isParameter,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
|
||||
@ -1,19 +1,10 @@
|
||||
import {
|
||||
Diagnostics,
|
||||
Identifier,
|
||||
Node,
|
||||
PropertyAccessExpression,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
TextSpan,
|
||||
TypeChecker,
|
||||
UnionTypeNode,
|
||||
emptyArray,
|
||||
factory,
|
||||
getFixableErrorSpanExpression,
|
||||
getSourceFileOfNode,
|
||||
Identifier,
|
||||
isBinaryExpression,
|
||||
isCallExpression,
|
||||
isExpression,
|
||||
@ -25,7 +16,16 @@ import {
|
||||
isPropertySignature,
|
||||
isShorthandPropertyAssignment,
|
||||
isVariableDeclaration,
|
||||
Node,
|
||||
PropertyAccessExpression,
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TextSpan,
|
||||
TypeChecker,
|
||||
UnionTypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user