mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-04 14:08:20 -06:00
Reformat imports to be one identifier per line (#51565)
This commit is contained in:
parent
8eed2ca2dd
commit
2d2a4343b8
@ -13,6 +13,11 @@
|
||||
"@typescript-eslint", "no-null", "import", "eslint-plugin-local"
|
||||
],
|
||||
"rules": {
|
||||
"sort-imports": ["error", {
|
||||
"ignoreDeclarationSort": true,
|
||||
"allowSeparatedGroups": true
|
||||
}],
|
||||
|
||||
"@typescript-eslint/adjacent-overload-signatures": "error",
|
||||
"@typescript-eslint/array-type": "error",
|
||||
"@typescript-eslint/no-array-constructor": "error",
|
||||
|
||||
@ -6,9 +6,9 @@ import { task } from "hereby";
|
||||
import _glob from "glob";
|
||||
import util from "util";
|
||||
import chalk from "chalk";
|
||||
import { exec, readJson, getDiffTool, getDirSize, memoize, needsUpdate, Debouncer, Deferred } from "./scripts/build/utils.mjs";
|
||||
import { runConsoleTests, refBaseline, localBaseline, refRwcBaseline, localRwcBaseline, cleanTestDirs } from "./scripts/build/tests.mjs";
|
||||
import { buildProject as realBuildProject, cleanProject, watchProject } from "./scripts/build/projects.mjs";
|
||||
import { Debouncer, Deferred, exec, getDiffTool, getDirSize, memoize, needsUpdate, readJson } from "./scripts/build/utils.mjs";
|
||||
import { cleanTestDirs, localBaseline, localRwcBaseline, refBaseline, refRwcBaseline, runConsoleTests } from "./scripts/build/tests.mjs";
|
||||
import { cleanProject, buildProject as realBuildProject, watchProject } from "./scripts/build/projects.mjs";
|
||||
import { localizationDirectories } from "./scripts/build/localization.mjs";
|
||||
import cmdLineOptions from "./scripts/build/options.mjs";
|
||||
import esbuild from "esbuild";
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { join, resolve, dirname } from "path";
|
||||
import { dirname, join, resolve } from "path";
|
||||
import { existsSync } from "fs";
|
||||
import url from "url";
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { exec, Debouncer } from "./utils.mjs";
|
||||
import { Debouncer, exec } from "./utils.mjs";
|
||||
import { resolve } from "path";
|
||||
import { findUpRoot } from "./findUpDir.mjs";
|
||||
import cmdLineOptions from "./options.mjs";
|
||||
|
||||
@ -1,62 +1,299 @@
|
||||
import {
|
||||
__String, AccessExpression, addRelatedInfo, append, appendIfUnique, ArrayBindingElement, ArrayLiteralExpression,
|
||||
ArrowFunction, AssignmentDeclarationKind, BinaryExpression, BinaryOperatorToken, BindableAccessExpression,
|
||||
BindableObjectDefinePropertyCall, BindablePropertyAssignmentExpression, BindableStaticAccessExpression,
|
||||
BindableStaticNameExpression, BindableStaticPropertyAssignmentExpression, BindingElement, Block,
|
||||
BreakOrContinueStatement, CallChain, CallExpression, CaseBlock, CaseClause, cast, CatchClause, ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration, CompilerOptions, concatenate, ConditionalExpression, ConditionalTypeNode, 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, getCombinedModifierFlags, getCombinedNodeFlags, getContainingClass,
|
||||
getEffectiveContainerForJSDocTemplateTag, getElementOrPropertyAccessName, getEmitScriptTarget,
|
||||
getEnclosingBlockScopeContainer, getErrorSpanForNode, getEscapedTextOfIdentifierOrLiteral, getExpandoInitializer,
|
||||
getHostSignatureFromJSDoc, getImmediatelyInvokedFunctionExpression, getJSDocTypeTag, getLeftmostAccessExpression,
|
||||
getNameOfDeclaration, getNameOrArgument, getNodeId, getRangesWhere, getRightMostAssignedExpression,
|
||||
getSourceFileOfNode, getSourceTextOfNodeFromSourceFile, getSpanOfTokenAtPosition, getStrictOptionValue,
|
||||
getSymbolNameForPrivateIdentifier, getTextOfIdentifierOrLiteral, getThisContainer, getTokenPosOfNode,
|
||||
hasDynamicName, hasJSDocNodes, hasSyntacticModifier, Identifier, idText, IfStatement, ImportClause,
|
||||
InternalSymbolName, isAliasableExpression, isAmbientModule, isAssignmentExpression, isAssignmentOperator,
|
||||
isAssignmentTarget, isAsyncFunction, isAutoAccessorPropertyDeclaration, isBinaryExpression,
|
||||
isBindableObjectDefinePropertyCall, isBindableStaticAccessExpression, isBindableStaticNameExpression,
|
||||
isBindingPattern, isBlock, isBlockOrCatchScoped, isCallExpression, isClassStaticBlockDeclaration,
|
||||
isConditionalTypeNode, isDeclaration, isDeclarationStatement, isDestructuringAssignment, isDottedName,
|
||||
isElementAccessExpression, isEmptyObjectLiteral, isEntityNameExpression, isEnumConst, isEnumDeclaration,
|
||||
isExportAssignment, isExportDeclaration, isExportsIdentifier, isExportSpecifier, isExpression,
|
||||
isExpressionOfOptionalChainRoot, isExternalModule, isExternalOrCommonJsModule, isForInOrOfStatement,
|
||||
isFunctionDeclaration, isFunctionLike, isFunctionLikeDeclaration, isFunctionLikeOrClassStaticBlockDeclaration,
|
||||
isFunctionSymbol, isGlobalScopeAugmentation, isIdentifier, isIdentifierName, isInJSFile, isInTopLevelContext,
|
||||
isJSDocConstructSignature, isJSDocEnumTag, isJSDocTemplateTag, isJSDocTypeAlias, isJsonSourceFile,
|
||||
isLeftHandSideExpression, isLogicalOrCoalescingAssignmentOperator, isModuleAugmentationExternal, isModuleBlock,
|
||||
isModuleDeclaration, isModuleExportsAccessExpression, isNamedDeclaration, isNamespaceExport, isNonNullExpression,
|
||||
isNullishCoalesce, isObjectLiteralExpression, isObjectLiteralMethod,
|
||||
isObjectLiteralOrClassExpressionMethodOrAccessor, isOmittedExpression, isOptionalChain, isOptionalChainRoot,
|
||||
isOutermostOptionalChain, isParameterDeclaration, isParameterPropertyDeclaration, isParenthesizedExpression,
|
||||
isPartOfTypeQuery, isPrefixUnaryExpression, isPrivateIdentifier, isPrologueDirective,
|
||||
isPropertyAccessEntityNameExpression, isPropertyAccessExpression, isPropertyNameLiteral, isPrototypeAccess,
|
||||
isPushOrUnshiftIdentifier, isRequireCall, isShorthandPropertyAssignment, isSignedNumericLiteral, isSourceFile,
|
||||
isSpecialPropertyDeclaration, isStatement, isStatementButNotDeclaration, isStatic, isString, isStringLiteralLike,
|
||||
isStringOrNumericLiteralLike, isThisInitializedDeclaration, isTypeAliasDeclaration, isTypeOfExpression,
|
||||
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,
|
||||
AccessExpression,
|
||||
ArrayBindingElement,
|
||||
ArrayLiteralExpression,
|
||||
ArrowFunction,
|
||||
AssignmentDeclarationKind,
|
||||
BinaryExpression,
|
||||
BinaryOperatorToken,
|
||||
BindableAccessExpression,
|
||||
BindableObjectDefinePropertyCall,
|
||||
BindablePropertyAssignmentExpression,
|
||||
BindableStaticAccessExpression,
|
||||
BindableStaticNameExpression,
|
||||
BindableStaticPropertyAssignmentExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
BreakOrContinueStatement,
|
||||
CallChain,
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CatchClause,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CompilerOptions,
|
||||
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,
|
||||
declarationNameToString,
|
||||
escapeLeadingUnderscores,
|
||||
every,
|
||||
exportAssignmentIsAlias,
|
||||
findAncestor,
|
||||
forEach,
|
||||
forEachChild,
|
||||
getAssignedExpandoInitializer,
|
||||
getAssignmentDeclarationKind,
|
||||
getAssignmentDeclarationPropertyAccessKind,
|
||||
getCombinedModifierFlags,
|
||||
getCombinedNodeFlags,
|
||||
getContainingClass,
|
||||
getEffectiveContainerForJSDocTemplateTag,
|
||||
getElementOrPropertyAccessName,
|
||||
getEmitScriptTarget,
|
||||
getEnclosingBlockScopeContainer,
|
||||
getErrorSpanForNode,
|
||||
getEscapedTextOfIdentifierOrLiteral,
|
||||
getExpandoInitializer,
|
||||
getHostSignatureFromJSDoc,
|
||||
getImmediatelyInvokedFunctionExpression,
|
||||
getJSDocTypeTag,
|
||||
getLeftmostAccessExpression,
|
||||
getNameOfDeclaration,
|
||||
getNameOrArgument,
|
||||
getNodeId,
|
||||
getRangesWhere,
|
||||
getRightMostAssignedExpression,
|
||||
getSourceFileOfNode,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
getSpanOfTokenAtPosition,
|
||||
getStrictOptionValue,
|
||||
getSymbolNameForPrivateIdentifier,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
getThisContainer,
|
||||
getTokenPosOfNode,
|
||||
hasDynamicName,
|
||||
hasJSDocNodes,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
isAliasableExpression,
|
||||
isAmbientModule,
|
||||
isAssignmentExpression,
|
||||
isAssignmentOperator,
|
||||
isAssignmentTarget,
|
||||
isAsyncFunction,
|
||||
isAutoAccessorPropertyDeclaration,
|
||||
isBinaryExpression,
|
||||
isBindableObjectDefinePropertyCall,
|
||||
isBindableStaticAccessExpression,
|
||||
isBindableStaticNameExpression,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isBlockOrCatchScoped,
|
||||
isCallExpression,
|
||||
isClassStaticBlockDeclaration,
|
||||
isConditionalTypeNode,
|
||||
isDeclaration,
|
||||
isDeclarationStatement,
|
||||
isDestructuringAssignment,
|
||||
isDottedName,
|
||||
isElementAccessExpression,
|
||||
isEmptyObjectLiteral,
|
||||
isEntityNameExpression,
|
||||
isEnumConst,
|
||||
isEnumDeclaration,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExportSpecifier,
|
||||
isExportsIdentifier,
|
||||
isExpression,
|
||||
isExpressionOfOptionalChainRoot,
|
||||
isExternalModule,
|
||||
isExternalOrCommonJsModule,
|
||||
isForInOrOfStatement,
|
||||
isFunctionDeclaration,
|
||||
isFunctionLike,
|
||||
isFunctionLikeDeclaration,
|
||||
isFunctionLikeOrClassStaticBlockDeclaration,
|
||||
isFunctionSymbol,
|
||||
isGlobalScopeAugmentation,
|
||||
isIdentifier,
|
||||
isIdentifierName,
|
||||
isInJSFile,
|
||||
isInTopLevelContext,
|
||||
isJSDocConstructSignature,
|
||||
isJSDocEnumTag,
|
||||
isJSDocTemplateTag,
|
||||
isJSDocTypeAlias,
|
||||
isJsonSourceFile,
|
||||
isLeftHandSideExpression,
|
||||
isLogicalOrCoalescingAssignmentOperator,
|
||||
isModuleAugmentationExternal,
|
||||
isModuleBlock,
|
||||
isModuleDeclaration,
|
||||
isModuleExportsAccessExpression,
|
||||
isNamedDeclaration,
|
||||
isNamespaceExport,
|
||||
isNonNullExpression,
|
||||
isNullishCoalesce,
|
||||
isObjectLiteralExpression,
|
||||
isObjectLiteralMethod,
|
||||
isObjectLiteralOrClassExpressionMethodOrAccessor,
|
||||
isOmittedExpression,
|
||||
isOptionalChain,
|
||||
isOptionalChainRoot,
|
||||
isOutermostOptionalChain,
|
||||
isParameterDeclaration,
|
||||
isParameterPropertyDeclaration,
|
||||
isParenthesizedExpression,
|
||||
isPartOfTypeQuery,
|
||||
isPrefixUnaryExpression,
|
||||
isPrivateIdentifier,
|
||||
isPrologueDirective,
|
||||
isPropertyAccessEntityNameExpression,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyNameLiteral,
|
||||
isPrototypeAccess,
|
||||
isPushOrUnshiftIdentifier,
|
||||
isRequireCall,
|
||||
isShorthandPropertyAssignment,
|
||||
isSignedNumericLiteral,
|
||||
isSourceFile,
|
||||
isSpecialPropertyDeclaration,
|
||||
isStatement,
|
||||
isStatementButNotDeclaration,
|
||||
isStatic,
|
||||
isString,
|
||||
isStringLiteralLike,
|
||||
isStringOrNumericLiteralLike,
|
||||
isThisInitializedDeclaration,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeOfExpression,
|
||||
isVariableDeclaration,
|
||||
isVariableDeclarationInitializedToBareOrAccessedRequire,
|
||||
isVariableStatement,
|
||||
length,
|
||||
nodeHasName,
|
||||
nodeIsMissing,
|
||||
nodeIsPresent,
|
||||
objectAllocator,
|
||||
perfLogger,
|
||||
removeFileExtension,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setValueDeclaration,
|
||||
shouldPreserveConstEnums,
|
||||
skipParentheses,
|
||||
sliceAfter,
|
||||
some,
|
||||
symbolName,
|
||||
tokenToString,
|
||||
tracing,
|
||||
tryCast,
|
||||
tryParsePattern,
|
||||
unescapeLeadingUnderscores,
|
||||
unreachableCodeIsError,
|
||||
unusedLabelIsError,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,19 +1,85 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
addRange, AffectedFileResult, 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,
|
||||
DiagnosticCategory, DiagnosticMessageChain, DiagnosticRelatedInformation, DiagnosticWithLocation,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram, EmitOnly, EmitResult, emitSkippedWithNoDiagnostics, emptyArray,
|
||||
ensurePathIsNonModuleName, filterSemanticDiagnostics, forEach, forEachEntry, forEachKey, generateDjb2Hash,
|
||||
GetCanonicalFileName, getDirectoryPath, getEmitDeclarations, getNormalizedAbsolutePath, getOptionsNameMap,
|
||||
getOwnKeys, getRelativePathFromDirectory, getTsBuildInfoEmitOutputFilePath, handleNoEmitOptions, HostForComputeHash, isArray,
|
||||
isDeclarationFileName, isJsonSourceFile, isNumber, isString, map, mapDefined, maybeBind, noop, notImplemented,
|
||||
outFile, Path, Program, ProjectReference, ReadBuildProgramHost, ReadonlyCollection,
|
||||
returnFalse, returnUndefined, SemanticDiagnosticsBuilderProgram, skipTypeChecking, some, SourceFile,
|
||||
sourceFileMayBeEmitted, SourceMapEmitResult, toPath, tryAddToSet, WriteFileCallback, WriteFileCallbackData,
|
||||
AffectedFileResult,
|
||||
BuildInfo,
|
||||
BuilderProgram,
|
||||
BuilderProgramHost,
|
||||
BuilderState,
|
||||
BundleBuildInfo,
|
||||
CancellationToken,
|
||||
CommandLineOption,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CompilerOptionsValue,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticRelatedInformation,
|
||||
DiagnosticWithLocation,
|
||||
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,
|
||||
filterSemanticDiagnostics,
|
||||
forEach,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
generateDjb2Hash,
|
||||
getDirectoryPath,
|
||||
getEmitDeclarations,
|
||||
getNormalizedAbsolutePath,
|
||||
getOptionsNameMap,
|
||||
getOwnKeys,
|
||||
getRelativePathFromDirectory,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
handleNoEmitOptions,
|
||||
isArray,
|
||||
isDeclarationFileName,
|
||||
isJsonSourceFile,
|
||||
isNumber,
|
||||
isString,
|
||||
map,
|
||||
mapDefined,
|
||||
maybeBind,
|
||||
noop,
|
||||
notImplemented,
|
||||
outFile,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
skipTypeChecking,
|
||||
some,
|
||||
sourceFileMayBeEmitted,
|
||||
toPath,
|
||||
tryAddToSet,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,8 +1,21 @@
|
||||
import {
|
||||
BuilderProgramKind, CancellationToken, CompilerHost, CompilerOptions, createBuilderProgram,
|
||||
createRedirectedBuilderProgram, CustomTransformers, Diagnostic, DiagnosticWithLocation, EmitResult,
|
||||
getBuilderCreationParameters, Program, ProjectReference, ReusableBuilderProgramState, SavedBuildProgramEmitState,
|
||||
SourceFile, WriteFileCallback,
|
||||
BuilderProgramKind,
|
||||
CancellationToken,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CustomTransformers,
|
||||
Diagnostic,
|
||||
DiagnosticWithLocation,
|
||||
EmitResult,
|
||||
Program,
|
||||
ProjectReference,
|
||||
ReusableBuilderProgramState,
|
||||
SavedBuildProgramEmitState,
|
||||
SourceFile,
|
||||
WriteFileCallback,
|
||||
createBuilderProgram,
|
||||
createRedirectedBuilderProgram,
|
||||
getBuilderCreationParameters,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export type AffectedFileResult<T> = { result: T; affected: SourceFile | Program; } | undefined;
|
||||
|
||||
@ -1,11 +1,38 @@
|
||||
import {
|
||||
arrayFrom, CancellationToken, computeSignatureWithDiagnostics, createGetCanonicalFileName, CustomTransformers, Debug, EmitOutput, emptyArray,
|
||||
ExportedModulesFromDeclarationEmit, GetCanonicalFileName, getDirectoryPath, getSourceFileOfNode,
|
||||
CancellationToken,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
EmitOutput,
|
||||
ExportedModulesFromDeclarationEmit,
|
||||
GetCanonicalFileName,
|
||||
HostForComputeHash,
|
||||
isDeclarationFileName, isExternalOrCommonJsModule, isGlobalScopeAugmentation, isJsonSourceFile,
|
||||
isModuleWithStringLiteralName, isStringLiteral, mapDefined, mapDefinedIterator, ModuleDeclaration,
|
||||
ModuleKind, outFile, OutputFile, Path, Program, ResolutionMode, some, SourceFile, StringLiteralLike, Symbol,
|
||||
toPath, TypeChecker,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
OutputFile,
|
||||
Path,
|
||||
Program,
|
||||
ResolutionMode,
|
||||
SourceFile,
|
||||
StringLiteralLike,
|
||||
Symbol,
|
||||
TypeChecker,
|
||||
arrayFrom,
|
||||
computeSignatureWithDiagnostics,
|
||||
createGetCanonicalFileName,
|
||||
emptyArray,
|
||||
getDirectoryPath,
|
||||
getSourceFileOfNode,
|
||||
isDeclarationFileName,
|
||||
isExternalOrCommonJsModule,
|
||||
isGlobalScopeAugmentation,
|
||||
isJsonSourceFile,
|
||||
isModuleWithStringLiteralName,
|
||||
isStringLiteral,
|
||||
mapDefined,
|
||||
mapDefinedIterator,
|
||||
outFile,
|
||||
some,
|
||||
toPath,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
import { Diagnostic, WriteFileCallbackData } from "./_namespaces/ts";
|
||||
import {
|
||||
Diagnostic,
|
||||
WriteFileCallbackData,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface EmitOutput {
|
||||
outputFiles: OutputFile[];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +1,123 @@
|
||||
import {
|
||||
AlternateModeDiagnostics, append, arrayFrom, ArrayLiteralExpression, arrayToMap, assign, BuildOptions,
|
||||
changeExtension, CharacterCodes, combinePaths, CommandLineOption, CommandLineOptionOfCustomType,
|
||||
CommandLineOptionOfListType, CompilerOptions, CompilerOptionsValue, ConfigFileSpecs, containsPath,
|
||||
convertToRelativePath, createCompilerDiagnostic, createDiagnosticForNodeInSourceFile, createGetCanonicalFileName,
|
||||
Debug, Diagnostic, DiagnosticMessage, Diagnostics, DidYouMeanOptionsDiagnostics, directorySeparator, emptyArray,
|
||||
endsWith, ensureTrailingDirectorySeparator, every, Expression, extend, Extension, FileExtensionInfo,
|
||||
fileExtensionIs, fileExtensionIsOneOf, filter, filterMutate, find, findIndex, firstDefined, flatten, forEach,
|
||||
forEachEntry, getBaseFileName, getDirectoryPath, getEntries, getFileMatcherPatterns, getLocaleSpecificMessage,
|
||||
getNormalizedAbsolutePath, getRegexFromPattern, getRegularExpressionForWildcard, getRegularExpressionsForWildcards,
|
||||
getRelativePathFromFile, getSpellingSuggestion, getSupportedExtensions,
|
||||
getSupportedExtensionsWithJsonIfResolveJsonModule, getTextOfPropertyName, getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue, hasExtension, hasProperty, ImportsNotUsedAsValues, isArray,
|
||||
isArrayLiteralExpression, isComputedNonLiteralName, isImplicitGlob, isObjectLiteralExpression, isRootedDiskPath,
|
||||
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,
|
||||
AlternateModeDiagnostics,
|
||||
ArrayLiteralExpression,
|
||||
BuildOptions,
|
||||
CharacterCodes,
|
||||
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,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
extend,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
filterMutate,
|
||||
find,
|
||||
findIndex,
|
||||
firstDefined,
|
||||
flatten,
|
||||
forEach,
|
||||
forEachEntry,
|
||||
getBaseFileName,
|
||||
getDirectoryPath,
|
||||
getEntries,
|
||||
getFileMatcherPatterns,
|
||||
getLocaleSpecificMessage,
|
||||
getNormalizedAbsolutePath,
|
||||
getRegexFromPattern,
|
||||
getRegularExpressionForWildcard,
|
||||
getRegularExpressionsForWildcards,
|
||||
getRelativePathFromFile,
|
||||
getSpellingSuggestion,
|
||||
getSupportedExtensions,
|
||||
getSupportedExtensionsWithJsonIfResolveJsonModule,
|
||||
getTextOfPropertyName,
|
||||
getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue,
|
||||
hasExtension,
|
||||
hasProperty,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isComputedNonLiteralName,
|
||||
isImplicitGlob,
|
||||
isObjectLiteralExpression,
|
||||
isRootedDiskPath,
|
||||
isString,
|
||||
isStringDoubleQuoted,
|
||||
isStringLiteral,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
mapIterator,
|
||||
nodeModuleNameResolver,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
parseJsonText,
|
||||
removeTrailingDirectorySeparator,
|
||||
returnTrue,
|
||||
startsWith,
|
||||
sys,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
tracing,
|
||||
trimString,
|
||||
unescapeLeadingUnderscores,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,7 +1,18 @@
|
||||
import {
|
||||
__String, CharacterCodes, Comparer, Comparison, Debug, EqualityComparer, isWhiteSpaceLike,
|
||||
MapLike, Push, Queue, SortedArray, SortedReadonlyArray, TextSpan,
|
||||
CharacterCodes,
|
||||
Comparer,
|
||||
Comparison,
|
||||
Debug,
|
||||
EqualityComparer,
|
||||
MapLike,
|
||||
Push,
|
||||
Queue,
|
||||
SortedArray,
|
||||
SortedReadonlyArray,
|
||||
TextSpan,
|
||||
UnderscoreEscapedMap,
|
||||
__String,
|
||||
isWhiteSpaceLike,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,19 +1,95 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AnyFunction, AssertionLevel, BigIntLiteralType, CheckMode, compareValues, EmitFlags, every, FlowFlags, FlowLabel, FlowNode,
|
||||
FlowNodeBase, FlowSwitchClause, getEffectiveModifierFlagsNoCache, getEmitFlags, getOwnKeys,
|
||||
getParseTreeNode, getSourceFileOfNode, getSourceTextOfNodeFromSourceFile, hasProperty, idText, IntrinsicType,
|
||||
isArrayTypeNode, isBigIntLiteral, isCallSignatureDeclaration, isConditionalTypeNode, isConstructorDeclaration,
|
||||
isConstructorTypeNode, isConstructSignatureDeclaration, isDefaultClause, isFunctionTypeNode, isGeneratedIdentifier,
|
||||
isGetAccessorDeclaration, isIdentifier, isImportTypeNode, isIndexedAccessTypeNode, isIndexSignatureDeclaration,
|
||||
isInferTypeNode, isIntersectionTypeNode, isLiteralTypeNode, isMappedTypeNode, isNamedTupleMember, isNumericLiteral,
|
||||
isOptionalTypeNode, isParameter, isParenthesizedTypeNode, isParseTreeNode, isPrivateIdentifier, isRestTypeNode,
|
||||
isSetAccessorDeclaration, isStringLiteral, isThisTypeNode, isTupleTypeNode, isTypeLiteralNode, isTypeOperatorNode,
|
||||
isTypeParameterDeclaration, isTypePredicateNode, 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,
|
||||
AnyFunction,
|
||||
AssertionLevel,
|
||||
BigIntLiteralType,
|
||||
CheckMode,
|
||||
EmitFlags,
|
||||
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,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
hasProperty,
|
||||
idText,
|
||||
isArrayTypeNode,
|
||||
isBigIntLiteral,
|
||||
isCallSignatureDeclaration,
|
||||
isConditionalTypeNode,
|
||||
isConstructSignatureDeclaration,
|
||||
isConstructorDeclaration,
|
||||
isConstructorTypeNode,
|
||||
isDefaultClause,
|
||||
isFunctionTypeNode,
|
||||
isGeneratedIdentifier,
|
||||
isGetAccessorDeclaration,
|
||||
isIdentifier,
|
||||
isImportTypeNode,
|
||||
isIndexSignatureDeclaration,
|
||||
isIndexedAccessTypeNode,
|
||||
isInferTypeNode,
|
||||
isIntersectionTypeNode,
|
||||
isLiteralTypeNode,
|
||||
isMappedTypeNode,
|
||||
isNamedTupleMember,
|
||||
isNumericLiteral,
|
||||
isOptionalTypeNode,
|
||||
isParameter,
|
||||
isParenthesizedTypeNode,
|
||||
isParseTreeNode,
|
||||
isPrivateIdentifier,
|
||||
isRestTypeNode,
|
||||
isSetAccessorDeclaration,
|
||||
isStringLiteral,
|
||||
isThisTypeNode,
|
||||
isTupleTypeNode,
|
||||
isTypeLiteralNode,
|
||||
isTypeOperatorNode,
|
||||
isTypeParameterDeclaration,
|
||||
isTypePredicateNode,
|
||||
isTypeQueryNode,
|
||||
isTypeReferenceNode,
|
||||
isUnionTypeNode,
|
||||
map,
|
||||
nodeIsSynthesized,
|
||||
noop,
|
||||
objectAllocator,
|
||||
stableSort,
|
||||
symbolName,
|
||||
unescapeLeadingUnderscores,
|
||||
zipWith,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,83 +1,447 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AccessorDeclaration, ArrayBindingPattern, ArrayLiteralExpression, arrayToMap, ArrayTypeNode, ArrowFunction,
|
||||
AsExpression, AssertClause, AssertEntry, AwaitExpression, base64encode, BigIntLiteral, BinaryExpression,
|
||||
BinaryOperatorToken, BindingElement, BindingPattern, Block, BlockLike, BreakStatement, BuildInfo, Bundle,
|
||||
BundleBuildInfo, BundleFileInfo, BundleFileSectionKind, BundleFileTextLike, BundleFileTextLikeKind, CallExpression,
|
||||
CallSignatureDeclaration, 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, ConstructorDeclaration, ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration, contains, ContinueStatement, createBinaryExpressionTrampoline,
|
||||
createDiagnosticCollection, createGetCanonicalFileName, createInputFilesWithFileTexts, createMultiMap,
|
||||
createPrependNodes, createSourceMapGenerator, createTextWriter, CustomTransformers, Debug, DebuggerStatement,
|
||||
DeclarationName, 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, Expression, ExpressionStatement, ExpressionWithTypeArguments,
|
||||
Extension, ExternalModuleReference, factory, fileExtensionIs, fileExtensionIsOneOf, FileReference, filter,
|
||||
findIndex, firstOrUndefined, forEach, forEachChild, forEachLeadingCommentRange, forEachTrailingCommentRange,
|
||||
ForInOrOfStatement, ForInStatement, formatGeneratedName, formatGeneratedNamePart, ForOfStatement, ForStatement,
|
||||
FunctionDeclaration, FunctionExpression, FunctionLikeDeclaration, FunctionTypeNode, GeneratedIdentifier,
|
||||
GeneratedIdentifierFlags, GeneratedNamePart, GeneratedPrivateIdentifier, getAreDeclarationMapsEnabled,
|
||||
getBaseFileName, GetCanonicalFileName, getCommentRange, getConstantValue, getContainingNodeArray,
|
||||
getDeclarationEmitExtensionForPath, getDeclarationEmitOutputFilePath, getDirectoryPath, getEmitDeclarations,
|
||||
getEmitFlags, getEmitHelpers, getEmitModuleKind, getExternalHelpersModuleName, getExternalModuleName,
|
||||
getLeadingCommentRanges, getLineAndCharacterOfPosition, getLinesBetweenPositionAndNextNonWhitespaceCharacter,
|
||||
getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter, getLinesBetweenRangeEndAndRangeStart, getLineStarts,
|
||||
getLiteralText, GetLiteralTextFlags, getNewLineCharacter, getNodeForGeneratedName, getNodeId,
|
||||
getNormalizedAbsolutePath, getOriginalNode, getOwnEmitOutputFilePath, getParseTreeNode,
|
||||
getRelativePathFromDirectory, getRelativePathToDirectoryOrUrl, getRootLength, getShebang, getSnippetElement,
|
||||
getSourceFileOfNode, getSourceFilePathInNewDir, getSourceFilesToEmit, getSourceMapRange,
|
||||
getSourceTextOfNodeFromSourceFile, getStartsOnNewLine, getSyntheticLeadingComments, getSyntheticTrailingComments,
|
||||
getTextOfJSDocComment, getTrailingCommentRanges, getTrailingSemicolonDeferringWriter, getTransformers, getTypeNode,
|
||||
guessIndentation, hasRecordedExternalHelpers, HeritageClause, Identifier, idText, IfStatement, ImportClause,
|
||||
ImportDeclaration, ImportEqualsDeclaration, ImportOrExportSpecifier, ImportSpecifier, ImportTypeNode,
|
||||
IndexedAccessTypeNode, IndexSignatureDeclaration, InferTypeNode, InterfaceDeclaration, IntersectionTypeNode,
|
||||
isAccessExpression, isArray, isArrowFunction, isBinaryExpression, isBindingPattern, isBlock, isBundle,
|
||||
isBundleFileTextLike, isDeclaration, isDeclarationFileName, isDecorator, isEmptyStatement, isExportAssignment,
|
||||
isExportSpecifier, isExpression, isFunctionLike, isGeneratedIdentifier, isGeneratedPrivateIdentifier, isIdentifier,
|
||||
isIncrementalCompilation, isInJsonFile, isInternalDeclaration, isJSDocLikeText, isJsonSourceFile,
|
||||
isJsxClosingElement, isJsxOpeningElement, isKeyword, isLet, isLiteralExpression, isMemberName, isModifier,
|
||||
isModuleDeclaration, isNodeDescendantOf, isNumericLiteral, isParenthesizedExpression, isPartiallyEmittedExpression,
|
||||
isPinnedComment, isPrivateIdentifier, isPrologueDirective, isRecognizedTripleSlashComment, isSourceFile,
|
||||
isSourceFileNotJson, isStringLiteral, isTemplateLiteralKind, isTokenKind, isTypeParameterDeclaration,
|
||||
isUnparsedNode, isUnparsedPrepend, 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,
|
||||
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, rangeStartPositionsAreOnSameLine, 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,
|
||||
AccessorDeclaration,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
AssertEntry,
|
||||
AwaitExpression,
|
||||
BigIntLiteral,
|
||||
BinaryExpression,
|
||||
BinaryOperatorToken,
|
||||
BindingElement,
|
||||
BindingPattern,
|
||||
Block,
|
||||
BlockLike,
|
||||
BreakStatement,
|
||||
BuildInfo,
|
||||
Bundle,
|
||||
BundleBuildInfo,
|
||||
BundleFileInfo,
|
||||
BundleFileSectionKind,
|
||||
BundleFileTextLike,
|
||||
BundleFileTextLikeKind,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
CharacterCodes,
|
||||
ClassDeclaration,
|
||||
ClassExpression,
|
||||
ClassStaticBlockDeclaration,
|
||||
CommaListExpression,
|
||||
CommentRange,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
ComputedPropertyName,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ContinueStatement,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DebuggerStatement,
|
||||
DeclarationName,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
DoStatement,
|
||||
DotToken,
|
||||
ElementAccessExpression,
|
||||
EmitFileNames,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EmitHost,
|
||||
EmitOnly,
|
||||
EmitResolver,
|
||||
EmitResult,
|
||||
EmitTextWriter,
|
||||
EmitTransformers,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
Extension,
|
||||
ExternalModuleReference,
|
||||
FileReference,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
FunctionTypeNode,
|
||||
GeneratedIdentifier,
|
||||
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,
|
||||
getCommentRange,
|
||||
getConstantValue,
|
||||
getContainingNodeArray,
|
||||
getDeclarationEmitExtensionForPath,
|
||||
getDeclarationEmitOutputFilePath,
|
||||
getDirectoryPath,
|
||||
getEmitDeclarations,
|
||||
getEmitFlags,
|
||||
getEmitHelpers,
|
||||
getEmitModuleKind,
|
||||
getExternalHelpersModuleName,
|
||||
getExternalModuleName,
|
||||
getLeadingCommentRanges,
|
||||
getLineAndCharacterOfPosition,
|
||||
getLineStarts,
|
||||
getLinesBetweenPositionAndNextNonWhitespaceCharacter,
|
||||
getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter,
|
||||
getLinesBetweenRangeEndAndRangeStart,
|
||||
getLiteralText,
|
||||
getNewLineCharacter,
|
||||
getNodeForGeneratedName,
|
||||
getNodeId,
|
||||
getNormalizedAbsolutePath,
|
||||
getOriginalNode,
|
||||
getOwnEmitOutputFilePath,
|
||||
getParseTreeNode,
|
||||
getRelativePathFromDirectory,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
getRootLength,
|
||||
getShebang,
|
||||
getSnippetElement,
|
||||
getSourceFileOfNode,
|
||||
getSourceFilePathInNewDir,
|
||||
getSourceFilesToEmit,
|
||||
getSourceMapRange,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
getStartsOnNewLine,
|
||||
getSyntheticLeadingComments,
|
||||
getSyntheticTrailingComments,
|
||||
getTextOfJSDocComment,
|
||||
getTrailingCommentRanges,
|
||||
getTrailingSemicolonDeferringWriter,
|
||||
getTransformers,
|
||||
getTypeNode,
|
||||
guessIndentation,
|
||||
hasRecordedExternalHelpers,
|
||||
idText,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
isArrowFunction,
|
||||
isBinaryExpression,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isBundle,
|
||||
isBundleFileTextLike,
|
||||
isDeclaration,
|
||||
isDeclarationFileName,
|
||||
isDecorator,
|
||||
isEmptyStatement,
|
||||
isExportAssignment,
|
||||
isExportSpecifier,
|
||||
isExpression,
|
||||
isFunctionLike,
|
||||
isGeneratedIdentifier,
|
||||
isGeneratedPrivateIdentifier,
|
||||
isIdentifier,
|
||||
isInJsonFile,
|
||||
isIncrementalCompilation,
|
||||
isInternalDeclaration,
|
||||
isJSDocLikeText,
|
||||
isJsonSourceFile,
|
||||
isJsxClosingElement,
|
||||
isJsxOpeningElement,
|
||||
isKeyword,
|
||||
isLet,
|
||||
isLiteralExpression,
|
||||
isMemberName,
|
||||
isModifier,
|
||||
isModuleDeclaration,
|
||||
isNodeDescendantOf,
|
||||
isNumericLiteral,
|
||||
isParenthesizedExpression,
|
||||
isPartiallyEmittedExpression,
|
||||
isPinnedComment,
|
||||
isPrivateIdentifier,
|
||||
isPrologueDirective,
|
||||
isRecognizedTripleSlashComment,
|
||||
isSourceFile,
|
||||
isSourceFileNotJson,
|
||||
isStringLiteral,
|
||||
isTemplateLiteralKind,
|
||||
isTokenKind,
|
||||
isTypeParameterDeclaration,
|
||||
isUnparsedNode,
|
||||
isUnparsedPrepend,
|
||||
isUnparsedSource,
|
||||
isVarConst,
|
||||
isVariableStatement,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
length,
|
||||
makeIdentifierFromModuleName,
|
||||
maybeBind,
|
||||
memoize,
|
||||
noEmitNotification,
|
||||
noEmitSubstitution,
|
||||
nodeIsSynthesized,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
notImplemented,
|
||||
outFile,
|
||||
positionIsSynthesized,
|
||||
positionsAreOnSameLine,
|
||||
rangeEndIsOnSameLineAsRangeStart,
|
||||
rangeEndPositionsAreOnSameLine,
|
||||
rangeIsOnSingleLine,
|
||||
rangeStartPositionsAreOnSameLine,
|
||||
readJsonOrUndefined,
|
||||
removeFileExtension,
|
||||
resolvePath,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
setEachParent,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
singleOrUndefined,
|
||||
skipPartiallyEmittedExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
stableSort,
|
||||
stringContains,
|
||||
supportedJSExtensionsFlat,
|
||||
sys,
|
||||
tokenToString,
|
||||
tracing,
|
||||
transformNodes,
|
||||
tryParseRawSourceMap,
|
||||
writeCommentRange,
|
||||
writeFile,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import { Node, objectAllocator, SyntaxKind } from "../_namespaces/ts";
|
||||
import {
|
||||
Node,
|
||||
SyntaxKind,
|
||||
objectAllocator,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
* A `BaseNodeFactory` is an abstraction over an `ObjectAllocator` that handles caching `Node` constructors
|
||||
|
||||
@ -1,10 +1,37 @@
|
||||
import {
|
||||
__String, ArrayLiteralExpression, arrayToMap, BindingOrAssignmentElement, Block, compareValues, Comparison,
|
||||
createExpressionFromEntityName, Debug, EmitFlags, EmitHelper, EmitHelperUniqueNameCallback, EmitNode, EntityName,
|
||||
Expression, FunctionExpression, GeneratedIdentifierFlags, getEmitFlags, getEmitScriptTarget,
|
||||
getPropertyNameOfBindingOrAssignmentElement, Identifier, isCallExpression, isComputedPropertyName, isIdentifier,
|
||||
memoize, PrivateIdentifierKind, ScriptTarget, setEmitFlags, setTextRange, SyntaxKind, TextRange,
|
||||
TransformationContext, UnscopedEmitHelper,
|
||||
ArrayLiteralExpression,
|
||||
BindingOrAssignmentElement,
|
||||
Block,
|
||||
Comparison,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitHelperUniqueNameCallback,
|
||||
EmitNode,
|
||||
EntityName,
|
||||
Expression,
|
||||
FunctionExpression,
|
||||
GeneratedIdentifierFlags,
|
||||
Identifier,
|
||||
PrivateIdentifierKind,
|
||||
ScriptTarget,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
TransformationContext,
|
||||
UnscopedEmitHelper,
|
||||
__String,
|
||||
arrayToMap,
|
||||
compareValues,
|
||||
createExpressionFromEntityName,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
getPropertyNameOfBindingOrAssignmentElement,
|
||||
isCallExpression,
|
||||
isComputedPropertyName,
|
||||
isIdentifier,
|
||||
memoize,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,7 +1,24 @@
|
||||
import {
|
||||
AccessExpression, append, appendIfUnique, Debug, EmitFlags, EmitHelper, EmitNode, getParseTreeNode,
|
||||
getSourceFileOfNode, isParseTreeNode, Node, orderedRemoveItem, SnippetElement, some, SourceFile, SourceMapRange,
|
||||
SyntaxKind, SynthesizedComment, TextRange, TypeNode,
|
||||
AccessExpression,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitNode,
|
||||
Node,
|
||||
SnippetElement,
|
||||
SourceFile,
|
||||
SourceMapRange,
|
||||
SyntaxKind,
|
||||
SynthesizedComment,
|
||||
TextRange,
|
||||
TypeNode,
|
||||
append,
|
||||
appendIfUnique,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
isParseTreeNode,
|
||||
orderedRemoveItem,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,10 +1,36 @@
|
||||
import {
|
||||
ArrayBindingOrAssignmentElement, ArrayBindingOrAssignmentPattern, AssignmentPattern,
|
||||
BindingOrAssignmentElementTarget, BindingOrAssignmentPattern, Block, cast, ConciseBody, Debug, Expression,
|
||||
FunctionDeclaration, getStartsOnNewLine, isArrayBindingPattern, isArrayLiteralExpression, isBindingElement,
|
||||
isBindingPattern, isBlock, isExpression, isIdentifier, isObjectBindingPattern, isObjectLiteralElementLike,
|
||||
isObjectLiteralExpression, map, NodeConverters, NodeFactory, notImplemented, ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern, setOriginalNode, setStartsOnNewLine, setTextRange, SyntaxKind,
|
||||
ArrayBindingOrAssignmentElement,
|
||||
ArrayBindingOrAssignmentPattern,
|
||||
AssignmentPattern,
|
||||
BindingOrAssignmentElementTarget,
|
||||
BindingOrAssignmentPattern,
|
||||
Block,
|
||||
ConciseBody,
|
||||
Debug,
|
||||
Expression,
|
||||
FunctionDeclaration,
|
||||
NodeConverters,
|
||||
NodeFactory,
|
||||
ObjectBindingOrAssignmentElement,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
SyntaxKind,
|
||||
cast,
|
||||
getStartsOnNewLine,
|
||||
isArrayBindingPattern,
|
||||
isArrayLiteralExpression,
|
||||
isBindingElement,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isExpression,
|
||||
isIdentifier,
|
||||
isObjectBindingPattern,
|
||||
isObjectLiteralElementLike,
|
||||
isObjectLiteralExpression,
|
||||
map,
|
||||
notImplemented,
|
||||
setOriginalNode,
|
||||
setStartsOnNewLine,
|
||||
setTextRange,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,83 +1,471 @@
|
||||
import {
|
||||
addRange, append, appendIfUnique, ArrayBindingElement, ArrayBindingPattern, ArrayLiteralExpression, ArrayTypeNode,
|
||||
ArrowFunction, AsExpression, AssertClause, AssertEntry, AssertionKey, AssertsKeyword, AssignmentPattern,
|
||||
AsteriskToken, AwaitExpression, AwaitKeyword, BaseNodeFactory, BigIntLiteral, BinaryExpression, BinaryOperator,
|
||||
BinaryOperatorToken, BindingElement, BindingName, BindingPattern, Block, BooleanLiteral, BreakStatement, BuildInfo,
|
||||
Bundle, BundleFileHasNoDefaultLib, BundleFileInfo, BundleFileReference, BundleFileSectionKind, CallBinding,
|
||||
CallChain, CallExpression, CallSignatureDeclaration, canHaveModifiers, CaseBlock, CaseClause, CaseOrDefaultClause,
|
||||
cast, CatchClause, ClassDeclaration, ClassElement, ClassExpression, ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration, ColonToken, CommaListExpression, CompilerHost, CompilerOptions, ComputedPropertyName,
|
||||
ConciseBody, ConditionalExpression, ConditionalTypeNode, ConstructorDeclaration, ConstructorTypeNode,
|
||||
ConstructSignatureDeclaration, ContinueStatement, createBaseNodeFactory, createNodeConverters,
|
||||
createParenthesizerRules, createScanner, Debug, DebuggerStatement, Declaration, DeclarationName, Decorator,
|
||||
DefaultClause, DeleteExpression, DoStatement, DotDotDotToken, ElementAccessChain, ElementAccessExpression,
|
||||
EmitFlags, EmitNode, emptyArray, EmptyStatement, EndOfDeclarationMarker, EndOfFileToken, EntityName,
|
||||
EnumDeclaration, EnumMember, EqualsGreaterThanToken, escapeLeadingUnderscores, every, ExclamationToken,
|
||||
ExportAssignment, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, ExpressionWithTypeArguments,
|
||||
ExternalModuleReference, FalseLiteral, FileReference, findUseStrictPrologue, forEach, ForInitializer,
|
||||
ForInStatement, formatGeneratedName, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression,
|
||||
FunctionLikeDeclaration, FunctionTypeNode, GeneratedIdentifier, GeneratedIdentifierFlags, GeneratedNamePart,
|
||||
GetAccessorDeclaration, getAllUnscopedEmitHelpers, getBuildInfo, getCommentRange,
|
||||
getElementsOfBindingOrAssignmentPattern, getEmitFlags, getJSDocTypeAliasName, getLineAndCharacterOfPosition,
|
||||
getNameOfDeclaration, getNodeId, getSourceMapRange, getSyntheticLeadingComments, getSyntheticTrailingComments,
|
||||
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, isAssignmentPattern, isBinaryExpression,
|
||||
isCallChain, isClassDeclaration, isClassExpression, isCommaListExpression, isCommaToken, isComputedPropertyName,
|
||||
isConstructorDeclaration, isConstructorTypeNode, isCustomPrologue, isElementAccessChain, isElementAccessExpression,
|
||||
isEnumDeclaration, isExclamationToken, isExportAssignment, isExportDeclaration, isExternalModuleReference,
|
||||
isFunctionDeclaration, isFunctionExpression, isGeneratedIdentifier, isGetAccessorDeclaration, isHoistedFunction,
|
||||
isHoistedVariableStatement, isIdentifier, isImportDeclaration, isImportEqualsDeclaration, isImportKeyword,
|
||||
isIndexSignatureDeclaration, isInterfaceDeclaration, isLabeledStatement, isLocalName,
|
||||
isLogicalOrCoalescingAssignmentOperator, isMemberName, isMethodDeclaration, isMethodSignature, isModuleDeclaration,
|
||||
isNamedDeclaration, isNodeArray, isNodeKind, isNonNullChain, isNotEmittedStatement, isObjectLiteralExpression,
|
||||
isOmittedExpression, isOuterExpression, isParameter, isParenthesizedExpression, isParseTreeNode,
|
||||
isPrivateIdentifier, isPrologueDirective, isPropertyAccessChain, isPropertyAccessExpression, isPropertyDeclaration,
|
||||
isPropertyName, isPropertySignature, isQuestionToken, isSetAccessorDeclaration, isSourceFile, isStatement,
|
||||
isStatementOrBlock, isString, isStringLiteral, isSuperKeyword, isSuperProperty, isThisIdentifier,
|
||||
isTypeAliasDeclaration, 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,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
AssertEntry,
|
||||
AssertionKey,
|
||||
AssertsKeyword,
|
||||
AssignmentPattern,
|
||||
AsteriskToken,
|
||||
AwaitExpression,
|
||||
AwaitKeyword,
|
||||
BaseNodeFactory,
|
||||
BigIntLiteral,
|
||||
BinaryExpression,
|
||||
BinaryOperator,
|
||||
BinaryOperatorToken,
|
||||
BindingElement,
|
||||
BindingName,
|
||||
BindingPattern,
|
||||
Block,
|
||||
BooleanLiteral,
|
||||
BreakStatement,
|
||||
BuildInfo,
|
||||
Bundle,
|
||||
BundleFileHasNoDefaultLib,
|
||||
BundleFileInfo,
|
||||
BundleFileReference,
|
||||
BundleFileSectionKind,
|
||||
CallBinding,
|
||||
CallChain,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
ColonToken,
|
||||
CommaListExpression,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
ComputedPropertyName,
|
||||
ConciseBody,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ContinueStatement,
|
||||
Debug,
|
||||
DebuggerStatement,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
DoStatement,
|
||||
DotDotDotToken,
|
||||
ElementAccessChain,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitNode,
|
||||
EmptyStatement,
|
||||
EndOfDeclarationMarker,
|
||||
EndOfFileToken,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
EqualsGreaterThanToken,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
ExternalModuleReference,
|
||||
FalseLiteral,
|
||||
FileReference,
|
||||
ForInStatement,
|
||||
ForInitializer,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionLikeDeclaration,
|
||||
FunctionTypeNode,
|
||||
GeneratedIdentifier,
|
||||
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,
|
||||
getElementsOfBindingOrAssignmentPattern,
|
||||
getEmitFlags,
|
||||
getJSDocTypeAliasName,
|
||||
getLineAndCharacterOfPosition,
|
||||
getNameOfDeclaration,
|
||||
getNodeId,
|
||||
getSourceMapRange,
|
||||
getSyntheticLeadingComments,
|
||||
getSyntheticTrailingComments,
|
||||
getTargetOfBindingOrAssignmentElement,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasInvalidEscape,
|
||||
hasProperty,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
isAssignmentPattern,
|
||||
isBinaryExpression,
|
||||
isCallChain,
|
||||
isClassDeclaration,
|
||||
isClassExpression,
|
||||
isCommaListExpression,
|
||||
isCommaToken,
|
||||
isComputedPropertyName,
|
||||
isConstructorDeclaration,
|
||||
isConstructorTypeNode,
|
||||
isCustomPrologue,
|
||||
isElementAccessChain,
|
||||
isElementAccessExpression,
|
||||
isEnumDeclaration,
|
||||
isExclamationToken,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExternalModuleReference,
|
||||
isFunctionDeclaration,
|
||||
isFunctionExpression,
|
||||
isGeneratedIdentifier,
|
||||
isGetAccessorDeclaration,
|
||||
isHoistedFunction,
|
||||
isHoistedVariableStatement,
|
||||
isIdentifier,
|
||||
isImportDeclaration,
|
||||
isImportEqualsDeclaration,
|
||||
isImportKeyword,
|
||||
isIndexSignatureDeclaration,
|
||||
isInterfaceDeclaration,
|
||||
isLabeledStatement,
|
||||
isLocalName,
|
||||
isLogicalOrCoalescingAssignmentOperator,
|
||||
isMemberName,
|
||||
isMethodDeclaration,
|
||||
isMethodSignature,
|
||||
isModuleDeclaration,
|
||||
isNamedDeclaration,
|
||||
isNodeArray,
|
||||
isNodeKind,
|
||||
isNonNullChain,
|
||||
isNotEmittedStatement,
|
||||
isObjectLiteralExpression,
|
||||
isOmittedExpression,
|
||||
isOuterExpression,
|
||||
isParameter,
|
||||
isParenthesizedExpression,
|
||||
isParseTreeNode,
|
||||
isPrivateIdentifier,
|
||||
isPrologueDirective,
|
||||
isPropertyAccessChain,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyDeclaration,
|
||||
isPropertyName,
|
||||
isPropertySignature,
|
||||
isQuestionToken,
|
||||
isSetAccessorDeclaration,
|
||||
isSourceFile,
|
||||
isStatement,
|
||||
isStatementOrBlock,
|
||||
isString,
|
||||
isStringLiteral,
|
||||
isSuperKeyword,
|
||||
isSuperProperty,
|
||||
isThisIdentifier,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
isVariableStatement,
|
||||
lastOrUndefined,
|
||||
map,
|
||||
memoize,
|
||||
memoizeOne,
|
||||
modifiersToFlags,
|
||||
nodeIsSynthesized,
|
||||
nullNodeConverters,
|
||||
nullParenthesizerRules,
|
||||
objectAllocator,
|
||||
parseNodeFactory,
|
||||
pseudoBigIntToString,
|
||||
reduceLeft,
|
||||
returnTrue,
|
||||
sameFlatMap,
|
||||
setEachParent,
|
||||
setEmitFlags,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
setTextRangePosWidth,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipParentheses,
|
||||
some,
|
||||
startOnNewLine,
|
||||
startsWith,
|
||||
stringToToken,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
let nextAutoGenerateId = 0;
|
||||
|
||||
@ -1,41 +1,226 @@
|
||||
import {
|
||||
AbstractKeyword, AccessorKeyword, ArrayBindingPattern, ArrayLiteralExpression, ArrayTypeNode, ArrowFunction,
|
||||
AsExpression, AssertClause, AssertEntry, AssertsKeyword, AsteriskToken, AsyncKeyword, AwaitExpression, AwaitKeyword,
|
||||
BigIntLiteral, BinaryExpression, BindingElement, Block, BreakStatement, Bundle, CallExpression,
|
||||
CallSignatureDeclaration, CaseBlock, CaseClause, CatchClause, ClassDeclaration, ClassExpression,
|
||||
ClassStaticBlockDeclaration, ColonToken, CommaListExpression, ComputedPropertyName, ConditionalExpression,
|
||||
ConditionalTypeNode, ConstructorDeclaration, ConstructorTypeNode, ConstructSignatureDeclaration, ContinueStatement,
|
||||
DebuggerStatement, Decorator, DefaultClause, DeleteExpression, DoStatement, DotDotDotToken, ElementAccessExpression,
|
||||
EmptyStatement, EndOfDeclarationMarker, EnumDeclaration, EnumMember, EqualsGreaterThanToken, ExclamationToken,
|
||||
ExportAssignment, ExportDeclaration, ExportKeyword, ExportSpecifier, ExpressionStatement,
|
||||
ExpressionWithTypeArguments, ExternalModuleReference, ForInStatement, ForOfStatement, ForStatement,
|
||||
FunctionDeclaration, FunctionExpression, FunctionTypeNode, GetAccessorDeclaration, HeritageClause, Identifier,
|
||||
IfStatement, ImportClause, ImportDeclaration, ImportEqualsDeclaration, ImportExpression, ImportSpecifier,
|
||||
ImportTypeAssertionContainer, ImportTypeNode, IndexedAccessTypeNode, IndexSignatureDeclaration, InferTypeNode,
|
||||
InterfaceDeclaration, IntersectionTypeNode, JSDoc, JSDocAllType, JSDocAugmentsTag, JSDocAuthorTag, JSDocCallbackTag,
|
||||
JSDocClassTag, JSDocDeprecatedTag, JSDocEnumTag, JSDocFunctionType, JSDocImplementsTag, JSDocLink, JSDocLinkCode,
|
||||
JSDocLinkPlain, JSDocMemberName, JSDocNamepathType, JSDocNameReference, JSDocNonNullableType, JSDocNullableType,
|
||||
JSDocOptionalType, JSDocOverrideTag, JSDocParameterTag, JSDocPrivateTag, JSDocPropertyTag, JSDocProtectedTag,
|
||||
JSDocPublicTag, JSDocReadonlyTag, JSDocReturnTag, JSDocSeeTag, JSDocSignature, JSDocTemplateTag, JSDocThisTag,
|
||||
JSDocTypedefTag, JSDocTypeExpression, JSDocTypeLiteral, JSDocTypeTag, JSDocUnknownTag, JSDocUnknownType,
|
||||
JSDocVariadicType, JsxAttribute, JsxAttributes, JsxClosingElement, JsxClosingFragment, JsxElement, JsxExpression,
|
||||
JsxFragment, JsxOpeningElement, JsxOpeningFragment, JsxSelfClosingElement, JsxSpreadAttribute, JsxText,
|
||||
LabeledStatement, LiteralTypeNode, MappedTypeNode, MergeDeclarationMarker, MetaProperty, MethodDeclaration,
|
||||
MethodSignature, MinusToken, MissingDeclaration, ModuleBlock, ModuleDeclaration, NamedExports, NamedImports,
|
||||
NamedTupleMember, NamespaceExport, NamespaceExportDeclaration, NamespaceImport, NewExpression, Node,
|
||||
NonNullExpression, NoSubstitutionTemplateLiteral, NotEmittedStatement, NumericLiteral, ObjectBindingPattern,
|
||||
ObjectLiteralExpression, OmittedExpression, OptionalTypeNode, OverrideKeyword, ParameterDeclaration,
|
||||
ParenthesizedExpression, ParenthesizedTypeNode, PartiallyEmittedExpression, PlusToken, PostfixUnaryExpression,
|
||||
PrefixUnaryExpression, PrivateIdentifier, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration,
|
||||
PropertySignature, QualifiedName, QuestionDotToken, QuestionToken, ReadonlyKeyword, RegularExpressionLiteral,
|
||||
RestTypeNode, ReturnStatement, SatisfiesExpression, SemicolonClassElement, SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment, SourceFile, SpreadAssignment, SpreadElement, StaticKeyword, StringLiteral,
|
||||
SuperExpression, SwitchStatement, SyntaxKind, SyntaxList, SyntheticExpression, SyntheticReferenceExpression,
|
||||
TaggedTemplateExpression, TemplateExpression, TemplateHead, TemplateLiteralTypeNode, TemplateLiteralTypeSpan,
|
||||
TemplateMiddle, TemplateSpan, TemplateTail, ThisTypeNode, ThrowStatement, Token, TryStatement, TupleTypeNode,
|
||||
TypeAliasDeclaration, TypeAssertion, TypeLiteralNode, TypeOfExpression, TypeOperatorNode, TypeParameterDeclaration,
|
||||
TypePredicateNode, TypeQueryNode, TypeReferenceNode, UnionTypeNode, UnparsedPrepend, UnparsedSource,
|
||||
VariableDeclaration, VariableDeclarationList, VariableStatement, VoidExpression, WhileStatement, WithStatement,
|
||||
AbstractKeyword,
|
||||
AccessorKeyword,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
AssertEntry,
|
||||
AssertsKeyword,
|
||||
AsteriskToken,
|
||||
AsyncKeyword,
|
||||
AwaitExpression,
|
||||
AwaitKeyword,
|
||||
BigIntLiteral,
|
||||
BinaryExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
BreakStatement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
ClassExpression,
|
||||
ClassStaticBlockDeclaration,
|
||||
ColonToken,
|
||||
CommaListExpression,
|
||||
ComputedPropertyName,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ContinueStatement,
|
||||
DebuggerStatement,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
DoStatement,
|
||||
DotDotDotToken,
|
||||
ElementAccessExpression,
|
||||
EmptyStatement,
|
||||
EndOfDeclarationMarker,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
EqualsGreaterThanToken,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportKeyword,
|
||||
ExportSpecifier,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
ExternalModuleReference,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionTypeNode,
|
||||
GetAccessorDeclaration,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportExpression,
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
JSDoc,
|
||||
JSDocAllType,
|
||||
JSDocAugmentsTag,
|
||||
JSDocAuthorTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocMemberName,
|
||||
JSDocNameReference,
|
||||
JSDocNamepathType,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocTemplateTag,
|
||||
JSDocThisTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
JsxAttribute,
|
||||
JsxAttributes,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxText,
|
||||
LabeledStatement,
|
||||
LiteralTypeNode,
|
||||
MappedTypeNode,
|
||||
MergeDeclarationMarker,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
MinusToken,
|
||||
MissingDeclaration,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedTupleMember,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NonNullExpression,
|
||||
NotEmittedStatement,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralExpression,
|
||||
OmittedExpression,
|
||||
OptionalTypeNode,
|
||||
OverrideKeyword,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
PartiallyEmittedExpression,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
QualifiedName,
|
||||
QuestionDotToken,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
RegularExpressionLiteral,
|
||||
RestTypeNode,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
SemicolonClassElement,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
StaticKeyword,
|
||||
StringLiteral,
|
||||
SuperExpression,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
SyntaxList,
|
||||
SyntheticExpression,
|
||||
SyntheticReferenceExpression,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateHead,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateMiddle,
|
||||
TemplateSpan,
|
||||
TemplateTail,
|
||||
ThisTypeNode,
|
||||
ThrowStatement,
|
||||
Token,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeLiteralNode,
|
||||
TypeOfExpression,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnionTypeNode,
|
||||
UnparsedPrepend,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VoidExpression,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
YieldExpression,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
|
||||
@ -1,13 +1,53 @@
|
||||
import {
|
||||
Associativity, BinaryExpression, BinaryOperator, cast, compareValues, Comparison, ConciseBody, Expression,
|
||||
getExpressionAssociativity, getExpressionPrecedence, getLeftmostExpression, getOperatorAssociativity,
|
||||
getOperatorPrecedence, identity, isBinaryExpression, isBlock, isCallExpression, isCommaSequence,
|
||||
isConditionalTypeNode, isConstructorTypeNode, isFunctionOrConstructorTypeNode, isFunctionTypeNode, isInferTypeNode,
|
||||
isIntersectionTypeNode, isJSDocNullableType, isLeftHandSideExpression, isLiteralKind, isNamedTupleMember,
|
||||
isNodeArray, isOptionalChain, isTypeOperatorNode, isUnaryExpression, isUnionTypeNode, last, LeftHandSideExpression,
|
||||
NamedTupleMember, NewExpression, NodeArray, NodeFactory, OperatorPrecedence, OuterExpressionKinds,
|
||||
ParenthesizerRules, sameMap, setTextRange, skipPartiallyEmittedExpressions, some, SyntaxKind, TypeNode,
|
||||
Associativity,
|
||||
BinaryExpression,
|
||||
BinaryOperator,
|
||||
Comparison,
|
||||
ConciseBody,
|
||||
Expression,
|
||||
LeftHandSideExpression,
|
||||
NamedTupleMember,
|
||||
NewExpression,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
OperatorPrecedence,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizerRules,
|
||||
SyntaxKind,
|
||||
TypeNode,
|
||||
UnaryExpression,
|
||||
cast,
|
||||
compareValues,
|
||||
getExpressionAssociativity,
|
||||
getExpressionPrecedence,
|
||||
getLeftmostExpression,
|
||||
getOperatorAssociativity,
|
||||
getOperatorPrecedence,
|
||||
identity,
|
||||
isBinaryExpression,
|
||||
isBlock,
|
||||
isCallExpression,
|
||||
isCommaSequence,
|
||||
isConditionalTypeNode,
|
||||
isConstructorTypeNode,
|
||||
isFunctionOrConstructorTypeNode,
|
||||
isFunctionTypeNode,
|
||||
isInferTypeNode,
|
||||
isIntersectionTypeNode,
|
||||
isJSDocNullableType,
|
||||
isLeftHandSideExpression,
|
||||
isLiteralKind,
|
||||
isNamedTupleMember,
|
||||
isNodeArray,
|
||||
isOptionalChain,
|
||||
isTypeOperatorNode,
|
||||
isUnaryExpression,
|
||||
isUnionTypeNode,
|
||||
last,
|
||||
sameMap,
|
||||
setTextRange,
|
||||
skipPartiallyEmittedExpressions,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,35 +1,171 @@
|
||||
import {
|
||||
AccessorDeclaration, addEmitFlags, AdditiveOperator, AdditiveOperatorOrHigher, AssertionLevel,
|
||||
AssignmentOperatorOrHigher, BinaryExpression, BinaryOperator, BinaryOperatorToken, BindingOrAssignmentElement,
|
||||
BindingOrAssignmentElementRestIndicator, BindingOrAssignmentElementTarget, BindingOrAssignmentPattern,
|
||||
BitwiseOperator, BitwiseOperatorOrHigher, Block, BooleanLiteral, CharacterCodes, CommaListExpression,
|
||||
compareStringsCaseSensitive, CompilerOptions, Debug, Declaration, EmitFlags, EmitHelperFactory, EmitHost,
|
||||
EmitResolver, EntityName, EqualityOperator, EqualityOperatorOrHigher, ExclamationToken, ExponentiationOperator,
|
||||
ExportDeclaration, Expression, ExpressionStatement, externalHelpersModuleNameText, first, firstOrUndefined,
|
||||
ForInitializer, GeneratedIdentifier, GeneratedIdentifierFlags, GeneratedNamePart, GeneratedPrivateIdentifier,
|
||||
AccessorDeclaration,
|
||||
AdditiveOperator,
|
||||
AdditiveOperatorOrHigher,
|
||||
AssertionLevel,
|
||||
AssignmentOperatorOrHigher,
|
||||
BinaryExpression,
|
||||
BinaryOperator,
|
||||
BinaryOperatorToken,
|
||||
BindingOrAssignmentElement,
|
||||
BindingOrAssignmentElementRestIndicator,
|
||||
BindingOrAssignmentElementTarget,
|
||||
BindingOrAssignmentPattern,
|
||||
BitwiseOperator,
|
||||
BitwiseOperatorOrHigher,
|
||||
Block,
|
||||
BooleanLiteral,
|
||||
CharacterCodes,
|
||||
CommaListExpression,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Declaration,
|
||||
EmitFlags,
|
||||
EmitHelperFactory,
|
||||
EmitHost,
|
||||
EmitResolver,
|
||||
EntityName,
|
||||
EqualityOperator,
|
||||
EqualityOperatorOrHigher,
|
||||
ExclamationToken,
|
||||
ExponentiationOperator,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ForInitializer,
|
||||
GeneratedIdentifier,
|
||||
GeneratedIdentifierFlags,
|
||||
GeneratedNamePart,
|
||||
GeneratedPrivateIdentifier,
|
||||
GetAccessorDeclaration,
|
||||
getAllAccessorDeclarations, getEmitFlags, getEmitHelpers, getEmitModuleKind, getESModuleInterop,
|
||||
getExternalModuleName, getExternalModuleNameFromPath, getJSDocType, getJSDocTypeTag, getModifiers,
|
||||
getNamespaceDeclarationNode, getOrCreateEmitNode, getOriginalNode, getParseTreeNode,
|
||||
getSourceTextOfNodeFromSourceFile, HasIllegalDecorators, HasIllegalModifiers, HasIllegalType,
|
||||
HasIllegalTypeParameters, Identifier, idText, ImportCall, ImportDeclaration, ImportEqualsDeclaration,
|
||||
isAssignmentExpression, isAssignmentOperator, isBlock, isComputedPropertyName, isDeclarationBindingElement,
|
||||
isDefaultImport, isEffectiveExternalModule, isExclamationToken, isExportNamespaceAsDefaultDeclaration,
|
||||
isFileLevelUniqueName, isGeneratedIdentifier, isGeneratedPrivateIdentifier, isIdentifier, isInJSFile,
|
||||
isLiteralExpression, isMemberName, isMinusToken, isObjectLiteralElementLike, isParenthesizedExpression, isPlusToken,
|
||||
isPostfixUnaryExpression, isPrefixUnaryExpression, isPrivateIdentifier, isPrologueDirective, isPropertyAssignment,
|
||||
isPropertyName, isQualifiedName, isQuestionToken, isReadonlyKeyword, isShorthandPropertyAssignment, isSourceFile,
|
||||
isSpreadAssignment, isSpreadElement, isStringLiteral, isThisTypeNode, 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,
|
||||
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,
|
||||
getExternalModuleName,
|
||||
getExternalModuleNameFromPath,
|
||||
getJSDocType,
|
||||
getJSDocTypeTag,
|
||||
getModifiers,
|
||||
getNamespaceDeclarationNode,
|
||||
getOrCreateEmitNode,
|
||||
getOriginalNode,
|
||||
getParseTreeNode,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
idText,
|
||||
isAssignmentExpression,
|
||||
isAssignmentOperator,
|
||||
isBlock,
|
||||
isComputedPropertyName,
|
||||
isDeclarationBindingElement,
|
||||
isDefaultImport,
|
||||
isEffectiveExternalModule,
|
||||
isExclamationToken,
|
||||
isExportNamespaceAsDefaultDeclaration,
|
||||
isFileLevelUniqueName,
|
||||
isGeneratedIdentifier,
|
||||
isGeneratedPrivateIdentifier,
|
||||
isIdentifier,
|
||||
isInJSFile,
|
||||
isLiteralExpression,
|
||||
isMemberName,
|
||||
isMinusToken,
|
||||
isObjectLiteralElementLike,
|
||||
isParenthesizedExpression,
|
||||
isPlusToken,
|
||||
isPostfixUnaryExpression,
|
||||
isPrefixUnaryExpression,
|
||||
isPrivateIdentifier,
|
||||
isPrologueDirective,
|
||||
isPropertyAssignment,
|
||||
isPropertyName,
|
||||
isQualifiedName,
|
||||
isQuestionToken,
|
||||
isReadonlyKeyword,
|
||||
isShorthandPropertyAssignment,
|
||||
isSourceFile,
|
||||
isSpreadAssignment,
|
||||
isSpreadElement,
|
||||
isStringLiteral,
|
||||
isThisTypeNode,
|
||||
isTypeNode,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclarationList,
|
||||
map,
|
||||
or,
|
||||
outFile,
|
||||
parseNodeFactory,
|
||||
pushIfUnique,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setStartsOnNewLine,
|
||||
setTextRange,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// Compound nodes
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
import { HasDecorators, HasModifiers, Node, setTextRangePosEnd, SyntaxKind, TextRange } from "../_namespaces/ts";
|
||||
import {
|
||||
HasDecorators,
|
||||
HasModifiers,
|
||||
Node,
|
||||
SyntaxKind,
|
||||
TextRange,
|
||||
setTextRangePosEnd,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
export function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T {
|
||||
return location ? setTextRangePosEnd(range, location.pos, location.end) : range;
|
||||
|
||||
@ -1,23 +1,111 @@
|
||||
import {
|
||||
append, appendIfUnique, arrayFrom, changeAnyExtension, CharacterCodes, combinePaths, comparePaths, Comparison,
|
||||
CompilerOptions, contains, containsPath, createCompilerDiagnostic, Debug, Diagnostic, DiagnosticMessage,
|
||||
DiagnosticReporter, Diagnostics, directoryProbablyExists, directorySeparator, emptyArray, endsWith,
|
||||
ensureTrailingDirectorySeparator, every, Extension, extensionIsTS, fileExtensionIs, fileExtensionIsOneOf,
|
||||
FileReference, filter, firstDefined, forEach, forEachAncestorDirectory, formatMessage, getBaseFileName,
|
||||
GetCanonicalFileName, getCommonSourceDirectory, getDirectoryPath, GetEffectiveTypeRootsHost, getEmitModuleKind,
|
||||
getEmitModuleResolutionKind, getModeForUsageLocation, getNormalizedAbsolutePath, getOwnKeys, getPathComponents,
|
||||
getPathFromPathComponents, getPathsBasePath, getPossibleOriginalInputExtensionForExtension,
|
||||
getRelativePathFromDirectory, getRootLength, hasJSFileExtension, hasProperty, hasTrailingDirectorySeparator,
|
||||
hostGetCanonicalFileName, isArray, isExternalModuleNameRelative, isRootedDiskPath, isString,
|
||||
isStringLiteralLike, lastOrUndefined, length, 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,
|
||||
CharacterCodes,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
Extension,
|
||||
FileReference,
|
||||
GetCanonicalFileName,
|
||||
GetEffectiveTypeRootsHost,
|
||||
MapLike,
|
||||
MatchingKeys,
|
||||
ModuleKind,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionKind,
|
||||
PackageId,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
Pattern,
|
||||
Push,
|
||||
ResolutionMode,
|
||||
ResolvedModuleWithFailedLookupLocations, ResolvedProjectReference, ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations, some, sort, SourceFile, startsWith, stringContains,
|
||||
StringLiteralLike, supportedDeclarationExtensions, supportedTSImplementationExtensions, toFileNameLowerCase, toPath, tryExtractTSExtension, tryGetExtensionFromPath,
|
||||
tryParsePatterns, version, Version, versionMajorMinor, VersionRange,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ResolvedTypeReferenceDirectiveWithFailedLookupLocations,
|
||||
SourceFile,
|
||||
StringLiteralLike,
|
||||
Version,
|
||||
VersionRange,
|
||||
append,
|
||||
appendIfUnique,
|
||||
arrayFrom,
|
||||
changeAnyExtension,
|
||||
combinePaths,
|
||||
comparePaths,
|
||||
contains,
|
||||
containsPath,
|
||||
createCompilerDiagnostic,
|
||||
directoryProbablyExists,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
extensionIsTS,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
firstDefined,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
formatMessage,
|
||||
getBaseFileName,
|
||||
getCommonSourceDirectory,
|
||||
getDirectoryPath,
|
||||
getEmitModuleKind,
|
||||
getEmitModuleResolutionKind,
|
||||
getModeForUsageLocation,
|
||||
getNormalizedAbsolutePath,
|
||||
getOwnKeys,
|
||||
getPathComponents,
|
||||
getPathFromPathComponents,
|
||||
getPathsBasePath,
|
||||
getPossibleOriginalInputExtensionForExtension,
|
||||
getRelativePathFromDirectory,
|
||||
getRootLength,
|
||||
hasJSFileExtension,
|
||||
hasProperty,
|
||||
hasTrailingDirectorySeparator,
|
||||
hostGetCanonicalFileName,
|
||||
isArray,
|
||||
isExternalModuleNameRelative,
|
||||
isRootedDiskPath,
|
||||
isString,
|
||||
isStringLiteralLike,
|
||||
lastOrUndefined,
|
||||
length,
|
||||
matchPatternOrExact,
|
||||
matchedText,
|
||||
noop,
|
||||
noopPush,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
optionsHaveModuleResolutionChanges,
|
||||
packageIdToString,
|
||||
pathIsRelative,
|
||||
patternText,
|
||||
perfLogger,
|
||||
readJson,
|
||||
removeExtension,
|
||||
removeFileExtension,
|
||||
removePrefix,
|
||||
some,
|
||||
sort,
|
||||
startsWith,
|
||||
stringContains,
|
||||
supportedDeclarationExtensions,
|
||||
supportedTSImplementationExtensions,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
tryExtractTSExtension,
|
||||
tryGetExtensionFromPath,
|
||||
tryParsePatterns,
|
||||
version,
|
||||
versionMajorMinor,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,22 +1,107 @@
|
||||
import {
|
||||
__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,
|
||||
getModeForResolutionAtIndex, getModuleNameStringLiteralAt, getNodeModulePathParts, getNormalizedAbsolutePath,
|
||||
getOwnKeys, getPackageJsonTypesVersionsPaths, getPackageNameFromTypesPackageName, getPathsBasePath,
|
||||
getRelativePathFromDirectory, getRelativePathToDirectoryOrUrl, getSourceFileOfModule, getSupportedExtensions,
|
||||
getTextOfIdentifierOrLiteral, hasJSFileExtension, hasTSFileExtension, hostGetCanonicalFileName, Identifier,
|
||||
isAmbientModule, isApplicableVersionedTypesKey, isExternalModuleAugmentation, isExternalModuleNameRelative,
|
||||
isModuleBlock, isModuleDeclaration, isNonGlobalAmbientModule, 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, resolvePath,
|
||||
ScriptKind, some, SourceFile, startsWith, startsWithDirectory, stringContains, StringLiteral, Symbol, SymbolFlags,
|
||||
toPath, tryGetExtensionFromPath, tryParsePatterns, TypeChecker, UserPreferences, ResolutionMode,
|
||||
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,
|
||||
append,
|
||||
arrayFrom,
|
||||
combinePaths,
|
||||
compareBooleans,
|
||||
compareNumberOfDirectorySeparators,
|
||||
comparePaths,
|
||||
containsIgnoredPath,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
endsWith,
|
||||
ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator,
|
||||
every,
|
||||
extensionFromPath,
|
||||
fileExtensionIsOneOf,
|
||||
firstDefined,
|
||||
flatMap,
|
||||
flatten,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
getDirectoryPath,
|
||||
getEmitModuleResolutionKind,
|
||||
getImpliedNodeFormatForFile,
|
||||
getModeForResolutionAtIndex,
|
||||
getModuleNameStringLiteralAt,
|
||||
getNodeModulePathParts,
|
||||
getNormalizedAbsolutePath,
|
||||
getOwnKeys,
|
||||
getPackageJsonTypesVersionsPaths,
|
||||
getPackageNameFromTypesPackageName,
|
||||
getPathsBasePath,
|
||||
getRelativePathFromDirectory,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
getSourceFileOfModule,
|
||||
getSupportedExtensions,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasJSFileExtension,
|
||||
hasTSFileExtension,
|
||||
hostGetCanonicalFileName,
|
||||
isAmbientModule,
|
||||
isApplicableVersionedTypesKey,
|
||||
isExternalModuleAugmentation,
|
||||
isExternalModuleNameRelative,
|
||||
isModuleBlock,
|
||||
isModuleDeclaration,
|
||||
isNonGlobalAmbientModule,
|
||||
isRootedDiskPath,
|
||||
isSourceFile,
|
||||
isString,
|
||||
map,
|
||||
mapDefined,
|
||||
matchPatternOrExact,
|
||||
min,
|
||||
normalizePath,
|
||||
pathContainsNodeModules,
|
||||
pathIsBareSpecifier,
|
||||
pathIsRelative,
|
||||
removeFileExtension,
|
||||
removeSuffix,
|
||||
resolvePath,
|
||||
some,
|
||||
startsWith,
|
||||
startsWithDirectory,
|
||||
stringContains,
|
||||
toPath,
|
||||
tryGetExtensionFromPath,
|
||||
tryParsePatterns,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// Used by importFixes, getEditsForFileRename, and declaration emit to synthesize import module specifiers.
|
||||
|
||||
@ -1,69 +1,388 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AccessorDeclaration, addRange, addRelatedInfo, AmdDependency, append, ArrayBindingElement, ArrayBindingPattern,
|
||||
ArrayLiteralExpression, ArrayTypeNode, ArrowFunction, AsExpression, AssertClause, AssertEntry, AssertionLevel,
|
||||
AsteriskToken, attachFileToDiagnostics, AwaitExpression, BaseNodeFactory, BinaryExpression, BinaryOperatorToken,
|
||||
BindingElement, BindingName, BindingPattern, Block, BooleanLiteral, BreakOrContinueStatement, BreakStatement,
|
||||
CallExpression, CallSignatureDeclaration, canHaveModifiers, CaseBlock, CaseClause, CaseOrDefaultClause, CatchClause,
|
||||
CharacterCodes, CheckJsDirective, ClassDeclaration, ClassElement, ClassExpression, ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration, CommaListExpression, CommentDirective, commentPragmas, CommentRange,
|
||||
ComputedPropertyName, concatenate, ConditionalExpression, ConditionalTypeNode, ConstructorDeclaration,
|
||||
ConstructorTypeNode, ConstructSignatureDeclaration, containsParseError, ContinueStatement, convertToObjectWorker,
|
||||
createDetachedDiagnostic, createNodeFactory, createScanner, createTextChangeRange, createTextSpanFromBounds, Debug,
|
||||
Decorator, DefaultClause, DeleteExpression, Diagnostic, DiagnosticMessage, Diagnostics,
|
||||
DiagnosticWithDetachedLocation, DoStatement, DotDotDotToken, ElementAccessExpression, emptyArray, emptyMap,
|
||||
EndOfFileToken, ensureScriptKind, EntityName, EnumDeclaration, EnumMember, ExclamationToken,
|
||||
ExportAssignment, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, ExpressionWithTypeArguments,
|
||||
ExternalModuleReference, fileExtensionIsOneOf, FileReference, findIndex, forEach, ForEachChildNodes,
|
||||
ForInOrOfStatement, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression,
|
||||
FunctionOrConstructorTypeNode, FunctionTypeNode, GetAccessorDeclaration, getBinaryOperatorPrecedence, getFullWidth,
|
||||
getJSDocCommentRanges, getLanguageVariant, getLastChild, getLeadingCommentRanges, getSpellingSuggestion,
|
||||
getTextOfNodeFromSourceText, HasJSDoc, hasJSDocNodes, HasModifiers, HeritageClause, Identifier, idText, IfStatement,
|
||||
ImportClause, ImportDeclaration, ImportEqualsDeclaration, ImportOrExportSpecifier, ImportSpecifier,
|
||||
ImportTypeAssertionContainer, ImportTypeNode, 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, JSDocAugmentsTag, JSDocAuthorTag, JSDocCallbackTag,
|
||||
JSDocClassTag, JSDocComment, JSDocContainer, JSDocDeprecatedTag, JSDocEnumTag, JSDocFunctionType,
|
||||
JSDocImplementsTag, JSDocLink, JSDocLinkCode, JSDocLinkPlain, JSDocMemberName, JSDocNameReference,
|
||||
JSDocNamespaceDeclaration, JSDocNonNullableType, JSDocNullableType, JSDocOptionalType, JSDocOverrideTag,
|
||||
JSDocParameterTag, JSDocPrivateTag, JSDocPropertyLikeTag, JSDocPropertyTag, JSDocProtectedTag, JSDocPublicTag,
|
||||
JSDocReadonlyTag, JSDocReturnTag, JSDocSeeTag, JSDocSignature, JSDocSyntaxKind, JSDocTag, JSDocTemplateTag,
|
||||
JSDocText, JSDocThisTag, JSDocTypedefTag, JSDocTypeExpression, JSDocTypeLiteral, JSDocTypeTag, JSDocUnknownTag,
|
||||
JSDocUnknownType, JSDocVariadicType, JsonMinusNumericLiteral, JsonObjectExpressionStatement, JsonSourceFile,
|
||||
JsxAttribute, JsxAttributes, JsxAttributeValue, JsxChild, JsxClosingElement, JsxClosingFragment, JsxElement,
|
||||
JsxExpression, JsxFragment, JsxOpeningElement, JsxOpeningFragment, JsxOpeningLikeElement, JsxSelfClosingElement,
|
||||
JsxSpreadAttribute, JsxTagNameExpression, JsxTagNamePropertyAccess, JsxText, JsxTokenSyntaxKind, LabeledStatement,
|
||||
LanguageVariant, lastOrUndefined, LeftHandSideExpression, LiteralExpression, LiteralLikeNode, LiteralTypeNode, map,
|
||||
mapDefined, MappedTypeNode, MemberExpression, MetaProperty, MethodDeclaration, MethodSignature, MinusToken,
|
||||
MissingDeclaration, Modifier, ModifierFlags, ModifierLike, ModifiersArray, modifiersToFlags, ModuleBlock,
|
||||
ModuleDeclaration, ModuleKind, Mutable, NamedExportBindings, NamedExports, NamedImports, NamedImportsOrExports,
|
||||
NamedTupleMember, NamespaceDeclaration, NamespaceExport, NamespaceExportDeclaration, NamespaceImport, NewExpression,
|
||||
Node, NodeArray, NodeFactoryFlags, NodeFlags, nodeIsMissing, nodeIsPresent, NonNullExpression, noop, normalizePath,
|
||||
NoSubstitutionTemplateLiteral, NullLiteral, NumericLiteral, objectAllocator, ObjectBindingPattern,
|
||||
ObjectLiteralElementLike, ObjectLiteralExpression, OperatorPrecedence, OptionalTypeNode, PackageJsonInfo,
|
||||
ParameterDeclaration, ParenthesizedExpression, ParenthesizedTypeNode, PartiallyEmittedExpression, perfLogger,
|
||||
PlusToken, PostfixUnaryExpression, PostfixUnaryOperator, PragmaDefinition, PragmaKindFlags, PragmaMap,
|
||||
PragmaPseudoMap, PragmaPseudoMapEntry, PrefixUnaryExpression, PrefixUnaryOperator, PrimaryExpression,
|
||||
PrivateIdentifier, PropertyAccessEntityNameExpression, PropertyAccessExpression, PropertyAssignment,
|
||||
PropertyDeclaration, PropertyName, PropertySignature, QualifiedName, QuestionDotToken, QuestionToken,
|
||||
ReadonlyKeyword, ReadonlyPragmaMap, ReadonlyTextRange, ResolutionMode, RestTypeNode, ReturnStatement, SatisfiesExpression,
|
||||
ScriptKind, ScriptTarget, SetAccessorDeclaration, setParent, setParentRecursive, setTextRange, setTextRangePos,
|
||||
setTextRangePosEnd, setTextRangePosWidth, ShorthandPropertyAssignment, skipTrivia, some, SourceFile,
|
||||
SpreadAssignment, SpreadElement, startsWith, Statement, StringLiteral, supportedDeclarationExtensions,
|
||||
SwitchStatement, SyntaxKind, TaggedTemplateExpression, TemplateExpression, TemplateHead, TemplateLiteralToken,
|
||||
TemplateLiteralTypeNode, TemplateLiteralTypeSpan, TemplateMiddle, TemplateSpan, TemplateTail, TextChangeRange,
|
||||
textChangeRangeIsUnchanged, textChangeRangeNewSpan, TextRange, textSpanEnd, textToKeywordObj, ThisExpression,
|
||||
ThisTypeNode, ThrowStatement, toArray, Token, TokenFlags, tokenIsIdentifierOrKeyword,
|
||||
tokenIsIdentifierOrKeywordOrGreaterThan, tokenToString, tracing, TransformFlags, trimString, TryStatement,
|
||||
TupleTypeNode, TypeAliasDeclaration, TypeAssertion, TypeElement, TypeLiteralNode, TypeNode, TypeOfExpression,
|
||||
TypeOperatorNode, TypeParameterDeclaration, TypePredicateNode, TypeQueryNode, TypeReferenceNode, UnaryExpression,
|
||||
UnionOrIntersectionTypeNode, UnionTypeNode, UpdateExpression, VariableDeclaration, VariableDeclarationList,
|
||||
VariableStatement, VoidExpression, WhileStatement, WithStatement, YieldExpression,
|
||||
AccessorDeclaration,
|
||||
AmdDependency,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingPattern,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
AssertEntry,
|
||||
AssertionLevel,
|
||||
AsteriskToken,
|
||||
AwaitExpression,
|
||||
BaseNodeFactory,
|
||||
BinaryExpression,
|
||||
BinaryOperatorToken,
|
||||
BindingElement,
|
||||
BindingName,
|
||||
BindingPattern,
|
||||
Block,
|
||||
BooleanLiteral,
|
||||
BreakOrContinueStatement,
|
||||
BreakStatement,
|
||||
CallExpression,
|
||||
CallSignatureDeclaration,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
CharacterCodes,
|
||||
CheckJsDirective,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CommaListExpression,
|
||||
CommentDirective,
|
||||
CommentRange,
|
||||
ComputedPropertyName,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
ContinueStatement,
|
||||
Debug,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DeleteExpression,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticWithDetachedLocation,
|
||||
Diagnostics,
|
||||
DoStatement,
|
||||
DotDotDotToken,
|
||||
ElementAccessExpression,
|
||||
EndOfFileToken,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
ExternalModuleReference,
|
||||
FileReference,
|
||||
ForEachChildNodes,
|
||||
ForInOrOfStatement,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionOrConstructorTypeNode,
|
||||
FunctionTypeNode,
|
||||
GetAccessorDeclaration,
|
||||
HasJSDoc,
|
||||
HasModifiers,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
IfStatement,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
ImportSpecifier,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
IndexSignatureDeclaration,
|
||||
IndexedAccessTypeNode,
|
||||
InferTypeNode,
|
||||
InterfaceDeclaration,
|
||||
IntersectionTypeNode,
|
||||
IterationStatement,
|
||||
JSDoc,
|
||||
JSDocAllType,
|
||||
JSDocAugmentsTag,
|
||||
JSDocAuthorTag,
|
||||
JSDocCallbackTag,
|
||||
JSDocClassTag,
|
||||
JSDocComment,
|
||||
JSDocContainer,
|
||||
JSDocDeprecatedTag,
|
||||
JSDocEnumTag,
|
||||
JSDocFunctionType,
|
||||
JSDocImplementsTag,
|
||||
JSDocLink,
|
||||
JSDocLinkCode,
|
||||
JSDocLinkPlain,
|
||||
JSDocMemberName,
|
||||
JSDocNameReference,
|
||||
JSDocNamespaceDeclaration,
|
||||
JSDocNonNullableType,
|
||||
JSDocNullableType,
|
||||
JSDocOptionalType,
|
||||
JSDocOverrideTag,
|
||||
JSDocParameterTag,
|
||||
JSDocPrivateTag,
|
||||
JSDocPropertyLikeTag,
|
||||
JSDocPropertyTag,
|
||||
JSDocProtectedTag,
|
||||
JSDocPublicTag,
|
||||
JSDocReadonlyTag,
|
||||
JSDocReturnTag,
|
||||
JSDocSeeTag,
|
||||
JSDocSignature,
|
||||
JSDocSyntaxKind,
|
||||
JSDocTag,
|
||||
JSDocTemplateTag,
|
||||
JSDocText,
|
||||
JSDocThisTag,
|
||||
JSDocTypeExpression,
|
||||
JSDocTypeLiteral,
|
||||
JSDocTypeTag,
|
||||
JSDocTypedefTag,
|
||||
JSDocUnknownTag,
|
||||
JSDocUnknownType,
|
||||
JSDocVariadicType,
|
||||
JsonMinusNumericLiteral,
|
||||
JsonObjectExpressionStatement,
|
||||
JsonSourceFile,
|
||||
JsxAttribute,
|
||||
JsxAttributeValue,
|
||||
JsxAttributes,
|
||||
JsxChild,
|
||||
JsxClosingElement,
|
||||
JsxClosingFragment,
|
||||
JsxElement,
|
||||
JsxExpression,
|
||||
JsxFragment,
|
||||
JsxOpeningElement,
|
||||
JsxOpeningFragment,
|
||||
JsxOpeningLikeElement,
|
||||
JsxSelfClosingElement,
|
||||
JsxSpreadAttribute,
|
||||
JsxTagNameExpression,
|
||||
JsxTagNamePropertyAccess,
|
||||
JsxText,
|
||||
JsxTokenSyntaxKind,
|
||||
LabeledStatement,
|
||||
LanguageVariant,
|
||||
LeftHandSideExpression,
|
||||
LiteralExpression,
|
||||
LiteralLikeNode,
|
||||
LiteralTypeNode,
|
||||
MappedTypeNode,
|
||||
MemberExpression,
|
||||
MetaProperty,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
MinusToken,
|
||||
MissingDeclaration,
|
||||
Modifier,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModifiersArray,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
Mutable,
|
||||
NamedExportBindings,
|
||||
NamedExports,
|
||||
NamedImports,
|
||||
NamedImportsOrExports,
|
||||
NamedTupleMember,
|
||||
NamespaceDeclaration,
|
||||
NamespaceExport,
|
||||
NamespaceExportDeclaration,
|
||||
NamespaceImport,
|
||||
NewExpression,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFactoryFlags,
|
||||
NodeFlags,
|
||||
NonNullExpression,
|
||||
NullLiteral,
|
||||
NumericLiteral,
|
||||
ObjectBindingPattern,
|
||||
ObjectLiteralElementLike,
|
||||
ObjectLiteralExpression,
|
||||
OperatorPrecedence,
|
||||
OptionalTypeNode,
|
||||
PackageJsonInfo,
|
||||
ParameterDeclaration,
|
||||
ParenthesizedExpression,
|
||||
ParenthesizedTypeNode,
|
||||
PartiallyEmittedExpression,
|
||||
PlusToken,
|
||||
PostfixUnaryExpression,
|
||||
PostfixUnaryOperator,
|
||||
PragmaDefinition,
|
||||
PragmaKindFlags,
|
||||
PragmaMap,
|
||||
PragmaPseudoMap,
|
||||
PragmaPseudoMapEntry,
|
||||
PrefixUnaryExpression,
|
||||
PrefixUnaryOperator,
|
||||
PrimaryExpression,
|
||||
PrivateIdentifier,
|
||||
PropertyAccessEntityNameExpression,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
PropertyDeclaration,
|
||||
PropertyName,
|
||||
PropertySignature,
|
||||
QualifiedName,
|
||||
QuestionDotToken,
|
||||
QuestionToken,
|
||||
ReadonlyKeyword,
|
||||
ReadonlyPragmaMap,
|
||||
ReadonlyTextRange,
|
||||
ResolutionMode,
|
||||
RestTypeNode,
|
||||
ReturnStatement,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
SetAccessorDeclaration,
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
SpreadAssignment,
|
||||
SpreadElement,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
SwitchStatement,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TemplateExpression,
|
||||
TemplateHead,
|
||||
TemplateLiteralToken,
|
||||
TemplateLiteralTypeNode,
|
||||
TemplateLiteralTypeSpan,
|
||||
TemplateMiddle,
|
||||
TemplateSpan,
|
||||
TemplateTail,
|
||||
TextChangeRange,
|
||||
TextRange,
|
||||
ThisExpression,
|
||||
ThisTypeNode,
|
||||
ThrowStatement,
|
||||
Token,
|
||||
TokenFlags,
|
||||
TransformFlags,
|
||||
TryStatement,
|
||||
TupleTypeNode,
|
||||
TypeAliasDeclaration,
|
||||
TypeAssertion,
|
||||
TypeElement,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
TypeOfExpression,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
TypeQueryNode,
|
||||
TypeReferenceNode,
|
||||
UnaryExpression,
|
||||
UnionOrIntersectionTypeNode,
|
||||
UnionTypeNode,
|
||||
UpdateExpression,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
VariableStatement,
|
||||
VoidExpression,
|
||||
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,7 +1,21 @@
|
||||
import {
|
||||
CharacterCodes, compareStringsCaseInsensitive, compareStringsCaseSensitive, compareValues, Comparison, Debug,
|
||||
endsWith, equateStringsCaseInsensitive, equateStringsCaseSensitive, GetCanonicalFileName, getStringComparer,
|
||||
identity, lastOrUndefined, Path, some, startsWith, stringContains,
|
||||
CharacterCodes,
|
||||
Comparison,
|
||||
Debug,
|
||||
GetCanonicalFileName,
|
||||
Path,
|
||||
compareStringsCaseInsensitive,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
endsWith,
|
||||
equateStringsCaseInsensitive,
|
||||
equateStringsCaseSensitive,
|
||||
getStringComparer,
|
||||
identity,
|
||||
lastOrUndefined,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,12 @@
|
||||
import {
|
||||
Debug, noop, Performance, PerformanceHooks, sys, System, timestamp, tryGetNativePerformanceHooks,
|
||||
Debug,
|
||||
Performance,
|
||||
PerformanceHooks,
|
||||
System,
|
||||
noop,
|
||||
sys,
|
||||
timestamp,
|
||||
tryGetNativePerformanceHooks,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** Performance measurements for the compiler. */
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import { isNodeLikeSystem, Version, VersionRange } from "./_namespaces/ts";
|
||||
import {
|
||||
Version,
|
||||
VersionRange,
|
||||
isNodeLikeSystem,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// The following definitions provide the minimum compatible support for the Web Performance User Timings API
|
||||
// between browsers and NodeJS:
|
||||
|
||||
@ -1,64 +1,318 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
__String, addEmitFlags, addRange, append, arrayFrom, arrayIsEqualTo, AsExpression, AssertClause, BuilderProgram,
|
||||
CancellationToken, canHaveModifiers, chainDiagnosticMessages, changeExtension, changesAffectingProgramStructure,
|
||||
changesAffectModuleResolution, clone, combinePaths, CommentDirective, CommentDirectivesMap, compareDataObjects,
|
||||
comparePaths, compareValues, Comparison, CompilerHost, CompilerOptions, computeLineAndCharacterOfPosition,
|
||||
concatenate, contains, containsIgnoredPath, containsPath, convertToRelativePath, createCommentDirectivesMap,
|
||||
createCompilerDiagnostic, createCompilerDiagnosticFromMessageChain, createDiagnosticCollection,
|
||||
createDiagnosticForNodeInSourceFile, createDiagnosticForRange, createFileDiagnostic,
|
||||
createFileDiagnosticFromMessageChain, createGetCanonicalFileName, createInputFilesWithFilePaths,
|
||||
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, firstDefinedIterator, flatMap, flatten, forEach, forEachAncestorDirectory, forEachChild,
|
||||
forEachChildRecursively, forEachEmittedFile, forEachEntry, forEachKey, FunctionLikeDeclaration,
|
||||
getAllowJSCompilerOption, getAutomaticTypeDirectiveNames, getBaseFileName, GetCanonicalFileName,
|
||||
getCommonSourceDirectoryOfConfig, getDefaultLibFileName, getDirectoryPath, getEmitDeclarations, getEmitModuleKind,
|
||||
getEmitModuleResolutionKind, getEmitScriptTarget, getErrorSpanForNode, getExternalModuleName,
|
||||
getJSXImplicitImportBase, getJSXRuntimeImport, getLineAndCharacterOfPosition, getLineStarts, getMatchedFileSpec,
|
||||
getMatchedIncludeSpec, getNewLineCharacter, getNormalizedAbsolutePath, getNormalizedAbsolutePathWithoutRoot,
|
||||
getNormalizedPathComponents, getOutputDeclarationFileName, getOutputPathsForBundle, getPackageScopeForPath,
|
||||
getPathFromPathComponents, getPositionOfLineAndCharacter, getPropertyArrayElementValue, getPropertyAssignment,
|
||||
getResolutionMode, getResolutionName, getResolvedModule, getRootLength, getSetExternalModuleIndicator,
|
||||
getSpellingSuggestion, getStrictOptionValue, getSupportedExtensions,
|
||||
getSupportedExtensionsWithJsonIfResolveJsonModule, getTemporaryModuleResolutionState, getTextOfIdentifierOrLiteral,
|
||||
getTransformers, getTsBuildInfoEmitOutputFilePath, getTsConfigObjectLiteralExpression, getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue, HasChangedAutomaticTypeDirectiveNames, hasChangesInResolutions, hasExtension,
|
||||
HasInvalidatedResolutions, hasJSDocNodes, hasJSFileExtension, hasJsonModuleEmitEnabled, hasProperty,
|
||||
hasSyntacticModifier, hasZeroOrOneAsteriskCharacter, HeritageClause, Identifier, identity, ImportClause,
|
||||
ImportDeclaration, ImportOrExportSpecifier, InputFiles, inverseJsxOptionMap, isAmbientModule, isAnyImportOrReExport,
|
||||
isArray, isArrayLiteralExpression, isBuildInfoFile, isCheckJsEnabledForFile, isDeclarationFileName, isDecorator,
|
||||
isExportDeclaration, isExternalModule, isExternalModuleNameRelative, isIdentifierText, isImportCall,
|
||||
isImportDeclaration, isImportEqualsDeclaration, isImportSpecifier, isImportTypeNode, isIncrementalCompilation,
|
||||
isInJSFile, isLiteralImportTypeNode, isModifier, isModuleDeclaration, isObjectLiteralExpression, isPlainJsFile,
|
||||
isRequireCall, isRootedDiskPath, isSourceFileJS, isString, isStringLiteral, isStringLiteralLike, isTraceEnabled,
|
||||
JsonSourceFile, JsxEmit, length, libMap, libs, mapDefined, mapDefinedIterator, maybeBind, memoize,
|
||||
MethodDeclaration, ModifierFlags, ModifierLike, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionCache,
|
||||
ModuleResolutionHost, ModuleResolutionInfo, moduleResolutionIsEqualTo, 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,
|
||||
resolveConfigFileProjectName, ResolvedConfigFileName, ResolvedModuleFull, ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference, ResolvedTypeReferenceDirective, resolveModuleName, resolveModuleNameFromCache,
|
||||
resolveTypeReferenceDirective, returnFalse, returnUndefined, SatisfiesExpression, ScriptKind, ScriptTarget,
|
||||
setParent, setParentRecursive, setResolvedModule, setResolvedTypeReferenceDirective, skipTrivia, skipTypeChecking,
|
||||
some, sortAndDeduplicateDiagnostics, SortedReadonlyArray, SourceFile, sourceFileAffectingCompilerOptions,
|
||||
sourceFileMayBeEmitted, SourceOfProjectReferenceRedirect, stableSort, startsWith, Statement, stringContains,
|
||||
StringLiteral, StringLiteralLike, StructureIsReused, supportedJSExtensionsFlat, SymlinkCache, SyntaxKind, sys,
|
||||
targetOptionDeclaration, toFileNameLowerCase, tokenToString, trace, tracing, trimStringEnd, TsConfigSourceFile,
|
||||
TypeChecker, typeDirectiveIsEqualTo, TypeReferenceDirectiveResolutionCache, UnparsedSource, VariableDeclaration,
|
||||
VariableStatement, walkUpParenthesizedExpressions, WriteFileCallback, WriteFileCallbackData,
|
||||
writeFileEnsuringDirectories, zipToModeAwareCache, TypeReferenceDirectiveResolutionInfo, getResolvedTypeReferenceDirective, ResolutionMode,
|
||||
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,
|
||||
canHaveModifiers,
|
||||
chainDiagnosticMessages,
|
||||
changeExtension,
|
||||
changesAffectModuleResolution,
|
||||
changesAffectingProgramStructure,
|
||||
clone,
|
||||
combinePaths,
|
||||
compareDataObjects,
|
||||
comparePaths,
|
||||
compareValues,
|
||||
computeLineAndCharacterOfPosition,
|
||||
concatenate,
|
||||
contains,
|
||||
containsIgnoredPath,
|
||||
containsPath,
|
||||
convertToRelativePath,
|
||||
createCommentDirectivesMap,
|
||||
createCompilerDiagnostic,
|
||||
createCompilerDiagnosticFromMessageChain,
|
||||
createDiagnosticCollection,
|
||||
createDiagnosticForNodeInSourceFile,
|
||||
createDiagnosticForRange,
|
||||
createFileDiagnostic,
|
||||
createFileDiagnosticFromMessageChain,
|
||||
createGetCanonicalFileName,
|
||||
createInputFilesWithFilePaths,
|
||||
createModeAwareCache,
|
||||
createModuleResolutionCache,
|
||||
createMultiMap,
|
||||
createSourceFile,
|
||||
createSymlinkCache,
|
||||
createTypeChecker,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
diagnosticCategoryName,
|
||||
directorySeparator,
|
||||
emitFiles,
|
||||
emptyArray,
|
||||
ensureTrailingDirectorySeparator,
|
||||
equateStringsCaseInsensitive,
|
||||
equateStringsCaseSensitive,
|
||||
explainIfFileIsRedirectAndImpliedFormat,
|
||||
extensionFromPath,
|
||||
externalHelpersModuleNameText,
|
||||
factory,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
fileIncludeReasonToDiagnostics,
|
||||
filter,
|
||||
find,
|
||||
firstDefined,
|
||||
firstDefinedIterator,
|
||||
flatMap,
|
||||
flatten,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
forEachChild,
|
||||
forEachChildRecursively,
|
||||
forEachEmittedFile,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
getAllowJSCompilerOption,
|
||||
getAutomaticTypeDirectiveNames,
|
||||
getBaseFileName,
|
||||
getCommonSourceDirectoryOfConfig,
|
||||
getDefaultLibFileName,
|
||||
getDirectoryPath,
|
||||
getEmitDeclarations,
|
||||
getEmitModuleKind,
|
||||
getEmitModuleResolutionKind,
|
||||
getEmitScriptTarget,
|
||||
getErrorSpanForNode,
|
||||
getExternalModuleName,
|
||||
getJSXImplicitImportBase,
|
||||
getJSXRuntimeImport,
|
||||
getLineAndCharacterOfPosition,
|
||||
getLineStarts,
|
||||
getMatchedFileSpec,
|
||||
getMatchedIncludeSpec,
|
||||
getNewLineCharacter,
|
||||
getNormalizedAbsolutePath,
|
||||
getNormalizedAbsolutePathWithoutRoot,
|
||||
getNormalizedPathComponents,
|
||||
getOutputDeclarationFileName,
|
||||
getOutputPathsForBundle,
|
||||
getPackageScopeForPath,
|
||||
getPathFromPathComponents,
|
||||
getPositionOfLineAndCharacter,
|
||||
getPropertyArrayElementValue,
|
||||
getPropertyAssignment,
|
||||
getResolutionMode,
|
||||
getResolutionName,
|
||||
getResolvedModule,
|
||||
getResolvedTypeReferenceDirective,
|
||||
getRootLength,
|
||||
getSetExternalModuleIndicator,
|
||||
getSpellingSuggestion,
|
||||
getStrictOptionValue,
|
||||
getSupportedExtensions,
|
||||
getSupportedExtensionsWithJsonIfResolveJsonModule,
|
||||
getTemporaryModuleResolutionState,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
getTransformers,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
getTsConfigObjectLiteralExpression,
|
||||
getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue,
|
||||
hasChangesInResolutions,
|
||||
hasExtension,
|
||||
hasJSDocNodes,
|
||||
hasJSFileExtension,
|
||||
hasJsonModuleEmitEnabled,
|
||||
hasProperty,
|
||||
hasSyntacticModifier,
|
||||
hasZeroOrOneAsteriskCharacter,
|
||||
identity,
|
||||
inverseJsxOptionMap,
|
||||
isAmbientModule,
|
||||
isAnyImportOrReExport,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isBuildInfoFile,
|
||||
isCheckJsEnabledForFile,
|
||||
isDeclarationFileName,
|
||||
isDecorator,
|
||||
isExportDeclaration,
|
||||
isExternalModule,
|
||||
isExternalModuleNameRelative,
|
||||
isIdentifierText,
|
||||
isImportCall,
|
||||
isImportDeclaration,
|
||||
isImportEqualsDeclaration,
|
||||
isImportSpecifier,
|
||||
isImportTypeNode,
|
||||
isInJSFile,
|
||||
isIncrementalCompilation,
|
||||
isLiteralImportTypeNode,
|
||||
isModifier,
|
||||
isModuleDeclaration,
|
||||
isObjectLiteralExpression,
|
||||
isPlainJsFile,
|
||||
isRequireCall,
|
||||
isRootedDiskPath,
|
||||
isSourceFileJS,
|
||||
isString,
|
||||
isStringLiteral,
|
||||
isStringLiteralLike,
|
||||
isTraceEnabled,
|
||||
length,
|
||||
libMap,
|
||||
libs,
|
||||
mapDefined,
|
||||
mapDefinedIterator,
|
||||
maybeBind,
|
||||
memoize,
|
||||
moduleResolutionIsEqualTo,
|
||||
noTransformers,
|
||||
nodeModulesPathPart,
|
||||
noop,
|
||||
normalizePath,
|
||||
notImplementedResolver,
|
||||
optionsHaveChanges,
|
||||
outFile,
|
||||
packageIdToPackageName,
|
||||
packageIdToString,
|
||||
padLeft,
|
||||
parseIsolatedEntityName,
|
||||
parseJsonSourceFileConfigFileContent,
|
||||
pathIsAbsolute,
|
||||
pathIsRelative,
|
||||
projectReferenceIsEqualTo,
|
||||
removeFileExtension,
|
||||
removePrefix,
|
||||
removeSuffix,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
resolveConfigFileProjectName,
|
||||
resolveModuleName,
|
||||
resolveModuleNameFromCache,
|
||||
resolveTypeReferenceDirective,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setResolvedModule,
|
||||
setResolvedTypeReferenceDirective,
|
||||
skipTrivia,
|
||||
skipTypeChecking,
|
||||
some,
|
||||
sortAndDeduplicateDiagnostics,
|
||||
sourceFileAffectingCompilerOptions,
|
||||
sourceFileMayBeEmitted,
|
||||
stableSort,
|
||||
startsWith,
|
||||
stringContains,
|
||||
supportedJSExtensionsFlat,
|
||||
sys,
|
||||
targetOptionDeclaration,
|
||||
toFileNameLowerCase,
|
||||
tokenToString,
|
||||
trace,
|
||||
tracing,
|
||||
trimStringEnd,
|
||||
typeDirectiveIsEqualTo,
|
||||
walkUpParenthesizedExpressions,
|
||||
writeFileEnsuringDirectories,
|
||||
zipToModeAwareCache,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,21 +1,90 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
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, getModeForResolutionAtIndex,
|
||||
getModeForUsageLocation, getNormalizedAbsolutePath, getResolutionName, getRootLength, HasInvalidatedResolutions,
|
||||
ignoredPaths, inferredTypesContainingFile, isEmittedFileOfProgram, isExternalModuleNameRelative,
|
||||
isExternalOrCommonJsModule, isNodeModulesDirectory, isRootedDiskPath, isString, isStringLiteralLike, isTraceEnabled,
|
||||
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,
|
||||
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,
|
||||
clearMap,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
contains,
|
||||
createCacheWithRedirects,
|
||||
createModeAwareCache,
|
||||
createModuleResolutionCache,
|
||||
createMultiMap,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
emptyIterator,
|
||||
endsWith,
|
||||
extensionIsTS,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
firstDefinedIterator,
|
||||
getDirectoryPath,
|
||||
getEffectiveTypeRoots,
|
||||
getModeForFileReference,
|
||||
getModeForResolutionAtIndex,
|
||||
getModeForUsageLocation,
|
||||
getNormalizedAbsolutePath,
|
||||
getResolutionName,
|
||||
getRootLength,
|
||||
ignoredPaths,
|
||||
inferredTypesContainingFile,
|
||||
isEmittedFileOfProgram,
|
||||
isExternalModuleNameRelative,
|
||||
isExternalOrCommonJsModule,
|
||||
isNodeModulesDirectory,
|
||||
isRootedDiskPath,
|
||||
isString,
|
||||
isStringLiteralLike,
|
||||
isTraceEnabled,
|
||||
length,
|
||||
loadModuleFromGlobalCache,
|
||||
memoize,
|
||||
mutateMap,
|
||||
noopFileWatcher,
|
||||
normalizePath,
|
||||
packageIdToString,
|
||||
parseNodeModuleFromPath,
|
||||
pathContainsNodeModules,
|
||||
removeSuffix,
|
||||
removeTrailingDirectorySeparator,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
returnTrue,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
trace,
|
||||
unorderedRemoveItem,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,8 +1,31 @@
|
||||
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, trimStringStart,
|
||||
CharacterCodes,
|
||||
CommentDirective,
|
||||
CommentDirectiveType,
|
||||
CommentKind,
|
||||
CommentRange,
|
||||
Debug,
|
||||
DiagnosticMessage,
|
||||
Diagnostics,
|
||||
JSDocSyntaxKind,
|
||||
JsxTokenSyntaxKind,
|
||||
KeywordSyntaxKind,
|
||||
LanguageVariant,
|
||||
LineAndCharacter,
|
||||
MapLike,
|
||||
ScriptTarget,
|
||||
SourceFileLike,
|
||||
SyntaxKind,
|
||||
TokenFlags,
|
||||
append,
|
||||
arraysEqual,
|
||||
binarySearch,
|
||||
compareValues,
|
||||
getEntries,
|
||||
identity,
|
||||
parsePseudoBigInt,
|
||||
positionIsSynthesized,
|
||||
trimStringStart,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export type ErrorCallback = (message: DiagnosticMessage, length: number) => void;
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
import {
|
||||
compareStringsCaseSensitive, compareValues, Comparison, Debug, emptyArray, every, isArray, map, some, trimString,
|
||||
Comparison,
|
||||
Debug,
|
||||
compareStringsCaseSensitive,
|
||||
compareValues,
|
||||
emptyArray,
|
||||
every,
|
||||
isArray,
|
||||
map,
|
||||
some,
|
||||
trimString,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// https://semver.org/#spec-item-2
|
||||
|
||||
@ -1,9 +1,30 @@
|
||||
import {
|
||||
arrayFrom, binarySearchKey, CharacterCodes, combinePaths, compareValues, Debug, DocumentPosition,
|
||||
DocumentPositionMapper, DocumentPositionMapperHost, EmitHost, emptyArray, every, getDirectoryPath,
|
||||
getNormalizedAbsolutePath, getPositionOfLineAndCharacter, getRelativePathToDirectoryOrUrl, identity, isArray,
|
||||
isString, LineAndCharacter, RawSourceMap, some, sortAndDeduplicate, SortedReadonlyArray,
|
||||
SourceMapGenerator, trimStringEnd,
|
||||
CharacterCodes,
|
||||
Debug,
|
||||
DocumentPosition,
|
||||
DocumentPositionMapper,
|
||||
DocumentPositionMapperHost,
|
||||
EmitHost,
|
||||
LineAndCharacter,
|
||||
RawSourceMap,
|
||||
SortedReadonlyArray,
|
||||
SourceMapGenerator,
|
||||
arrayFrom,
|
||||
binarySearchKey,
|
||||
combinePaths,
|
||||
compareValues,
|
||||
emptyArray,
|
||||
every,
|
||||
getDirectoryPath,
|
||||
getNormalizedAbsolutePath,
|
||||
getPositionOfLineAndCharacter,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
identity,
|
||||
isArray,
|
||||
isString,
|
||||
some,
|
||||
sortAndDeduplicate,
|
||||
trimStringEnd,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,7 +1,29 @@
|
||||
import {
|
||||
clear, EntityNameOrEntityNameExpression, forEach, getOwnValues, getSymbolId, Identifier, IndexedAccessType,
|
||||
IndexType, InterfaceType, MappedType, Node, ObjectFlags, ObjectType, ResolvedType, Signature, Symbol, SymbolWalker,
|
||||
SyntaxKind, Type, TypeFlags, TypeParameter, TypePredicate, TypeQueryNode, TypeReference, UnionOrIntersectionType,
|
||||
EntityNameOrEntityNameExpression,
|
||||
Identifier,
|
||||
IndexType,
|
||||
IndexedAccessType,
|
||||
InterfaceType,
|
||||
MappedType,
|
||||
Node,
|
||||
ObjectFlags,
|
||||
ObjectType,
|
||||
ResolvedType,
|
||||
Signature,
|
||||
Symbol,
|
||||
SymbolWalker,
|
||||
SyntaxKind,
|
||||
Type,
|
||||
TypeFlags,
|
||||
TypeParameter,
|
||||
TypePredicate,
|
||||
TypeQueryNode,
|
||||
TypeReference,
|
||||
UnionOrIntersectionType,
|
||||
clear,
|
||||
forEach,
|
||||
getOwnValues,
|
||||
getSymbolId,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,11 +1,51 @@
|
||||
import {
|
||||
AssertionLevel, closeFileWatcher, closeFileWatcherOf, combinePaths, Comparison, contains, containsPath,
|
||||
createGetCanonicalFileName, createMultiMap, Debug, directorySeparator, emptyArray, emptyFileSystemEntries, endsWith,
|
||||
enumerateInsertsAndDeletes, FileSystemEntries, getDirectoryPath, getFallbackOptions,
|
||||
getNormalizedAbsolutePath, getRelativePathToDirectoryOrUrl, getRootLength, getStringComparer, isArray, isNodeLikeSystem, isString,
|
||||
mapDefined, matchesExclude, matchFiles, memoize, noop, normalizePath, normalizeSlashes, orderedRemoveItem,
|
||||
Path, perfLogger, PollingWatchKind, RequireResult, resolveJSModule, some, startsWith, stringContains, timestamp,
|
||||
unorderedRemoveItem, WatchDirectoryKind, WatchFileKind, WatchOptions, writeFileEnsuringDirectories,
|
||||
AssertionLevel,
|
||||
Comparison,
|
||||
Debug,
|
||||
FileSystemEntries,
|
||||
Path,
|
||||
PollingWatchKind,
|
||||
RequireResult,
|
||||
WatchDirectoryKind,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
contains,
|
||||
containsPath,
|
||||
createGetCanonicalFileName,
|
||||
createMultiMap,
|
||||
directorySeparator,
|
||||
emptyArray,
|
||||
emptyFileSystemEntries,
|
||||
endsWith,
|
||||
enumerateInsertsAndDeletes,
|
||||
getDirectoryPath,
|
||||
getFallbackOptions,
|
||||
getNormalizedAbsolutePath,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
getRootLength,
|
||||
getStringComparer,
|
||||
isArray,
|
||||
isNodeLikeSystem,
|
||||
isString,
|
||||
mapDefined,
|
||||
matchFiles,
|
||||
matchesExclude,
|
||||
memoize,
|
||||
noop,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
orderedRemoveItem,
|
||||
perfLogger,
|
||||
resolveJSModule,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
timestamp,
|
||||
unorderedRemoveItem,
|
||||
writeFileEnsuringDirectories,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any;
|
||||
|
||||
@ -1,7 +1,25 @@
|
||||
import {
|
||||
combinePaths, ConditionalType, Debug, EvolvingArrayType, getLineAndCharacterOfPosition, getSourceFileOfNode,
|
||||
IndexedAccessType, IndexType, IntersectionType, LineAndCharacter, Node, ObjectFlags, Path, ReverseMappedType,
|
||||
SubstitutionType, timestamp, Type, TypeFlags, TypeReference, unescapeLeadingUnderscores, UnionType,
|
||||
ConditionalType,
|
||||
Debug,
|
||||
EvolvingArrayType,
|
||||
IndexType,
|
||||
IndexedAccessType,
|
||||
IntersectionType,
|
||||
LineAndCharacter,
|
||||
Node,
|
||||
ObjectFlags,
|
||||
Path,
|
||||
ReverseMappedType,
|
||||
SubstitutionType,
|
||||
Type,
|
||||
TypeFlags,
|
||||
TypeReference,
|
||||
UnionType,
|
||||
combinePaths,
|
||||
getLineAndCharacterOfPosition,
|
||||
getSourceFileOfNode,
|
||||
timestamp,
|
||||
unescapeLeadingUnderscores,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,15 +1,76 @@
|
||||
import {
|
||||
addRange, append, Bundle, chainBundle, CompilerOptions, createEmitHelperFactory, CustomTransformer,
|
||||
CustomTransformerFactory, CustomTransformers, Debug, DiagnosticWithLocation, disposeEmitNodes, EmitFlags,
|
||||
EmitHelper, EmitHint, EmitHost, EmitOnly, EmitResolver, EmitTransformers, 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, transformES2018,
|
||||
transformES2019, transformES2020, transformES2021, transformES5, transformESNext, transformGenerators, transformJsx,
|
||||
transformLegacyDecorators, transformModule, transformNodeModule, transformSystemModule, transformTypeScript,
|
||||
Bundle,
|
||||
CompilerOptions,
|
||||
CustomTransformer,
|
||||
CustomTransformerFactory,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DiagnosticWithLocation,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitHint,
|
||||
EmitHost,
|
||||
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,
|
||||
getEmitFlags,
|
||||
getEmitModuleKind,
|
||||
getEmitScriptTarget,
|
||||
getJSXTransformEnabled,
|
||||
getParseTreeNode,
|
||||
getSourceFileOfNode,
|
||||
isBundle,
|
||||
isSourceFile,
|
||||
map,
|
||||
memoize,
|
||||
noop,
|
||||
notImplemented,
|
||||
returnUndefined,
|
||||
setEmitFlags,
|
||||
some,
|
||||
tracing,
|
||||
transformClassFields,
|
||||
transformDeclarations,
|
||||
transformECMAScriptModule,
|
||||
transformES2015,
|
||||
transformES2016,
|
||||
transformES2017,
|
||||
transformES2018,
|
||||
transformES2019,
|
||||
transformES2020,
|
||||
transformES2021,
|
||||
transformES5,
|
||||
transformESNext,
|
||||
transformGenerators,
|
||||
transformJsx,
|
||||
transformLegacyDecorators,
|
||||
transformModule,
|
||||
transformNodeModule,
|
||||
transformSystemModule,
|
||||
transformTypeScript,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,39 +1,175 @@
|
||||
import {
|
||||
__String, AccessorDeclaration, addEmitFlags, addEmitHelpers, addRange, append, AssignmentOperator,
|
||||
AssignmentPattern, AutoAccessorPropertyDeclaration, BinaryExpression, BindingOrAssignmentElement, 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, getCommentRange,
|
||||
getEffectiveBaseTypeNode, getEmitFlags, getEmitScriptTarget, getInitializerOfBindingOrAssignmentElement,
|
||||
getNameOfDeclaration, getNodeForGeneratedName, getNonAssignmentOperatorForCompoundAssignment, getOriginalNode,
|
||||
getOriginalNodeId, getProperties, getSourceMapRange, getStaticPropertiesAndClassStaticBlock,
|
||||
getTargetOfBindingOrAssignmentElement, getUseDefineForClassFields, hasAbstractModifier, hasAccessorModifier,
|
||||
hasDecorators, hasStaticModifier, hasSyntacticModifier, Identifier, InKeyword, isAccessorModifier,
|
||||
isArrayLiteralExpression, isArrowFunction, isAssignmentExpression, isAutoAccessorPropertyDeclaration, isCallChain,
|
||||
isClassDeclaration, isClassElement, isClassStaticBlockDeclaration, isCompoundAssignment, isComputedPropertyName,
|
||||
isConstructorDeclaration, isDestructuringAssignment, isElementAccessExpression, isExpression, isForInitializer,
|
||||
isGeneratedIdentifier, isGeneratedPrivateIdentifier, isGetAccessor, isGetAccessorDeclaration, isHeritageClause,
|
||||
isIdentifier, isInitializedProperty, isMethodDeclaration, isModifier, isModifierLike,
|
||||
isNonStaticMethodOrAccessorWithPrivateName, isObjectBindingOrAssignmentElement, isObjectLiteralElementLike,
|
||||
isParameterPropertyDeclaration, isParenthesizedExpression, isPrefixUnaryExpression, isPrivateIdentifier,
|
||||
isPrivateIdentifierClassElementDeclaration, isPrivateIdentifierPropertyAccessExpression, isPropertyAccessExpression,
|
||||
isPropertyAssignment, isPropertyDeclaration, isPropertyName, isSetAccessor, isSetAccessorDeclaration,
|
||||
isShorthandPropertyAssignment, isSimpleCopiableExpression, isSimpleInlineableExpression, isSpreadAssignment,
|
||||
isSpreadElement, isStatement, isStatic, isStaticModifier, 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, setSourceMapRange, setSyntheticLeadingComments, setSyntheticTrailingComments,
|
||||
setTextRange, skipOuterExpressions, skipParentheses, skipPartiallyEmittedExpressions, some, SourceFile,
|
||||
startOnNewLine, Statement, SuperProperty, SyntaxKind, TaggedTemplateExpression, ThisExpression,
|
||||
TransformationContext, TransformFlags, tryGetTextOfPropertyName, UnderscoreEscapedMap, unescapeLeadingUnderscores,
|
||||
VariableStatement, visitArray, visitEachChild, visitFunctionBody, visitIterationBody, visitNode, visitNodes,
|
||||
visitParameterList, VisitResult, Bundle,
|
||||
AccessorDeclaration,
|
||||
AssignmentOperator,
|
||||
AssignmentPattern,
|
||||
AutoAccessorPropertyDeclaration,
|
||||
BinaryExpression,
|
||||
BindingOrAssignmentElement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
ComputedPropertyName,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
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,
|
||||
getEmitScriptTarget,
|
||||
getInitializerOfBindingOrAssignmentElement,
|
||||
getNameOfDeclaration,
|
||||
getNodeForGeneratedName,
|
||||
getNonAssignmentOperatorForCompoundAssignment,
|
||||
getOriginalNode,
|
||||
getOriginalNodeId,
|
||||
getProperties,
|
||||
getSourceMapRange,
|
||||
getStaticPropertiesAndClassStaticBlock,
|
||||
getTargetOfBindingOrAssignmentElement,
|
||||
getUseDefineForClassFields,
|
||||
hasAbstractModifier,
|
||||
hasAccessorModifier,
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
isAccessorModifier,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
isAssignmentExpression,
|
||||
isAutoAccessorPropertyDeclaration,
|
||||
isCallChain,
|
||||
isClassDeclaration,
|
||||
isClassElement,
|
||||
isClassStaticBlockDeclaration,
|
||||
isCompoundAssignment,
|
||||
isComputedPropertyName,
|
||||
isConstructorDeclaration,
|
||||
isDestructuringAssignment,
|
||||
isElementAccessExpression,
|
||||
isExpression,
|
||||
isForInitializer,
|
||||
isGeneratedIdentifier,
|
||||
isGeneratedPrivateIdentifier,
|
||||
isGetAccessor,
|
||||
isGetAccessorDeclaration,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isInitializedProperty,
|
||||
isMethodDeclaration,
|
||||
isModifier,
|
||||
isModifierLike,
|
||||
isNonStaticMethodOrAccessorWithPrivateName,
|
||||
isObjectBindingOrAssignmentElement,
|
||||
isObjectLiteralElementLike,
|
||||
isParameterPropertyDeclaration,
|
||||
isParenthesizedExpression,
|
||||
isPrefixUnaryExpression,
|
||||
isPrivateIdentifier,
|
||||
isPrivateIdentifierClassElementDeclaration,
|
||||
isPrivateIdentifierPropertyAccessExpression,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyAssignment,
|
||||
isPropertyDeclaration,
|
||||
isPropertyName,
|
||||
isSetAccessor,
|
||||
isSetAccessorDeclaration,
|
||||
isShorthandPropertyAssignment,
|
||||
isSimpleCopiableExpression,
|
||||
isSimpleInlineableExpression,
|
||||
isSpreadAssignment,
|
||||
isSpreadElement,
|
||||
isStatement,
|
||||
isStatic,
|
||||
isStaticModifier,
|
||||
isSuperProperty,
|
||||
isTemplateLiteral,
|
||||
isThisProperty,
|
||||
map,
|
||||
moveRangePastModifiers,
|
||||
moveRangePos,
|
||||
nodeIsSynthesized,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setSyntheticLeadingComments,
|
||||
setSyntheticTrailingComments,
|
||||
setTextRange,
|
||||
skipOuterExpressions,
|
||||
skipParentheses,
|
||||
skipPartiallyEmittedExpressions,
|
||||
some,
|
||||
startOnNewLine,
|
||||
tryGetTextOfPropertyName,
|
||||
unescapeLeadingUnderscores,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ClassPropertySubstitutionFlags {
|
||||
|
||||
@ -1,43 +1,215 @@
|
||||
import {
|
||||
AccessorDeclaration, addRelatedInfo, AllAccessorDeclarations, AnyImportSyntax, append, ArrayBindingElement,
|
||||
arrayFrom, AssertClause, BindingElement, BindingName, BindingPattern, Bundle, CallSignatureDeclaration,
|
||||
canHaveModifiers, canProduceDiagnostics, ClassDeclaration, CommentRange, compact, concatenate, ConditionalTypeNode,
|
||||
ConstructorDeclaration, ConstructorTypeNode, ConstructSignatureDeclaration, contains, createDiagnosticForNode,
|
||||
createEmptyExports, createGetSymbolAccessibilityDiagnosticForNode,
|
||||
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, getEffectiveModifierFlags,
|
||||
getExternalModuleImportEqualsDeclarationExpression, getExternalModuleNameFromDeclaration,
|
||||
getFirstConstructorWithBody, getLeadingCommentRanges, getLeadingCommentRangesOfNode, getLineAndCharacterOfPosition,
|
||||
getNameOfDeclaration, getOriginalNodeId, getOutputPathsFor, getParseTreeNode, getRelativePathToDirectoryOrUrl,
|
||||
getResolutionModeOverrideForClause, getResolvedExternalModuleName, getSetAccessorValueParameter,
|
||||
getSourceFileOfNode, GetSymbolAccessibilityDiagnostic, getTextOfNode, getThisParameter, getTrailingCommentRanges,
|
||||
hasDynamicName, hasEffectiveModifier, hasExtension, hasJSDocNodes, HasModifiers, hasSyntacticModifier,
|
||||
HeritageClause, Identifier, ImportDeclaration, ImportEqualsDeclaration, ImportTypeNode, IndexSignatureDeclaration,
|
||||
InterfaceDeclaration, isAnyImportSyntax, isArray, isBindingPattern, isClassDeclaration, isDeclaration, isEntityName,
|
||||
isEntityNameExpression, isExportAssignment, isExportDeclaration, isExternalModule, isExternalModuleAugmentation,
|
||||
isExternalModuleIndicator, isExternalModuleReference, isExternalOrCommonJsModule, isFunctionDeclaration,
|
||||
isFunctionLike, isGlobalScopeAugmentation, isIdentifier, isImportDeclaration, isImportEqualsDeclaration,
|
||||
isIndexSignatureDeclaration, isInterfaceDeclaration, isJsonSourceFile, isLateVisibilityPaintedStatement,
|
||||
isLiteralImportTypeNode, isMappedTypeNode, isMethodDeclaration, isMethodSignature, isModifier, isModuleDeclaration,
|
||||
isNightly, isOmittedExpression, isPrivateIdentifier, isPropertyAccessExpression, isPropertySignature,
|
||||
isSemicolonClassElement, isSetAccessorDeclaration, isSourceFile, isSourceFileJS, isSourceFileNotJson,
|
||||
isStringANonContextualKeyword, isStringLiteral, isStringLiteralLike, isTupleTypeNode, isTypeAliasDeclaration,
|
||||
isTypeNode, isTypeParameterDeclaration, 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,
|
||||
AccessorDeclaration,
|
||||
AllAccessorDeclarations,
|
||||
AnyImportSyntax,
|
||||
ArrayBindingElement,
|
||||
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,
|
||||
compact,
|
||||
concatenate,
|
||||
contains,
|
||||
createDiagnosticForNode,
|
||||
createEmptyExports,
|
||||
createGetSymbolAccessibilityDiagnosticForNode,
|
||||
createGetSymbolAccessibilityDiagnosticForNodeName,
|
||||
createSymbolTable,
|
||||
createUnparsedSourceFile,
|
||||
declarationNameToString,
|
||||
emptyArray,
|
||||
factory,
|
||||
filter,
|
||||
flatMap,
|
||||
flatten,
|
||||
forEach,
|
||||
getCommentRange,
|
||||
getDirectoryPath,
|
||||
getEffectiveBaseTypeNode,
|
||||
getEffectiveModifierFlags,
|
||||
getExternalModuleImportEqualsDeclarationExpression,
|
||||
getExternalModuleNameFromDeclaration,
|
||||
getFirstConstructorWithBody,
|
||||
getLeadingCommentRanges,
|
||||
getLeadingCommentRangesOfNode,
|
||||
getLineAndCharacterOfPosition,
|
||||
getNameOfDeclaration,
|
||||
getOriginalNodeId,
|
||||
getOutputPathsFor,
|
||||
getParseTreeNode,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
getResolutionModeOverrideForClause,
|
||||
getResolvedExternalModuleName,
|
||||
getSetAccessorValueParameter,
|
||||
getSourceFileOfNode,
|
||||
getTextOfNode,
|
||||
getThisParameter,
|
||||
getTrailingCommentRanges,
|
||||
hasDynamicName,
|
||||
hasEffectiveModifier,
|
||||
hasExtension,
|
||||
hasJSDocNodes,
|
||||
hasSyntacticModifier,
|
||||
isAnyImportSyntax,
|
||||
isArray,
|
||||
isBindingPattern,
|
||||
isClassDeclaration,
|
||||
isDeclaration,
|
||||
isEntityName,
|
||||
isEntityNameExpression,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExternalModule,
|
||||
isExternalModuleAugmentation,
|
||||
isExternalModuleIndicator,
|
||||
isExternalModuleReference,
|
||||
isExternalOrCommonJsModule,
|
||||
isFunctionDeclaration,
|
||||
isFunctionLike,
|
||||
isGlobalScopeAugmentation,
|
||||
isIdentifier,
|
||||
isImportDeclaration,
|
||||
isImportEqualsDeclaration,
|
||||
isIndexSignatureDeclaration,
|
||||
isInterfaceDeclaration,
|
||||
isJsonSourceFile,
|
||||
isLateVisibilityPaintedStatement,
|
||||
isLiteralImportTypeNode,
|
||||
isMappedTypeNode,
|
||||
isMethodDeclaration,
|
||||
isMethodSignature,
|
||||
isModifier,
|
||||
isModuleDeclaration,
|
||||
isNightly,
|
||||
isOmittedExpression,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertySignature,
|
||||
isSemicolonClassElement,
|
||||
isSetAccessorDeclaration,
|
||||
isSourceFile,
|
||||
isSourceFileJS,
|
||||
isSourceFileNotJson,
|
||||
isStringANonContextualKeyword,
|
||||
isStringLiteral,
|
||||
isStringLiteralLike,
|
||||
isTupleTypeNode,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeNode,
|
||||
isTypeParameterDeclaration,
|
||||
isTypeQueryNode,
|
||||
isUnparsedSource,
|
||||
last,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
needsScopeMarker,
|
||||
normalizeSlashes,
|
||||
orderedRemoveItem,
|
||||
parseNodeFactory,
|
||||
pathContainsNodeModules,
|
||||
pathIsRelative,
|
||||
pushIfUnique,
|
||||
removeAllComments,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setTextRange,
|
||||
skipTrivia,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
transformNodes,
|
||||
tryCast,
|
||||
unescapeLeadingUnderscores,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../_namespaces/ts";
|
||||
import * as moduleSpecifiers from "../_namespaces/ts.moduleSpecifiers";
|
||||
|
||||
|
||||
@ -1,17 +1,64 @@
|
||||
import {
|
||||
BindingElement, CallSignatureDeclaration, ConstructorDeclaration, ConstructSignatureDeclaration, Debug, Declaration,
|
||||
DeclarationName, DiagnosticMessage, Diagnostics, 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,
|
||||
MethodDeclaration, MethodSignature, ModifierFlags, NamedDeclaration, Node, ParameterDeclaration,
|
||||
PropertyAccessExpression, PropertyDeclaration, PropertySignature, QualifiedName, SetAccessorDeclaration,
|
||||
SymbolAccessibility, SymbolAccessibilityResult, SyntaxKind, TypeAliasDeclaration, TypeParameterDeclaration,
|
||||
BindingElement,
|
||||
CallSignatureDeclaration,
|
||||
ConstructSignatureDeclaration,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
DiagnosticMessage,
|
||||
Diagnostics,
|
||||
ExpressionWithTypeArguments,
|
||||
FunctionDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
ImportEqualsDeclaration,
|
||||
IndexSignatureDeclaration,
|
||||
JSDocCallbackTag,
|
||||
JSDocEnumTag,
|
||||
JSDocTypedefTag,
|
||||
MethodDeclaration,
|
||||
MethodSignature,
|
||||
ModifierFlags,
|
||||
NamedDeclaration,
|
||||
Node,
|
||||
ParameterDeclaration,
|
||||
PropertyAccessExpression,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
QualifiedName,
|
||||
SetAccessorDeclaration,
|
||||
SymbolAccessibility,
|
||||
SymbolAccessibilityResult,
|
||||
SyntaxKind,
|
||||
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,17 +1,65 @@
|
||||
import {
|
||||
__String, addRange, append, ArrayBindingElement, ArrayBindingOrAssignmentPattern, BindingElement, BindingName,
|
||||
BindingOrAssignmentElement, BindingOrAssignmentElementTarget, BindingOrAssignmentPattern, Debug,
|
||||
DestructuringAssignment, ElementAccessExpression, every, Expression, factory, forEach,
|
||||
getElementsOfBindingOrAssignmentPattern, getInitializerOfBindingOrAssignmentElement,
|
||||
getPropertyNameOfBindingOrAssignmentElement, getRestIndicatorOfBindingOrAssignmentElement,
|
||||
getTargetOfBindingOrAssignmentElement, Identifier, idText, isArrayBindingElement, isArrayBindingOrAssignmentPattern,
|
||||
isBindingElement, isBindingName, isBindingOrAssignmentPattern, isComputedPropertyName, isDeclarationBindingElement,
|
||||
isDestructuringAssignment, isEmptyArrayLiteral, isEmptyObjectLiteral, isExpression, isIdentifier,
|
||||
isLiteralExpression, isObjectBindingOrAssignmentPattern, isOmittedExpression, isPropertyNameLiteral,
|
||||
isSimpleInlineableExpression, isStringOrNumericLiteralLike, isVariableDeclaration, last, LeftHandSideExpression,
|
||||
map, Node, NodeFactory, nodeIsSynthesized, ObjectBindingOrAssignmentPattern, ParameterDeclaration, PropertyName,
|
||||
setTextRange, some, TextRange, TransformationContext, TransformFlags,
|
||||
tryGetPropertyNameOfBindingOrAssignmentElement, VariableDeclaration, visitNode, VisitResult,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingOrAssignmentPattern,
|
||||
BindingElement,
|
||||
BindingName,
|
||||
BindingOrAssignmentElement,
|
||||
BindingOrAssignmentElementTarget,
|
||||
BindingOrAssignmentPattern,
|
||||
Debug,
|
||||
DestructuringAssignment,
|
||||
ElementAccessExpression,
|
||||
Expression,
|
||||
Identifier,
|
||||
LeftHandSideExpression,
|
||||
Node,
|
||||
NodeFactory,
|
||||
ObjectBindingOrAssignmentPattern,
|
||||
ParameterDeclaration,
|
||||
PropertyName,
|
||||
TextRange,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VariableDeclaration,
|
||||
VisitResult,
|
||||
__String,
|
||||
addRange,
|
||||
append,
|
||||
every,
|
||||
factory,
|
||||
forEach,
|
||||
getElementsOfBindingOrAssignmentPattern,
|
||||
getInitializerOfBindingOrAssignmentElement,
|
||||
getPropertyNameOfBindingOrAssignmentElement,
|
||||
getRestIndicatorOfBindingOrAssignmentElement,
|
||||
getTargetOfBindingOrAssignmentElement,
|
||||
idText,
|
||||
isArrayBindingElement,
|
||||
isArrayBindingOrAssignmentPattern,
|
||||
isBindingElement,
|
||||
isBindingName,
|
||||
isBindingOrAssignmentPattern,
|
||||
isComputedPropertyName,
|
||||
isDeclarationBindingElement,
|
||||
isDestructuringAssignment,
|
||||
isEmptyArrayLiteral,
|
||||
isEmptyObjectLiteral,
|
||||
isExpression,
|
||||
isIdentifier,
|
||||
isLiteralExpression,
|
||||
isObjectBindingOrAssignmentPattern,
|
||||
isOmittedExpression,
|
||||
isPropertyNameLiteral,
|
||||
isSimpleInlineableExpression,
|
||||
isStringOrNumericLiteralLike,
|
||||
isVariableDeclaration,
|
||||
last,
|
||||
map,
|
||||
nodeIsSynthesized,
|
||||
setTextRange,
|
||||
some,
|
||||
tryGetPropertyNameOfBindingOrAssignmentElement,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
interface FlattenContext {
|
||||
|
||||
@ -1,39 +1,209 @@
|
||||
import {
|
||||
__String, AccessorDeclaration, addEmitHelpers, addRange, addSyntheticLeadingComment, AllAccessorDeclarations,
|
||||
append, arrayIsEqualTo, ArrayLiteralExpression, ArrowFunction, BinaryExpression, BindingElement, BindingPattern,
|
||||
Block, BreakOrContinueStatement, 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,
|
||||
ForStatement, FunctionBody, FunctionDeclaration, FunctionExpression, FunctionLikeDeclaration,
|
||||
GeneratedIdentifierFlags, getAllAccessorDeclarations, getClassExtendsHeritageElement, getCombinedNodeFlags,
|
||||
getCommentRange, getEmitFlags, getEnclosingBlockScopeContainer, getFirstConstructorWithBody, getNameOfDeclaration,
|
||||
getOriginalNode, getParseTreeNode, getSourceMapRange, getSuperCallFromStatement, getUseDefineForClassFields,
|
||||
hasStaticModifier, hasSyntacticModifier, Identifier, idText, IfStatement, insertStatementAfterCustomPrologue,
|
||||
insertStatementsAfterCustomPrologue, insertStatementsAfterStandardPrologue, isArrayLiteralExpression,
|
||||
isArrowFunction, isAssignmentExpression, isBinaryExpression, isBindingPattern, isBlock, isCallExpression,
|
||||
isCallToHelper, isCaseBlock, isCaseClause, isCatchClause, isClassElement, isClassLike, isComputedPropertyName,
|
||||
isDefaultClause, isDestructuringAssignment, isExpression, isExpressionStatement, isForInitializer, isForStatement,
|
||||
isFunctionExpression, isFunctionLike, isHoistedFunction, isHoistedVariableStatement, isIdentifier,
|
||||
isIdentifierANonContextualKeyword, isIfStatement, isInternalName, isIterationStatement, isLabeledStatement,
|
||||
isModifier, isObjectLiteralElementLike, isOmittedExpression, isPackedArrayLiteral, isPrivateIdentifier,
|
||||
isPrologueDirective, isPropertyDeclaration, isPropertyName, isReturnStatement, isSpreadElement, isStatement,
|
||||
isStatic, isSuperProperty, isSwitchStatement, isTryStatement, 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, setParent, setSourceMapRange, setTextRange, 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, Bundle,
|
||||
AccessorDeclaration,
|
||||
AllAccessorDeclarations,
|
||||
ArrayLiteralExpression,
|
||||
ArrowFunction,
|
||||
BinaryExpression,
|
||||
BindingElement,
|
||||
BindingPattern,
|
||||
Block,
|
||||
BreakOrContinueStatement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
CommaListExpression,
|
||||
ComputedPropertyName,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DoStatement,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExpressionWithTypeArguments,
|
||||
FlattenLevel,
|
||||
ForInStatement,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
FunctionDeclaration,
|
||||
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,
|
||||
getCommentRange,
|
||||
getEmitFlags,
|
||||
getEnclosingBlockScopeContainer,
|
||||
getFirstConstructorWithBody,
|
||||
getNameOfDeclaration,
|
||||
getOriginalNode,
|
||||
getParseTreeNode,
|
||||
getSourceMapRange,
|
||||
getSuperCallFromStatement,
|
||||
getUseDefineForClassFields,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
insertStatementAfterCustomPrologue,
|
||||
insertStatementsAfterCustomPrologue,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
isAssignmentExpression,
|
||||
isBinaryExpression,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isCallExpression,
|
||||
isCallToHelper,
|
||||
isCaseBlock,
|
||||
isCaseClause,
|
||||
isCatchClause,
|
||||
isClassElement,
|
||||
isClassLike,
|
||||
isComputedPropertyName,
|
||||
isDefaultClause,
|
||||
isDestructuringAssignment,
|
||||
isExpression,
|
||||
isExpressionStatement,
|
||||
isForInitializer,
|
||||
isForStatement,
|
||||
isFunctionExpression,
|
||||
isFunctionLike,
|
||||
isHoistedFunction,
|
||||
isHoistedVariableStatement,
|
||||
isIdentifier,
|
||||
isIdentifierANonContextualKeyword,
|
||||
isIfStatement,
|
||||
isInternalName,
|
||||
isIterationStatement,
|
||||
isLabeledStatement,
|
||||
isModifier,
|
||||
isObjectLiteralElementLike,
|
||||
isOmittedExpression,
|
||||
isPackedArrayLiteral,
|
||||
isPrivateIdentifier,
|
||||
isPrologueDirective,
|
||||
isPropertyDeclaration,
|
||||
isPropertyName,
|
||||
isReturnStatement,
|
||||
isSpreadElement,
|
||||
isStatement,
|
||||
isStatic,
|
||||
isSuperProperty,
|
||||
isSwitchStatement,
|
||||
isTryStatement,
|
||||
isVariableDeclarationList,
|
||||
isVariableStatement,
|
||||
isWithStatement,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
map,
|
||||
moveRangeEnd,
|
||||
moveRangePos,
|
||||
moveSyntheticComments,
|
||||
nodeIsSynthesized,
|
||||
processTaggedTemplateExpression,
|
||||
rangeEndIsOnSameLineAsRangeStart,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
setTextRangeEnd,
|
||||
setTextRangePos,
|
||||
setTokenSourceMapRange,
|
||||
singleOrMany,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
spanMap,
|
||||
startOnNewLine,
|
||||
takeWhile,
|
||||
tryCast,
|
||||
unescapeLeadingUnderscores,
|
||||
unwrapInnermostStatementOfLabel,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ES2015SubstitutionFlags {
|
||||
|
||||
@ -1,7 +1,20 @@
|
||||
import {
|
||||
BinaryExpression, Bundle, chainBundle, Expression, isElementAccessExpression, isExpression, isPropertyAccessExpression,
|
||||
Node, setTextRange, SourceFile, SyntaxKind, TransformationContext, TransformFlags, visitEachChild, visitNode,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
Expression,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
isElementAccessExpression,
|
||||
isExpression,
|
||||
isPropertyAccessExpression,
|
||||
setTextRange,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,20 +1,100 @@
|
||||
import {
|
||||
__String, AccessorDeclaration, addEmitHelper, addEmitHelpers, advancedAsyncSuperHelper, ArrowFunction,
|
||||
asyncSuperHelper, AwaitExpression, BindingElement, Block, CallExpression, CatchClause, chainBundle,
|
||||
ClassDeclaration, concatenate, ConciseBody, ConstructorDeclaration, Debug, ElementAccessExpression, EmitFlags,
|
||||
EmitHint, EmitResolver, Expression, forEach, ForInitializer, ForInStatement, ForOfStatement, ForStatement,
|
||||
FunctionBody, FunctionDeclaration, FunctionExpression, FunctionFlags, FunctionLikeDeclaration,
|
||||
GeneratedIdentifierFlags, GetAccessorDeclaration, getEmitScriptTarget, getEntityNameFromTypeNode, getFunctionFlags,
|
||||
getInitializedVariables, getNodeId, getOriginalNode, insertStatementsAfterStandardPrologue, isBlock, isConciseBody,
|
||||
isEffectiveStrictModeSourceFile, isEntityName, isExpression, isForInitializer, isFunctionLike,
|
||||
isFunctionLikeDeclaration, isIdentifier, isModifierLike, isNodeWithPossibleHoistedDeclaration, isOmittedExpression,
|
||||
isPropertyAccessExpression, isStatement, 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, Bundle,
|
||||
AccessorDeclaration,
|
||||
ArrowFunction,
|
||||
AwaitExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EmitResolver,
|
||||
Expression,
|
||||
ForInStatement,
|
||||
ForInitializer,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionFlags,
|
||||
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,
|
||||
getInitializedVariables,
|
||||
getNodeId,
|
||||
getOriginalNode,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isBlock,
|
||||
isConciseBody,
|
||||
isEffectiveStrictModeSourceFile,
|
||||
isEntityName,
|
||||
isExpression,
|
||||
isForInitializer,
|
||||
isFunctionLike,
|
||||
isFunctionLikeDeclaration,
|
||||
isIdentifier,
|
||||
isModifierLike,
|
||||
isNodeWithPossibleHoistedDeclaration,
|
||||
isOmittedExpression,
|
||||
isPropertyAccessExpression,
|
||||
isStatement,
|
||||
isSuperProperty,
|
||||
isToken,
|
||||
isVariableDeclarationList,
|
||||
map,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
some,
|
||||
unescapeLeadingUnderscores,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
type SuperContainer = ClassDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration;
|
||||
|
||||
@ -1,23 +1,115 @@
|
||||
import {
|
||||
__String, AccessorDeclaration, addEmitFlags, addEmitHelper, addEmitHelpers, addRange, advancedAsyncSuperHelper,
|
||||
append, ArrowFunction, asyncSuperHelper, AwaitExpression, BinaryExpression, CallExpression, CatchClause,
|
||||
chainBundle, CommaListExpression, concatenate, ConciseBody, ConstructorDeclaration, createForOfBindingStatement,
|
||||
createSuperAccessVariableStatement, Debug, ElementAccessExpression, EmitFlags, EmitHint, Expression,
|
||||
ExpressionStatement, flattenDestructuringAssignment, flattenDestructuringBinding, FlattenLevel, ForInitializer,
|
||||
ForOfStatement, ForStatement, FunctionBody, FunctionDeclaration, FunctionExpression, FunctionFlags,
|
||||
FunctionLikeDeclaration, GeneratedIdentifierFlags, GetAccessorDeclaration, getEmitScriptTarget, getFunctionFlags,
|
||||
getNodeId, hasSyntacticModifier, Identifier, insertStatementsAfterStandardPrologue, isAssignmentPattern,
|
||||
isBindingPattern, isBlock, isConciseBody, isDestructuringAssignment, isEffectiveStrictModeSourceFile, isExpression,
|
||||
isForInitializer, isIdentifier, isModifier, isModifierLike, isObjectLiteralElementLike, isParameter,
|
||||
isPropertyAccessExpression, isPropertyName, isStatement, 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, Bundle,
|
||||
AccessorDeclaration,
|
||||
ArrowFunction,
|
||||
AwaitExpression,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CatchClause,
|
||||
CommaListExpression,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
FlattenLevel,
|
||||
ForInitializer,
|
||||
ForOfStatement,
|
||||
ForStatement,
|
||||
FunctionBody,
|
||||
FunctionDeclaration,
|
||||
FunctionExpression,
|
||||
FunctionFlags,
|
||||
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,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isAssignmentPattern,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isConciseBody,
|
||||
isDestructuringAssignment,
|
||||
isEffectiveStrictModeSourceFile,
|
||||
isExpression,
|
||||
isForInitializer,
|
||||
isIdentifier,
|
||||
isModifier,
|
||||
isModifierLike,
|
||||
isObjectLiteralElementLike,
|
||||
isParameter,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyName,
|
||||
isStatement,
|
||||
isSuperProperty,
|
||||
isToken,
|
||||
isVariableDeclarationList,
|
||||
processTaggedTemplateExpression,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
skipParentheses,
|
||||
some,
|
||||
startOnNewLine,
|
||||
unwrapInnermostStatementOfLabel,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitLexicalEnvironment,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
const enum ESNextSubstitutionFlags {
|
||||
|
||||
@ -1,7 +1,16 @@
|
||||
import {
|
||||
Bundle,
|
||||
CatchClause, chainBundle, isBlock, Node, SourceFile, SyntaxKind, TransformationContext, TransformFlags,
|
||||
visitEachChild, visitNode, VisitResult,
|
||||
CatchClause,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
isBlock,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,10 +1,41 @@
|
||||
import {
|
||||
AccessExpression, addEmitFlags, BinaryExpression, Bundle, CallExpression, cast, chainBundle, Debug, DeleteExpression,
|
||||
EmitFlags, Expression, isCallChain, isExpression, isGeneratedIdentifier, isIdentifier, isNonNullChain,
|
||||
isOptionalChain, isParenthesizedExpression, isSimpleCopiableExpression, isSyntheticReference,
|
||||
isTaggedTemplateExpression, Node, OptionalChain, OuterExpressionKinds, ParenthesizedExpression, setOriginalNode,
|
||||
setTextRange, skipParentheses, skipPartiallyEmittedExpressions, SourceFile, SyntaxKind, TransformationContext,
|
||||
TransformFlags, visitEachChild, visitNode, visitNodes, VisitResult,
|
||||
AccessExpression,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
Debug,
|
||||
DeleteExpression,
|
||||
EmitFlags,
|
||||
Expression,
|
||||
Node,
|
||||
OptionalChain,
|
||||
OuterExpressionKinds,
|
||||
ParenthesizedExpression,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
addEmitFlags,
|
||||
cast,
|
||||
chainBundle,
|
||||
isCallChain,
|
||||
isExpression,
|
||||
isGeneratedIdentifier,
|
||||
isIdentifier,
|
||||
isNonNullChain,
|
||||
isOptionalChain,
|
||||
isParenthesizedExpression,
|
||||
isSimpleCopiableExpression,
|
||||
isSyntheticReference,
|
||||
isTaggedTemplateExpression,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
skipParentheses,
|
||||
skipPartiallyEmittedExpressions,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,9 +1,26 @@
|
||||
import {
|
||||
AssignmentExpression, BinaryExpression, Bundle, chainBundle, getNonAssignmentOperatorForCompoundAssignment,
|
||||
isAccessExpression, isExpression, isLeftHandSideExpression, isLogicalOrCoalescingAssignmentExpression,
|
||||
isPropertyAccessExpression, isSimpleCopiableExpression, LogicalOrCoalescingAssignmentOperator, Node,
|
||||
skipParentheses, SourceFile, SyntaxKind, Token, TransformationContext, TransformFlags, visitEachChild, visitNode,
|
||||
AssignmentExpression,
|
||||
BinaryExpression,
|
||||
Bundle,
|
||||
LogicalOrCoalescingAssignmentOperator,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
Token,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
getNonAssignmentOperatorForCompoundAssignment,
|
||||
isAccessExpression,
|
||||
isExpression,
|
||||
isLeftHandSideExpression,
|
||||
isLogicalOrCoalescingAssignmentExpression,
|
||||
isPropertyAccessExpression,
|
||||
isSimpleCopiableExpression,
|
||||
skipParentheses,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,9 +1,28 @@
|
||||
import {
|
||||
Bundle,
|
||||
chainBundle, EmitHint, Expression, getOriginalNodeId, Identifier, idText, isIdentifier, isPrivateIdentifier,
|
||||
isPropertyAccessExpression, isPropertyAssignment, JsxClosingElement, JsxEmit, JsxOpeningElement,
|
||||
JsxSelfClosingElement, Node, nodeIsSynthesized, PropertyAccessExpression, PropertyAssignment, setTextRange,
|
||||
SourceFile, stringToToken, SyntaxKind, TransformationContext,
|
||||
EmitHint,
|
||||
Expression,
|
||||
Identifier,
|
||||
JsxClosingElement,
|
||||
JsxEmit,
|
||||
JsxOpeningElement,
|
||||
JsxSelfClosingElement,
|
||||
Node,
|
||||
PropertyAccessExpression,
|
||||
PropertyAssignment,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
chainBundle,
|
||||
getOriginalNodeId,
|
||||
idText,
|
||||
isIdentifier,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyAssignment,
|
||||
nodeIsSynthesized,
|
||||
setTextRange,
|
||||
stringToToken,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,6 +1,12 @@
|
||||
import {
|
||||
Bundle,
|
||||
chainBundle, Node, SourceFile, TransformationContext, TransformFlags, visitEachChild, VisitResult,
|
||||
Node,
|
||||
SourceFile,
|
||||
TransformFlags,
|
||||
TransformationContext,
|
||||
VisitResult,
|
||||
chainBundle,
|
||||
visitEachChild,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,21 +1,100 @@
|
||||
import {
|
||||
AccessorDeclaration, addEmitHelpers, addSyntheticTrailingComment, ArrayLiteralExpression, Associativity,
|
||||
BinaryExpression, Block, BreakStatement, Bundle, CallExpression, CaseClause, chainBundle, CommaListExpression,
|
||||
ConditionalExpression, ContinueStatement, createExpressionForObjectLiteralElementLike, Debug, DoStatement,
|
||||
ElementAccessExpression, EmitFlags, EmitHint, Expression, ExpressionStatement, forEach, ForInStatement,
|
||||
ForStatement, FunctionDeclaration, FunctionExpression, getEmitFlags, getEmitScriptTarget,
|
||||
getExpressionAssociativity, getInitializedVariables, getNonAssignmentOperatorForCompoundAssignment, getOriginalNode,
|
||||
getOriginalNodeId, Identifier, idText, IfStatement, InitializedVariableDeclaration,
|
||||
insertStatementsAfterStandardPrologue, isBinaryExpression, isBlock, isCompoundAssignment, isExpression,
|
||||
isFunctionLikeDeclaration, isGeneratedIdentifier, isIdentifier, isImportCall, isLeftHandSideExpression,
|
||||
isLogicalOperator, 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,
|
||||
AccessorDeclaration,
|
||||
ArrayLiteralExpression,
|
||||
Associativity,
|
||||
BinaryExpression,
|
||||
Block,
|
||||
BreakStatement,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CaseClause,
|
||||
CommaListExpression,
|
||||
ConditionalExpression,
|
||||
ContinueStatement,
|
||||
Debug,
|
||||
DoStatement,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
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,
|
||||
getInitializedVariables,
|
||||
getNonAssignmentOperatorForCompoundAssignment,
|
||||
getOriginalNode,
|
||||
getOriginalNodeId,
|
||||
idText,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isBinaryExpression,
|
||||
isBlock,
|
||||
isCompoundAssignment,
|
||||
isExpression,
|
||||
isFunctionLikeDeclaration,
|
||||
isGeneratedIdentifier,
|
||||
isIdentifier,
|
||||
isImportCall,
|
||||
isLeftHandSideExpression,
|
||||
isLogicalOperator,
|
||||
isObjectLiteralElementLike,
|
||||
isStatement,
|
||||
isVariableDeclarationList,
|
||||
lastOrUndefined,
|
||||
map,
|
||||
reduceLeft,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
startOnNewLine,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// Transforms generator functions into a compatible ES5 representation with similar runtime
|
||||
|
||||
@ -1,16 +1,81 @@
|
||||
import {
|
||||
addEmitHelpers, arrayFrom, Bundle, chainBundle, createExpressionForJsxElement, createExpressionForJsxFragment,
|
||||
createExpressionFromEntityName, createJsxFactoryExpression, Debug, emptyArray, Expression, filter, find, flatten,
|
||||
GeneratedIdentifierFlags, getEmitScriptTarget, getEntries, getJSXImplicitImportBase, getJSXRuntimeImport,
|
||||
getLineAndCharacterOfPosition, getOriginalNode, getSemanticJsxChildren, Identifier, idText, ImportSpecifier,
|
||||
insertStatementAfterCustomPrologue, isExpression, isExternalModule, isExternalOrCommonJsModule, isIdentifier,
|
||||
isIntrinsicJsxName, isJsxAttribute, isJsxElement, isJsxFragment, isJsxSelfClosingElement, isJsxSpreadAttribute,
|
||||
isLineBreak, 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,
|
||||
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,
|
||||
chainBundle,
|
||||
createExpressionForJsxElement,
|
||||
createExpressionForJsxFragment,
|
||||
createExpressionFromEntityName,
|
||||
createJsxFactoryExpression,
|
||||
emptyArray,
|
||||
filter,
|
||||
find,
|
||||
flatten,
|
||||
getEmitScriptTarget,
|
||||
getEntries,
|
||||
getJSXImplicitImportBase,
|
||||
getJSXRuntimeImport,
|
||||
getLineAndCharacterOfPosition,
|
||||
getOriginalNode,
|
||||
getSemanticJsxChildren,
|
||||
idText,
|
||||
insertStatementAfterCustomPrologue,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isExternalOrCommonJsModule,
|
||||
isIdentifier,
|
||||
isIntrinsicJsxName,
|
||||
isJsxAttribute,
|
||||
isJsxElement,
|
||||
isJsxFragment,
|
||||
isJsxSelfClosingElement,
|
||||
isJsxSpreadAttribute,
|
||||
isLineBreak,
|
||||
isSourceFile,
|
||||
isStringDoubleQuoted,
|
||||
isWhiteSpaceSingleLine,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
setParentRecursive,
|
||||
setTextRange,
|
||||
singleOrUndefined,
|
||||
spanMap,
|
||||
startOnNewLine,
|
||||
utf16EncodeAsString,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,16 +1,82 @@
|
||||
import {
|
||||
addEmitHelpers, addRange, AllDecorators, append, Bundle, canHaveDecorators, chainBundle, childIsDecorated, ClassDeclaration,
|
||||
ClassElement, ClassExpression, ClassLikeDeclaration, classOrConstructorParameterIsDecorated, ConstructorDeclaration,
|
||||
Decorator, elideNodes, EmitFlags, EmitHint, EnumMember, Expression, filter, flatMap, GetAccessorDeclaration,
|
||||
getAllDecoratorsOfClass, getAllDecoratorsOfClassElement, getEmitFlags, getEmitScriptTarget, getOriginalNodeId,
|
||||
hasAccessorModifier, hasDecorators, hasSyntacticModifier, Identifier, idText, isBindingName, isBlock,
|
||||
isClassElement, isComputedPropertyName, isDecorator, isExpression, isGeneratedIdentifier, isHeritageClause,
|
||||
isIdentifier, isModifier, isParameterDeclaration, isPrivateIdentifier, isPropertyDeclaration, isPropertyName,
|
||||
isSimpleInlineableExpression, isStatic, map, MethodDeclaration, ModifierFlags, moveRangePastModifiers, Node,
|
||||
NodeArray, NodeCheckFlags, NodeFlags, nodeOrChildIsDecorated, ParameterDeclaration, PropertyDeclaration,
|
||||
ScriptTarget, SetAccessorDeclaration, setCommentRange, setEmitFlags, setOriginalNode, setSourceMapRange,
|
||||
setTextRange, singleOrMany, some, SourceFile, Statement, SyntaxKind, TransformationContext, TransformFlags,
|
||||
visitEachChild, visitNode, visitNodes, VisitResult,
|
||||
AllDecorators,
|
||||
Bundle,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ConstructorDeclaration,
|
||||
Decorator,
|
||||
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,
|
||||
getAllDecoratorsOfClass,
|
||||
getAllDecoratorsOfClassElement,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
getOriginalNodeId,
|
||||
hasAccessorModifier,
|
||||
hasDecorators,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
isBindingName,
|
||||
isBlock,
|
||||
isClassElement,
|
||||
isComputedPropertyName,
|
||||
isDecorator,
|
||||
isExpression,
|
||||
isGeneratedIdentifier,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isModifier,
|
||||
isParameterDeclaration,
|
||||
isPrivateIdentifier,
|
||||
isPropertyDeclaration,
|
||||
isPropertyName,
|
||||
isSimpleInlineableExpression,
|
||||
isStatic,
|
||||
map,
|
||||
moveRangePastModifiers,
|
||||
nodeOrChildIsDecorated,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setSourceMapRange,
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
some,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,12 +1,52 @@
|
||||
import {
|
||||
addRange, append, Bundle, chainBundle, createEmptyExports, createExternalHelpersImportDeclarationIfNeeded, Debug, EmitFlags,
|
||||
EmitHint, ExportAssignment, ExportDeclaration, Expression, GeneratedIdentifierFlags, getEmitFlags,
|
||||
getEmitModuleKind, getEmitScriptTarget, getExternalModuleNameLiteral, hasSyntacticModifier, Identifier, idText,
|
||||
ImportDeclaration, ImportEqualsDeclaration, insertStatementsAfterCustomPrologue,
|
||||
isExportNamespaceAsDefaultDeclaration, isExternalModule, isExternalModuleImportEqualsDeclaration,
|
||||
isExternalModuleIndicator, isIdentifier, isNamespaceExport, isSourceFile, isStatement, ModifierFlags,
|
||||
ModuleKind, Node, NodeFlags, ScriptTarget, setOriginalNode, setTextRange, singleOrMany, some, SourceFile, Statement,
|
||||
SyntaxKind, TransformationContext, VariableStatement, visitEachChild, visitNodes, VisitResult,
|
||||
Bundle,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
ExportAssignment,
|
||||
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,
|
||||
idText,
|
||||
insertStatementsAfterCustomPrologue,
|
||||
isExportNamespaceAsDefaultDeclaration,
|
||||
isExternalModule,
|
||||
isExternalModuleImportEqualsDeclaration,
|
||||
isExternalModuleIndicator,
|
||||
isIdentifier,
|
||||
isNamespaceExport,
|
||||
isSourceFile,
|
||||
isStatement,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
some,
|
||||
visitEachChild,
|
||||
visitNodes,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,30 +1,138 @@
|
||||
import {
|
||||
addEmitFlags, addEmitHelper, addEmitHelpers, addRange, append, ArrowFunction, BinaryExpression, BindingElement,
|
||||
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, getEmitFlags, getEmitModuleKind, getEmitScriptTarget, getESModuleInterop,
|
||||
getExportNeedsImportStarHelper, getExternalHelpersModuleName, getExternalModuleNameLiteral,
|
||||
getImportNeedsImportDefaultHelper, getImportNeedsImportStarHelper, getLocalNameForExternalImport,
|
||||
getNamespaceDeclarationNode, getNodeId, getOriginalNodeId, getStrictOptionValue, getTextOfIdentifierOrLiteral,
|
||||
hasJsonModuleEmitEnabled, hasSyntacticModifier, Identifier, idText, ImportCall, ImportDeclaration,
|
||||
ImportEqualsDeclaration, InitializedVariableDeclaration, insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression, isArrowFunction, isAssignmentOperator, isBindingPattern, isClassExpression,
|
||||
isDeclarationNameOfEnumOrNamespace, isDefaultImport, isDestructuringAssignment, isEffectiveExternalModule,
|
||||
isExportDeclaration, isExportName, isExportNamespaceAsDefaultDeclaration, isExpression, isExternalModule,
|
||||
isExternalModuleImportEqualsDeclaration, isForInitializer, isFunctionExpression, isGeneratedIdentifier,
|
||||
isIdentifier, isImportCall, isImportClause, isImportEqualsDeclaration, isImportSpecifier, isJsonSourceFile,
|
||||
isLocalName, isModifier, isModifierLike, isNamedExports, isObjectLiteralExpression, isOmittedExpression,
|
||||
isPrefixUnaryExpression, isShorthandPropertyAssignment, isSimpleCopiableExpression, isSimpleInlineableExpression,
|
||||
isSpreadElement, isStatement, 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,
|
||||
CallExpression,
|
||||
ClassDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DestructuringAssignment,
|
||||
EmitFlags,
|
||||
EmitHelper,
|
||||
EmitHint,
|
||||
EndOfDeclarationMarker,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExternalModuleInfo,
|
||||
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,
|
||||
getExportNeedsImportStarHelper,
|
||||
getExternalHelpersModuleName,
|
||||
getExternalModuleNameLiteral,
|
||||
getImportNeedsImportDefaultHelper,
|
||||
getImportNeedsImportStarHelper,
|
||||
getLocalNameForExternalImport,
|
||||
getNamespaceDeclarationNode,
|
||||
getNodeId,
|
||||
getOriginalNodeId,
|
||||
getStrictOptionValue,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasJsonModuleEmitEnabled,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
isAssignmentOperator,
|
||||
isBindingPattern,
|
||||
isClassExpression,
|
||||
isDeclarationNameOfEnumOrNamespace,
|
||||
isDefaultImport,
|
||||
isDestructuringAssignment,
|
||||
isEffectiveExternalModule,
|
||||
isExportDeclaration,
|
||||
isExportName,
|
||||
isExportNamespaceAsDefaultDeclaration,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isExternalModuleImportEqualsDeclaration,
|
||||
isForInitializer,
|
||||
isFunctionExpression,
|
||||
isGeneratedIdentifier,
|
||||
isIdentifier,
|
||||
isImportCall,
|
||||
isImportClause,
|
||||
isImportEqualsDeclaration,
|
||||
isImportSpecifier,
|
||||
isJsonSourceFile,
|
||||
isLocalName,
|
||||
isModifier,
|
||||
isModifierLike,
|
||||
isNamedExports,
|
||||
isObjectLiteralExpression,
|
||||
isOmittedExpression,
|
||||
isPrefixUnaryExpression,
|
||||
isShorthandPropertyAssignment,
|
||||
isSimpleCopiableExpression,
|
||||
isSimpleInlineableExpression,
|
||||
isSpreadElement,
|
||||
isStatement,
|
||||
isStringLiteral,
|
||||
length,
|
||||
mapDefined,
|
||||
outFile,
|
||||
reduceLeft,
|
||||
removeAllComments,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
startOnNewLine,
|
||||
tryGetModuleNameFromFile,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,6 +1,16 @@
|
||||
import {
|
||||
Bundle, Debug, EmitHint, isSourceFile, map, ModuleKind, Node, SourceFile, SyntaxKind, TransformationContext,
|
||||
transformECMAScriptModule, transformModule,
|
||||
Bundle,
|
||||
Debug,
|
||||
EmitHint,
|
||||
ModuleKind,
|
||||
Node,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
isSourceFile,
|
||||
map,
|
||||
transformECMAScriptModule,
|
||||
transformModule,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,27 +1,133 @@
|
||||
import {
|
||||
addRange, append, BinaryExpression, BindingElement, Block, Bundle, CaseBlock, CaseClause, CaseOrDefaultClause, CatchClause,
|
||||
chainBundle, ClassDeclaration, collectExternalModuleInfo, Debug, Declaration, DefaultClause,
|
||||
DestructuringAssignment, DoStatement, EmitFlags, EmitHint, EndOfDeclarationMarker, ExportAssignment,
|
||||
ExportDeclaration, Expression, ExpressionStatement, ExternalModuleInfo, firstOrUndefined,
|
||||
flattenDestructuringAssignment, FlattenLevel, forEach, ForInitializer, ForInStatement, ForOfStatement, ForStatement,
|
||||
FunctionDeclaration, getEmitFlags, getExternalHelpersModuleName, getExternalModuleNameLiteral,
|
||||
getLocalNameForExternalImport, getNodeId, getOriginalNode, getOriginalNodeId, getStrictOptionValue,
|
||||
getTextOfIdentifierOrLiteral, hasSyntacticModifier, Identifier, idText, ImportCall, ImportDeclaration,
|
||||
ImportEqualsDeclaration, insertStatementsAfterStandardPrologue, isArrayLiteralExpression, isAssignmentExpression,
|
||||
isAssignmentOperator, isBindingPattern, isBlock, isCaseBlock, isCaseOrDefaultClause, isClassElement,
|
||||
isDeclarationNameOfEnumOrNamespace, isDestructuringAssignment, isEffectiveExternalModule, isExpression,
|
||||
isExternalModule, isExternalModuleImportEqualsDeclaration, isForInitializer, isGeneratedIdentifier,
|
||||
isHeritageClause, isIdentifier, isImportCall, isImportClause, isImportMeta, isImportSpecifier, isLocalName,
|
||||
isModifierLike, isModuleOrEnumDeclaration, isNamedExports, isObjectLiteralExpression, isOmittedExpression,
|
||||
isParameterDeclaration, isPrefixUnaryExpression, isPropertyAssignment, isShorthandPropertyAssignment,
|
||||
isSpreadElement, 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,
|
||||
BinaryExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
Bundle,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
ClassDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DefaultClause,
|
||||
DestructuringAssignment,
|
||||
DoStatement,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EndOfDeclarationMarker,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
ExternalModuleInfo,
|
||||
FlattenLevel,
|
||||
ForInStatement,
|
||||
ForInitializer,
|
||||
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,
|
||||
getLocalNameForExternalImport,
|
||||
getNodeId,
|
||||
getOriginalNode,
|
||||
getOriginalNodeId,
|
||||
getStrictOptionValue,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isArrayLiteralExpression,
|
||||
isAssignmentExpression,
|
||||
isAssignmentOperator,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isCaseBlock,
|
||||
isCaseOrDefaultClause,
|
||||
isClassElement,
|
||||
isDeclarationNameOfEnumOrNamespace,
|
||||
isDestructuringAssignment,
|
||||
isEffectiveExternalModule,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isExternalModuleImportEqualsDeclaration,
|
||||
isForInitializer,
|
||||
isGeneratedIdentifier,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isImportCall,
|
||||
isImportClause,
|
||||
isImportMeta,
|
||||
isImportSpecifier,
|
||||
isLocalName,
|
||||
isModifierLike,
|
||||
isModuleOrEnumDeclaration,
|
||||
isNamedExports,
|
||||
isObjectLiteralExpression,
|
||||
isOmittedExpression,
|
||||
isParameterDeclaration,
|
||||
isPrefixUnaryExpression,
|
||||
isPropertyAssignment,
|
||||
isShorthandPropertyAssignment,
|
||||
isSpreadElement,
|
||||
isStatement,
|
||||
isStringLiteral,
|
||||
isVariableDeclarationList,
|
||||
map,
|
||||
moveEmitHelpers,
|
||||
outFile,
|
||||
setCommentRange,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
singleOrMany,
|
||||
some,
|
||||
startOnNewLine,
|
||||
tryGetModuleNameFromFile,
|
||||
visitEachChild,
|
||||
visitIterationBody,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,9 +1,27 @@
|
||||
import {
|
||||
CallExpression,
|
||||
Debug, Expression, factory, getSourceTextOfNodeFromSourceFile, hasInvalidEscape, Identifier, isExpression,
|
||||
isExternalModule, isNoSubstitutionTemplateLiteral, NoSubstitutionTemplateLiteral, setTextRange, SourceFile,
|
||||
SyntaxKind, TaggedTemplateExpression, TemplateHead, TemplateLiteralLikeNode, TemplateMiddle, TemplateTail,
|
||||
TransformationContext, visitEachChild, visitNode, Visitor,
|
||||
Debug,
|
||||
Expression,
|
||||
Identifier,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TemplateHead,
|
||||
TemplateLiteralLikeNode,
|
||||
TemplateMiddle,
|
||||
TemplateTail,
|
||||
TransformationContext,
|
||||
Visitor,
|
||||
factory,
|
||||
getSourceTextOfNodeFromSourceFile,
|
||||
hasInvalidEscape,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isNoSubstitutionTemplateLiteral,
|
||||
setTextRange,
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,39 +1,202 @@
|
||||
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, EnumDeclaration, EnumMember, ExportAssignment, ExportDeclaration, ExportSpecifier,
|
||||
Expression, ExpressionWithTypeArguments, filter, findSuperStatementIndex, firstOrUndefined, flatMap,
|
||||
flattenDestructuringAssignment, FlattenLevel, FunctionDeclaration, FunctionExpression, FunctionLikeDeclaration,
|
||||
GetAccessorDeclaration, getAllDecoratorsOfClass, getAllDecoratorsOfClassElement, getEffectiveBaseTypeNode,
|
||||
getEmitFlags, getEmitModuleKind, getEmitScriptTarget, getFirstConstructorWithBody, getInitializedVariables,
|
||||
getOriginalNode, getParseTreeNode, getProperties, getStrictOptionValue, getTextOfNode, hasDecorators,
|
||||
hasStaticModifier, hasSyntacticModifier, HeritageClause, Identifier, idText, ImportClause, ImportDeclaration,
|
||||
ImportEqualsDeclaration, ImportsNotUsedAsValues, ImportSpecifier, InitializedVariableDeclaration,
|
||||
insertStatementsAfterStandardPrologue, isAccessExpression, isArray, isAssertionExpression, isBindingName,
|
||||
isBindingPattern, isClassElement, isClassLike, isComputedPropertyName, isDecorator, isElementAccessExpression,
|
||||
isEnumConst, isExportSpecifier, isExpression, isExternalModule, isExternalModuleImportEqualsDeclaration,
|
||||
isGeneratedIdentifier, isHeritageClause, isIdentifier, isImportClause, isImportSpecifier, isInJSFile,
|
||||
isInstantiatedModule, isJsonSourceFile, isJsxAttributes, isJsxTagNameExpression, isLeftHandSideExpression,
|
||||
isLocalName, isModifier, isModifierLike, isModuleDeclaration, isNamedExportBindings, isNamedImportBindings,
|
||||
isNamespaceExport, isObjectLiteralElement, isParameterPropertyDeclaration, isPrivateIdentifier,
|
||||
isPropertyAccessExpression, isPropertyName, isShorthandPropertyAssignment, 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, setOriginalNode, setParent, setSourceMapRange,
|
||||
setSyntheticLeadingComments, setSyntheticTrailingComments, setTextRange, setTextRangeEnd, setTextRangePos,
|
||||
setTextRangePosEnd, setTypeNode, ShorthandPropertyAssignment, shouldPreserveConstEnums, singleOrMany,
|
||||
skipOuterExpressions, skipPartiallyEmittedExpressions, skipTrivia, some, SourceFile, startOnNewLine, Statement,
|
||||
SyntaxKind, TaggedTemplateExpression, TextRange, TransformationContext, TransformFlags, UnderscoreEscapedMap,
|
||||
VariableDeclaration, VariableStatement, visitArray, visitEachChild, visitFunctionBody, visitLexicalEnvironment,
|
||||
visitNode, visitNodes, visitParameterList, VisitResult,
|
||||
AccessorDeclaration,
|
||||
AllDecorators,
|
||||
ArrowFunction,
|
||||
AssertionExpression,
|
||||
Block,
|
||||
Bundle,
|
||||
CallExpression,
|
||||
CaseBlock,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
Decorator,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHint,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
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,
|
||||
getAllDecoratorsOfClass,
|
||||
getAllDecoratorsOfClassElement,
|
||||
getEffectiveBaseTypeNode,
|
||||
getEmitFlags,
|
||||
getEmitModuleKind,
|
||||
getEmitScriptTarget,
|
||||
getFirstConstructorWithBody,
|
||||
getInitializedVariables,
|
||||
getOriginalNode,
|
||||
getParseTreeNode,
|
||||
getProperties,
|
||||
getStrictOptionValue,
|
||||
getTextOfNode,
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
insertStatementsAfterStandardPrologue,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
isAssertionExpression,
|
||||
isBindingName,
|
||||
isBindingPattern,
|
||||
isClassElement,
|
||||
isClassLike,
|
||||
isComputedPropertyName,
|
||||
isDecorator,
|
||||
isElementAccessExpression,
|
||||
isEnumConst,
|
||||
isExportSpecifier,
|
||||
isExpression,
|
||||
isExternalModule,
|
||||
isExternalModuleImportEqualsDeclaration,
|
||||
isGeneratedIdentifier,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isImportClause,
|
||||
isImportSpecifier,
|
||||
isInJSFile,
|
||||
isInstantiatedModule,
|
||||
isJsonSourceFile,
|
||||
isJsxAttributes,
|
||||
isJsxTagNameExpression,
|
||||
isLeftHandSideExpression,
|
||||
isLocalName,
|
||||
isModifier,
|
||||
isModifierLike,
|
||||
isModuleDeclaration,
|
||||
isNamedExportBindings,
|
||||
isNamedImportBindings,
|
||||
isNamespaceExport,
|
||||
isObjectLiteralElement,
|
||||
isParameterPropertyDeclaration,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyName,
|
||||
isShorthandPropertyAssignment,
|
||||
isSimpleInlineableExpression,
|
||||
isSourceFile,
|
||||
isStatement,
|
||||
lastOrUndefined,
|
||||
map,
|
||||
mapDefined,
|
||||
modifierToFlag,
|
||||
moveRangePastDecorators,
|
||||
moveRangePastModifiers,
|
||||
moveRangePos,
|
||||
nodeIsMissing,
|
||||
parameterIsThisKeyword,
|
||||
removeAllComments,
|
||||
setCommentRange,
|
||||
setConstantValue,
|
||||
setEmitFlags,
|
||||
setOriginalNode,
|
||||
setParent,
|
||||
setSourceMapRange,
|
||||
setSyntheticLeadingComments,
|
||||
setSyntheticTrailingComments,
|
||||
setTextRange,
|
||||
setTextRangeEnd,
|
||||
setTextRangePos,
|
||||
setTextRangePosEnd,
|
||||
setTypeNode,
|
||||
shouldPreserveConstEnums,
|
||||
singleOrMany,
|
||||
skipOuterExpressions,
|
||||
skipPartiallyEmittedExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
startOnNewLine,
|
||||
visitArray,
|
||||
visitEachChild,
|
||||
visitFunctionBody,
|
||||
visitLexicalEnvironment,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
visitParameterList,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,17 +1,73 @@
|
||||
import {
|
||||
AccessorDeclaration, ArrayLiteralExpression, BigIntLiteral, BinaryExpression, Block, CaseBlock,
|
||||
ClassLikeDeclaration, ConditionalExpression, ConditionalTypeNode, Debug, EntityName, Expression, factory,
|
||||
findAncestor, FunctionLikeDeclaration, getAllAccessorDeclarations, getEffectiveReturnTypeNode, getEmitScriptTarget,
|
||||
getFirstConstructorWithBody, getParseTreeNode, getRestParameterElementType, getSetAccessorTypeAnnotationNode,
|
||||
getStrictOptionValue, Identifier, isAsyncFunction, isBinaryExpression, isClassLike, isConditionalExpression,
|
||||
isConditionalTypeNode, isFunctionLike, isGeneratedIdentifier, isIdentifier, isLiteralTypeNode, isNumericLiteral,
|
||||
isParenthesizedExpression, isPropertyAccessExpression, 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,
|
||||
AccessorDeclaration,
|
||||
ArrayLiteralExpression,
|
||||
BigIntLiteral,
|
||||
BinaryExpression,
|
||||
Block,
|
||||
CaseBlock,
|
||||
ClassLikeDeclaration,
|
||||
ConditionalExpression,
|
||||
ConditionalTypeNode,
|
||||
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,
|
||||
getAllAccessorDeclarations,
|
||||
getEffectiveReturnTypeNode,
|
||||
getEmitScriptTarget,
|
||||
getFirstConstructorWithBody,
|
||||
getParseTreeNode,
|
||||
getRestParameterElementType,
|
||||
getSetAccessorTypeAnnotationNode,
|
||||
getStrictOptionValue,
|
||||
isAsyncFunction,
|
||||
isBinaryExpression,
|
||||
isClassLike,
|
||||
isConditionalExpression,
|
||||
isConditionalTypeNode,
|
||||
isFunctionLike,
|
||||
isGeneratedIdentifier,
|
||||
isIdentifier,
|
||||
isLiteralTypeNode,
|
||||
isNumericLiteral,
|
||||
isParenthesizedExpression,
|
||||
isPropertyAccessExpression,
|
||||
isStringLiteral,
|
||||
isTypeOfExpression,
|
||||
isVoidExpression,
|
||||
nodeIsPresent,
|
||||
parseNodeFactory,
|
||||
setParent,
|
||||
setTextRange,
|
||||
skipTypeParentheses,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,19 +1,85 @@
|
||||
import {
|
||||
AccessorDeclaration, AllDecorators, append, BinaryOperator, BindingElement, Bundle, cast, ClassDeclaration,
|
||||
ClassElement, ClassExpression, ClassLikeDeclaration, ClassStaticBlockDeclaration, CompilerOptions,
|
||||
CompoundAssignmentOperator, CoreTransformationContext, createExternalHelpersImportDeclarationIfNeeded,
|
||||
createMultiMap, Decorator, EmitResolver, ExportAssignment, ExportDeclaration, ExportSpecifier, Expression,
|
||||
filter, FunctionDeclaration, FunctionLikeDeclaration, getAllAccessorDeclarations, getDecorators,
|
||||
getFirstConstructorWithBody, getNamespaceDeclarationNode, getNodeId, getOriginalNode, hasDecorators,
|
||||
hasStaticModifier, hasSyntacticModifier, Identifier, idText, ImportDeclaration, ImportEqualsDeclaration,
|
||||
ImportSpecifier, InitializedPropertyDeclaration, InternalSymbolName, isAutoAccessorPropertyDeclaration,
|
||||
isBindingPattern, isClassStaticBlockDeclaration, isDefaultImport, isExpressionStatement, isGeneratedIdentifier,
|
||||
isIdentifier, isKeyword, isMethodOrAccessor, isNamedExports, isNamedImports, isOmittedExpression,
|
||||
isPrivateIdentifier, isPropertyDeclaration, 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,
|
||||
AccessorDeclaration,
|
||||
AllDecorators,
|
||||
BinaryOperator,
|
||||
BindingElement,
|
||||
Bundle,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CompilerOptions,
|
||||
CompoundAssignmentOperator,
|
||||
CoreTransformationContext,
|
||||
Decorator,
|
||||
EmitResolver,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
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,
|
||||
getNamespaceDeclarationNode,
|
||||
getNodeId,
|
||||
getOriginalNode,
|
||||
hasDecorators,
|
||||
hasStaticModifier,
|
||||
hasSyntacticModifier,
|
||||
idText,
|
||||
isAutoAccessorPropertyDeclaration,
|
||||
isBindingPattern,
|
||||
isClassStaticBlockDeclaration,
|
||||
isDefaultImport,
|
||||
isExpressionStatement,
|
||||
isGeneratedIdentifier,
|
||||
isIdentifier,
|
||||
isKeyword,
|
||||
isMethodOrAccessor,
|
||||
isNamedExports,
|
||||
isNamedImports,
|
||||
isOmittedExpression,
|
||||
isPrivateIdentifier,
|
||||
isPropertyDeclaration,
|
||||
isStatic,
|
||||
isStringLiteralLike,
|
||||
isSuperCall,
|
||||
map,
|
||||
parameterIsThisKeyword,
|
||||
skipParentheses,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
import { combinePaths, Extension, fileExtensionIs, ResolvedConfigFileName } from "./_namespaces/ts";
|
||||
import {
|
||||
Extension,
|
||||
ResolvedConfigFileName,
|
||||
combinePaths,
|
||||
fileExtensionIs,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
export enum UpToDateStatusType {
|
||||
|
||||
@ -1,32 +1,136 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AffectedFileResult, arrayToMap, assertType, BuilderProgram, BuildInfo, CancellationToken, canJsonReportNoInputFiles,
|
||||
changeCompilerHostLikeToUseCache, clearMap, closeFileWatcher, closeFileWatcherOf, commonOptionsWithBuild,
|
||||
CompilerHost, CompilerOptions, CompilerOptionsValue, ConfigFileProgramReloadLevel, convertToRelativePath,
|
||||
copyProperties, createCompilerDiagnostic, createCompilerHostFromProgramHost, createDiagnosticCollection,
|
||||
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,
|
||||
getErrorCountForSummary, getFileNamesFromConfigSpecs, getFilesInErrorForSummary, getFirstProjectOutput,
|
||||
getLocaleTimeString, getNormalizedAbsolutePath, getParsedCommandLineOfConfigFile, getPendingEmitKind,
|
||||
getSourceFileVersionAsHashFromText, getTsBuildInfoEmitOutputFilePath, getWatchErrorSummaryDiagnosticMessage,
|
||||
hasProperty, identity, isArray, isIgnoredFileFromWildCardWatching, isIncrementalCompilation, isString, listFiles,
|
||||
loadWithModeAwareCache, loadWithTypeDirectiveCache, map, maybeBind, missingFileModifiedTime,
|
||||
ModuleResolutionCache, mutateMap, mutateMapSkippingNewValues, noop, outFile, OutputFile, ParseConfigFileHost,
|
||||
parseConfigHostFromCompilerHostLike, ParsedCommandLine, Path, PollingInterval, Program, ProgramBuildInfo,
|
||||
ProgramBundleEmitBuildInfo, ProgramHost, ProgramMultiFileEmitBuildInfo, readBuilderProgram, ReadBuildProgramHost,
|
||||
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,
|
||||
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,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
SemanticDiagnosticsBuilderProgram,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
Status,
|
||||
System,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
UpToDateStatus,
|
||||
UpToDateStatusType,
|
||||
WatchFactory,
|
||||
WatchHost,
|
||||
WatchOptions,
|
||||
WatchStatusReporter,
|
||||
WatchType,
|
||||
WildcardDirectoryWatcher,
|
||||
WriteFileCallback,
|
||||
arrayToMap,
|
||||
assertType,
|
||||
canJsonReportNoInputFiles,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
clearMap,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
commonOptionsWithBuild,
|
||||
convertToRelativePath,
|
||||
copyProperties,
|
||||
createCompilerDiagnostic,
|
||||
createCompilerHostFromProgramHost,
|
||||
createDiagnosticCollection,
|
||||
createDiagnosticReporter,
|
||||
createGetCanonicalFileName,
|
||||
createModuleResolutionCache,
|
||||
createProgramHost,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
createWatchFactory,
|
||||
createWatchHost,
|
||||
emitFilesAndReportErrors,
|
||||
emitUsingBuildInfo,
|
||||
emptyArray,
|
||||
findIndex,
|
||||
flattenDiagnosticMessageText,
|
||||
forEach,
|
||||
formatColorAndReset,
|
||||
getAllProjectOutputs,
|
||||
getBuildInfoFileVersionMap,
|
||||
getConfigFileParsingDiagnostics,
|
||||
getDirectoryPath,
|
||||
getEntries,
|
||||
getErrorCountForSummary,
|
||||
getFileNamesFromConfigSpecs,
|
||||
getFilesInErrorForSummary,
|
||||
getFirstProjectOutput,
|
||||
getLocaleTimeString,
|
||||
getNormalizedAbsolutePath,
|
||||
getParsedCommandLineOfConfigFile,
|
||||
getPendingEmitKind,
|
||||
getSourceFileVersionAsHashFromText,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
getWatchErrorSummaryDiagnosticMessage,
|
||||
hasProperty,
|
||||
identity,
|
||||
isArray,
|
||||
isIgnoredFileFromWildCardWatching,
|
||||
isIncrementalCompilation,
|
||||
isString,
|
||||
listFiles,
|
||||
loadWithModeAwareCache,
|
||||
loadWithTypeDirectiveCache,
|
||||
map,
|
||||
maybeBind,
|
||||
missingFileModifiedTime,
|
||||
mutateMap,
|
||||
mutateMapSkippingNewValues,
|
||||
noop,
|
||||
outFile,
|
||||
parseConfigHostFromCompilerHostLike,
|
||||
readBuilderProgram,
|
||||
resolveConfigFileProjectName,
|
||||
resolveModuleName,
|
||||
resolvePath,
|
||||
resolveProjectReferencePath,
|
||||
resolveTypeReferenceDirective,
|
||||
returnUndefined,
|
||||
setGetSourceFileAsHashVersioned,
|
||||
some,
|
||||
sys,
|
||||
unorderedRemoveItem,
|
||||
updateErrorForNoInputFiles,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
version,
|
||||
writeFile,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "./_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -1,7 +1,19 @@
|
||||
import {
|
||||
BaseNodeFactory, CreateSourceFileOptions, EmitHelperFactory, MapLike, ModeAwareCache,
|
||||
ModuleResolutionCache, MultiMap, NodeFactoryFlags, OptionsNameMap, PackageJsonInfo, PackageJsonInfoCache, Pattern,
|
||||
ProgramBuildInfo, Push, SymlinkCache,
|
||||
BaseNodeFactory,
|
||||
CreateSourceFileOptions,
|
||||
EmitHelperFactory,
|
||||
MapLike,
|
||||
ModeAwareCache,
|
||||
ModuleResolutionCache,
|
||||
MultiMap,
|
||||
NodeFactoryFlags,
|
||||
OptionsNameMap,
|
||||
PackageJsonInfo,
|
||||
PackageJsonInfoCache,
|
||||
Pattern,
|
||||
ProgramBuildInfo,
|
||||
Push,
|
||||
SymlinkCache,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
// branded string type used to store absolute, normalized and canonicalized paths
|
||||
|
||||
@ -1,96 +1,520 @@
|
||||
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, BindableStaticNameExpression, BindingElement,
|
||||
Block, BundleFileSection, BundleFileSectionKind, BundleFileTextLike, CallExpression, CallLikeExpression,
|
||||
canHaveDecorators, canHaveIllegalDecorators, canHaveModifiers, CaseBlock, CaseClause, CaseOrDefaultClause,
|
||||
CatchClause, changeAnyExtension, CharacterCodes, CheckFlags, ClassDeclaration, ClassElement, ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration, combinePaths, CommaListExpression, CommandLineOption, CommentDirective,
|
||||
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, DeclarationWithTypeParameterChildren, DeclarationWithTypeParameters, Decorator, DefaultClause,
|
||||
DestructuringAssignment, Diagnostic, DiagnosticCollection, DiagnosticMessage, DiagnosticMessageChain,
|
||||
DiagnosticRelatedInformation, Diagnostics, DiagnosticWithDetachedLocation, DiagnosticWithLocation,
|
||||
directorySeparator, DoStatement, DynamicNamedBinaryExpression, DynamicNamedDeclaration, ElementAccessExpression,
|
||||
EmitFlags, EmitHost, EmitResolver, EmitTextWriter, emptyArray, ensurePathIsNonModuleName,
|
||||
ensureTrailingDirectorySeparator, EntityName, EntityNameExpression, EntityNameOrEntityNameExpression,
|
||||
EnumDeclaration, EqualityComparer, equalOwnProperties, EqualsToken, equateValues, escapeLeadingUnderscores,
|
||||
every, ExportAssignment, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement,
|
||||
ExpressionWithTypeArguments, Extension, ExternalModuleReference, factory, FileExtensionInfo, fileExtensionIs,
|
||||
fileExtensionIsOneOf, FileReference, FileWatcher, filter, find, findAncestor, findBestPatternMatch, findIndex,
|
||||
findLast, firstDefined, firstOrUndefined, flatMap, flatMapToMutable, flatten, forEach, forEachAncestorDirectory,
|
||||
forEachChild, forEachChildRecursively, ForInOrOfStatement, ForInStatement, ForOfStatement, ForStatement,
|
||||
FunctionBody, FunctionDeclaration, FunctionExpression, FunctionLikeDeclaration, GetAccessorDeclaration,
|
||||
getBaseFileName, GetCanonicalFileName, getCombinedModifierFlags, getCombinedNodeFlags, getDirectoryPath, getEntries,
|
||||
getJSDocAugmentsTag, getJSDocDeprecatedTagNoCache, getJSDocImplementsTags, getJSDocOverrideTagNoCache,
|
||||
getJSDocParameterTags, getJSDocParameterTagsNoCache, getJSDocPrivateTagNoCache, getJSDocProtectedTagNoCache,
|
||||
getJSDocPublicTagNoCache, getJSDocReadonlyTagNoCache, getJSDocReturnType, getJSDocTags, getJSDocType,
|
||||
getJSDocTypeParameterTags, getJSDocTypeParameterTagsNoCache, getJSDocTypeTag, getLeadingCommentRanges,
|
||||
getLineAndCharacterOfPosition, getLinesBetweenPositions, getLineStarts, getNameOfDeclaration,
|
||||
getNormalizedAbsolutePath, getNormalizedPathComponents, getOwnKeys, getParseTreeNode, getPathComponents,
|
||||
getPathFromPathComponents, getRelativePathToDirectoryOrUrl, getResolutionMode, getResolutionName, getRootLength,
|
||||
getStringComparer, getSymbolId, getTrailingCommentRanges, HasExpressionInitializer, hasExtension, hasInitializer,
|
||||
HasInitializer, HasJSDoc, hasJSDocNodes, HasModifiers, hasProperty, HasType, HasTypeArguments, HeritageClause,
|
||||
Identifier, IdentifierTypePredicate, identity, idText, IfStatement, ignoredPaths, ImportCall, ImportClause,
|
||||
ImportDeclaration, ImportEqualsDeclaration, ImportMetaProperty, ImportSpecifier, ImportTypeNode, IndexInfo,
|
||||
indexOfAnyCharCode, InitializedVariableDeclaration, insertSorted, InterfaceDeclaration, isAccessor,
|
||||
isAnyDirectorySeparator, isArray, isArrayLiteralExpression, isArrowFunction, isBigIntLiteral, isBinaryExpression,
|
||||
isBindingPattern, isCallExpression, isClassDeclaration, isClassElement, isClassExpression, isClassLike,
|
||||
isClassStaticBlockDeclaration, isCommaListExpression, isComputedPropertyName, isConstructorDeclaration,
|
||||
isDeclaration, isDecorator, isElementAccessExpression, isEnumDeclaration, isEnumMember, isExportAssignment,
|
||||
isExportDeclaration, isExpressionStatement, isExpressionWithTypeArguments, isExternalModule,
|
||||
isExternalModuleReference, isFileProbablyExternalModule, isForStatement, isFunctionDeclaration,
|
||||
isFunctionExpression, isFunctionLike, isFunctionLikeDeclaration, isFunctionLikeOrClassStaticBlockDeclaration,
|
||||
isGetAccessorDeclaration, isHeritageClause, isIdentifier, isIdentifierText, isImportTypeNode,
|
||||
isInterfaceDeclaration, isJSDoc, isJSDocFunctionType, isJSDocLinkLike, isJSDocMemberName, isJSDocNameReference,
|
||||
isJSDocNode, isJSDocParameterTag, isJSDocPropertyLikeTag, isJSDocSignature, isJSDocTag, isJSDocTemplateTag,
|
||||
isJSDocTypeExpression, isJSDocTypeLiteral, isJSDocTypeTag, isJsxChild, isJsxFragment, isJsxOpeningLikeElement,
|
||||
isJsxText, isLeftHandSideExpression, isLineBreak, isLiteralTypeNode, isMemberName, isMetaProperty,
|
||||
isMethodOrAccessor, isModuleDeclaration, isNamedDeclaration, isNamespaceExport, isNamespaceExportDeclaration,
|
||||
isNamespaceImport, isNoSubstitutionTemplateLiteral, isNumericLiteral, isObjectLiteralExpression,
|
||||
isOmittedExpression, isParameter, isParameterPropertyDeclaration, isParenthesizedExpression,
|
||||
isParenthesizedTypeNode, isPrefixUnaryExpression, isPrivateIdentifier, isPropertyAccessExpression,
|
||||
isPropertyAssignment, isPropertyDeclaration, isPropertyName, isPropertySignature, isQualifiedName, isRootedDiskPath,
|
||||
isSetAccessorDeclaration, isShorthandPropertyAssignment, isSourceFile, isString, isStringLiteral,
|
||||
isStringLiteralLike, isTypeAliasDeclaration, isTypeElement, isTypeLiteralNode, isTypeNode, isTypeReferenceNode,
|
||||
isVariableDeclaration, isVariableStatement, 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, 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, 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, ResolutionMode,
|
||||
AccessExpression,
|
||||
AccessorDeclaration,
|
||||
AllAccessorDeclarations,
|
||||
AmbientModuleDeclaration,
|
||||
AnyImportOrBareOrAccessedRequire,
|
||||
AnyImportOrReExport,
|
||||
AnyImportSyntax,
|
||||
AnyValidImportOrReExport,
|
||||
ArrayLiteralExpression,
|
||||
ArrayTypeNode,
|
||||
ArrowFunction,
|
||||
AsExpression,
|
||||
AssertionExpression,
|
||||
AssignmentDeclarationKind,
|
||||
AssignmentExpression,
|
||||
AssignmentOperatorToken,
|
||||
BinaryExpression,
|
||||
BindableObjectDefinePropertyCall,
|
||||
BindableStaticAccessExpression,
|
||||
BindableStaticElementAccessExpression,
|
||||
BindableStaticNameExpression,
|
||||
BindingElement,
|
||||
Block,
|
||||
BundleFileSection,
|
||||
BundleFileSectionKind,
|
||||
BundleFileTextLike,
|
||||
CallExpression,
|
||||
CallLikeExpression,
|
||||
CaseBlock,
|
||||
CaseClause,
|
||||
CaseOrDefaultClause,
|
||||
CatchClause,
|
||||
CharacterCodes,
|
||||
CheckFlags,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CommaListExpression,
|
||||
CommandLineOption,
|
||||
CommentDirective,
|
||||
CommentDirectiveType,
|
||||
CommentDirectivesMap,
|
||||
CommentRange,
|
||||
Comparison,
|
||||
CompilerOptions,
|
||||
ComputedPropertyName,
|
||||
ConditionalExpression,
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
DeclarationWithTypeParameterChildren,
|
||||
DeclarationWithTypeParameters,
|
||||
Decorator,
|
||||
DefaultClause,
|
||||
DestructuringAssignment,
|
||||
Diagnostic,
|
||||
DiagnosticCollection,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticRelatedInformation,
|
||||
DiagnosticWithDetachedLocation,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
DoStatement,
|
||||
DynamicNamedBinaryExpression,
|
||||
DynamicNamedDeclaration,
|
||||
ElementAccessExpression,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitResolver,
|
||||
EmitTextWriter,
|
||||
EntityName,
|
||||
EntityNameExpression,
|
||||
EntityNameOrEntityNameExpression,
|
||||
EnumDeclaration,
|
||||
EqualityComparer,
|
||||
EqualsToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
ExpressionStatement,
|
||||
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,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
find,
|
||||
findAncestor,
|
||||
findBestPatternMatch,
|
||||
findIndex,
|
||||
findLast,
|
||||
firstDefined,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flatMapToMutable,
|
||||
flatten,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
forEachChild,
|
||||
forEachChildRecursively,
|
||||
getBaseFileName,
|
||||
getCombinedModifierFlags,
|
||||
getCombinedNodeFlags,
|
||||
getDirectoryPath,
|
||||
getEntries,
|
||||
getJSDocAugmentsTag,
|
||||
getJSDocDeprecatedTagNoCache,
|
||||
getJSDocImplementsTags,
|
||||
getJSDocOverrideTagNoCache,
|
||||
getJSDocParameterTags,
|
||||
getJSDocParameterTagsNoCache,
|
||||
getJSDocPrivateTagNoCache,
|
||||
getJSDocProtectedTagNoCache,
|
||||
getJSDocPublicTagNoCache,
|
||||
getJSDocReadonlyTagNoCache,
|
||||
getJSDocReturnType,
|
||||
getJSDocTags,
|
||||
getJSDocType,
|
||||
getJSDocTypeParameterTags,
|
||||
getJSDocTypeParameterTagsNoCache,
|
||||
getJSDocTypeTag,
|
||||
getLeadingCommentRanges,
|
||||
getLineAndCharacterOfPosition,
|
||||
getLineStarts,
|
||||
getLinesBetweenPositions,
|
||||
getNameOfDeclaration,
|
||||
getNormalizedAbsolutePath,
|
||||
getNormalizedPathComponents,
|
||||
getOwnKeys,
|
||||
getParseTreeNode,
|
||||
getPathComponents,
|
||||
getPathFromPathComponents,
|
||||
getRelativePathToDirectoryOrUrl,
|
||||
getResolutionMode,
|
||||
getResolutionName,
|
||||
getRootLength,
|
||||
getStringComparer,
|
||||
getSymbolId,
|
||||
getTrailingCommentRanges,
|
||||
hasExtension,
|
||||
hasInitializer,
|
||||
hasJSDocNodes,
|
||||
hasProperty,
|
||||
idText,
|
||||
identity,
|
||||
ignoredPaths,
|
||||
indexOfAnyCharCode,
|
||||
insertSorted,
|
||||
isAccessor,
|
||||
isAnyDirectorySeparator,
|
||||
isArray,
|
||||
isArrayLiteralExpression,
|
||||
isArrowFunction,
|
||||
isBigIntLiteral,
|
||||
isBinaryExpression,
|
||||
isBindingPattern,
|
||||
isCallExpression,
|
||||
isClassDeclaration,
|
||||
isClassElement,
|
||||
isClassExpression,
|
||||
isClassLike,
|
||||
isClassStaticBlockDeclaration,
|
||||
isCommaListExpression,
|
||||
isComputedPropertyName,
|
||||
isConstructorDeclaration,
|
||||
isDeclaration,
|
||||
isDecorator,
|
||||
isElementAccessExpression,
|
||||
isEnumDeclaration,
|
||||
isEnumMember,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExpressionStatement,
|
||||
isExpressionWithTypeArguments,
|
||||
isExternalModule,
|
||||
isExternalModuleReference,
|
||||
isFileProbablyExternalModule,
|
||||
isForStatement,
|
||||
isFunctionDeclaration,
|
||||
isFunctionExpression,
|
||||
isFunctionLike,
|
||||
isFunctionLikeDeclaration,
|
||||
isFunctionLikeOrClassStaticBlockDeclaration,
|
||||
isGetAccessorDeclaration,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isIdentifierText,
|
||||
isImportTypeNode,
|
||||
isInterfaceDeclaration,
|
||||
isJSDoc,
|
||||
isJSDocFunctionType,
|
||||
isJSDocLinkLike,
|
||||
isJSDocMemberName,
|
||||
isJSDocNameReference,
|
||||
isJSDocNode,
|
||||
isJSDocParameterTag,
|
||||
isJSDocPropertyLikeTag,
|
||||
isJSDocSignature,
|
||||
isJSDocTag,
|
||||
isJSDocTemplateTag,
|
||||
isJSDocTypeExpression,
|
||||
isJSDocTypeLiteral,
|
||||
isJSDocTypeTag,
|
||||
isJsxChild,
|
||||
isJsxFragment,
|
||||
isJsxOpeningLikeElement,
|
||||
isJsxText,
|
||||
isLeftHandSideExpression,
|
||||
isLineBreak,
|
||||
isLiteralTypeNode,
|
||||
isMemberName,
|
||||
isMetaProperty,
|
||||
isMethodOrAccessor,
|
||||
isModuleDeclaration,
|
||||
isNamedDeclaration,
|
||||
isNamespaceExport,
|
||||
isNamespaceExportDeclaration,
|
||||
isNamespaceImport,
|
||||
isNoSubstitutionTemplateLiteral,
|
||||
isNumericLiteral,
|
||||
isObjectLiteralExpression,
|
||||
isOmittedExpression,
|
||||
isParameter,
|
||||
isParameterPropertyDeclaration,
|
||||
isParenthesizedExpression,
|
||||
isParenthesizedTypeNode,
|
||||
isPrefixUnaryExpression,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyAssignment,
|
||||
isPropertyDeclaration,
|
||||
isPropertyName,
|
||||
isPropertySignature,
|
||||
isQualifiedName,
|
||||
isRootedDiskPath,
|
||||
isSetAccessorDeclaration,
|
||||
isShorthandPropertyAssignment,
|
||||
isSourceFile,
|
||||
isString,
|
||||
isStringLiteral,
|
||||
isStringLiteralLike,
|
||||
isTypeAliasDeclaration,
|
||||
isTypeElement,
|
||||
isTypeLiteralNode,
|
||||
isTypeNode,
|
||||
isTypeReferenceNode,
|
||||
isVariableDeclaration,
|
||||
isVariableStatement,
|
||||
isVoidExpression,
|
||||
isWhiteSpaceLike,
|
||||
isWhiteSpaceSingleLine,
|
||||
last,
|
||||
lastOrUndefined,
|
||||
length,
|
||||
map,
|
||||
mapDefined,
|
||||
moduleResolutionOptionDeclarations,
|
||||
nodeModulesPathPart,
|
||||
noop,
|
||||
normalizePath,
|
||||
optionsAffectingProgramStructure,
|
||||
or,
|
||||
parseConfigFileTextToJson,
|
||||
pathIsRelative,
|
||||
removeTrailingDirectorySeparator,
|
||||
semanticDiagnosticsOptionDeclarations,
|
||||
singleElementArray,
|
||||
singleOrUndefined,
|
||||
skipOuterExpressions,
|
||||
skipTrivia,
|
||||
some,
|
||||
sort,
|
||||
startsWith,
|
||||
startsWithUseStrict,
|
||||
stringContains,
|
||||
stringToToken,
|
||||
sys,
|
||||
toPath,
|
||||
tokenToString,
|
||||
tracing,
|
||||
trimString,
|
||||
trimStringStart,
|
||||
tryCast,
|
||||
tryRemovePrefix,
|
||||
unescapeLeadingUnderscores,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,51 +1,268 @@
|
||||
import {
|
||||
__String, AccessExpression, AccessorDeclaration, ArrayBindingElement, ArrayBindingOrAssignmentPattern,
|
||||
AssertionExpression, AssertionKey, AssignmentDeclarationKind, AssignmentPattern, AutoAccessorPropertyDeclaration,
|
||||
BinaryExpression, BindableObjectDefinePropertyCall, BindingElement, BindingName, BindingOrAssignmentElement,
|
||||
BindingOrAssignmentElementTarget, BindingOrAssignmentPattern, BindingPattern, Block, BooleanLiteral,
|
||||
BreakOrContinueStatement, CallChain, CallExpression, CallLikeExpression, canHaveIllegalTypeParameters,
|
||||
CaseOrDefaultClause, CharacterCodes, ClassElement, ClassLikeDeclaration, ClassStaticBlockDeclaration, combinePaths,
|
||||
compareDiagnostics, CompilerOptions, ConciseBody, ConstructorDeclaration, ConstructorTypeNode, contains,
|
||||
createCompilerDiagnostic, Debug, Declaration, DeclarationName, DeclarationStatement, DeclarationWithTypeParameters,
|
||||
Decorator, Diagnostic, Diagnostics, ElementAccessChain, ElementAccessExpression, emptyArray, EntityName,
|
||||
entityNameToString, EnumDeclaration, every, ExportAssignment, ExportSpecifier, Expression, FileReference, filter,
|
||||
find, flatMap, ForInitializer, ForInOrOfStatement, FunctionBody, FunctionLikeDeclaration, FunctionTypeNode,
|
||||
GeneratedIdentifier, GeneratedIdentifierFlags, GeneratedPrivateIdentifier, GetAccessorDeclaration,
|
||||
getAssignmentDeclarationKind, getDirectoryPath, getEffectiveModifierFlags,
|
||||
getEffectiveModifierFlagsAlwaysIncludeJSDoc, getElementOrPropertyAccessArgumentExpressionOrName,
|
||||
getEmitScriptTarget, getJSDocCommentsAndTags, getJSDocTypeParameterDeclarations, hasAccessorModifier, hasDecorators,
|
||||
HasDecorators, HasExpressionInitializer, HasInitializer, HasJSDoc, HasModifiers, hasProperty, hasSyntacticModifier,
|
||||
HasType, Identifier, ImportClause, ImportEqualsDeclaration, ImportOrExportSpecifier, ImportSpecifier,
|
||||
ImportTypeNode, isAccessExpression, isAmbientModule, isAnyImportOrReExport, isArrowFunction, isBinaryExpression,
|
||||
isBindableStaticElementAccessExpression, isBindingElement, isBlock, isCallExpression, isCallSignatureDeclaration,
|
||||
isClassExpression, isClassStaticBlockDeclaration, isDecorator, isElementAccessExpression, isExportAssignment,
|
||||
isExportDeclaration, isExportSpecifier, isFunctionBlock, isFunctionExpression, isFunctionTypeNode, isIdentifier,
|
||||
isImportSpecifier, isInJSFile, isJSDoc, isJSDocAugmentsTag, isJSDocClassTag, isJSDocDeprecatedTag, isJSDocEnumTag,
|
||||
isJSDocFunctionType, isJSDocImplementsTag, isJSDocOverrideTag, isJSDocParameterTag, isJSDocPrivateTag,
|
||||
isJSDocProtectedTag, isJSDocPublicTag, isJSDocReadonlyTag, isJSDocReturnTag, isJSDocSignature, isJSDocTemplateTag,
|
||||
isJSDocThisTag, isJSDocTypeAlias, isJSDocTypeLiteral, isJSDocTypeTag, isModuleBlock, isNonNullExpression,
|
||||
isNotEmittedStatement, isOmittedExpression, isParameter, isPartiallyEmittedExpression, isPrivateIdentifier,
|
||||
isPropertyAccessExpression, isPropertyAssignment, isPropertyDeclaration, isRootedDiskPath, isSourceFile,
|
||||
isStringLiteral, isTypeLiteralNode, isTypeNodeKind, isTypeReferenceNode, isVariableDeclaration,
|
||||
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,
|
||||
AccessExpression,
|
||||
AccessorDeclaration,
|
||||
ArrayBindingElement,
|
||||
ArrayBindingOrAssignmentPattern,
|
||||
AssertionExpression,
|
||||
AssertionKey,
|
||||
AssignmentDeclarationKind,
|
||||
AssignmentPattern,
|
||||
AutoAccessorPropertyDeclaration,
|
||||
BinaryExpression,
|
||||
BindableObjectDefinePropertyCall,
|
||||
BindingElement,
|
||||
BindingName,
|
||||
BindingOrAssignmentElement,
|
||||
BindingOrAssignmentElementTarget,
|
||||
BindingOrAssignmentPattern,
|
||||
BindingPattern,
|
||||
Block,
|
||||
BooleanLiteral,
|
||||
BreakOrContinueStatement,
|
||||
CallChain,
|
||||
CallExpression,
|
||||
CallLikeExpression,
|
||||
CaseOrDefaultClause,
|
||||
CharacterCodes,
|
||||
ClassElement,
|
||||
ClassLikeDeclaration,
|
||||
ClassStaticBlockDeclaration,
|
||||
CompilerOptions,
|
||||
ConciseBody,
|
||||
ConstructorDeclaration,
|
||||
ConstructorTypeNode,
|
||||
Debug,
|
||||
Declaration,
|
||||
DeclarationName,
|
||||
DeclarationStatement,
|
||||
DeclarationWithTypeParameters,
|
||||
Decorator,
|
||||
Diagnostic,
|
||||
Diagnostics,
|
||||
ElementAccessChain,
|
||||
ElementAccessExpression,
|
||||
EntityName,
|
||||
EnumDeclaration,
|
||||
ExportAssignment,
|
||||
ExportSpecifier,
|
||||
Expression,
|
||||
FileReference,
|
||||
ForInOrOfStatement,
|
||||
ForInitializer,
|
||||
FunctionBody,
|
||||
FunctionLikeDeclaration,
|
||||
FunctionTypeNode,
|
||||
GeneratedIdentifier,
|
||||
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,
|
||||
getEffectiveModifierFlagsAlwaysIncludeJSDoc,
|
||||
getElementOrPropertyAccessArgumentExpressionOrName,
|
||||
getEmitScriptTarget,
|
||||
getJSDocCommentsAndTags,
|
||||
getJSDocTypeParameterDeclarations,
|
||||
hasAccessorModifier,
|
||||
hasDecorators,
|
||||
hasProperty,
|
||||
hasSyntacticModifier,
|
||||
isAccessExpression,
|
||||
isAmbientModule,
|
||||
isAnyImportOrReExport,
|
||||
isArrowFunction,
|
||||
isBinaryExpression,
|
||||
isBindableStaticElementAccessExpression,
|
||||
isBindingElement,
|
||||
isBlock,
|
||||
isCallExpression,
|
||||
isCallSignatureDeclaration,
|
||||
isClassExpression,
|
||||
isClassStaticBlockDeclaration,
|
||||
isDecorator,
|
||||
isElementAccessExpression,
|
||||
isExportAssignment,
|
||||
isExportDeclaration,
|
||||
isExportSpecifier,
|
||||
isFunctionBlock,
|
||||
isFunctionExpression,
|
||||
isFunctionTypeNode,
|
||||
isIdentifier,
|
||||
isImportSpecifier,
|
||||
isInJSFile,
|
||||
isJSDoc,
|
||||
isJSDocAugmentsTag,
|
||||
isJSDocClassTag,
|
||||
isJSDocDeprecatedTag,
|
||||
isJSDocEnumTag,
|
||||
isJSDocFunctionType,
|
||||
isJSDocImplementsTag,
|
||||
isJSDocOverrideTag,
|
||||
isJSDocParameterTag,
|
||||
isJSDocPrivateTag,
|
||||
isJSDocProtectedTag,
|
||||
isJSDocPublicTag,
|
||||
isJSDocReadonlyTag,
|
||||
isJSDocReturnTag,
|
||||
isJSDocSignature,
|
||||
isJSDocTemplateTag,
|
||||
isJSDocThisTag,
|
||||
isJSDocTypeAlias,
|
||||
isJSDocTypeLiteral,
|
||||
isJSDocTypeTag,
|
||||
isModuleBlock,
|
||||
isNonNullExpression,
|
||||
isNotEmittedStatement,
|
||||
isOmittedExpression,
|
||||
isParameter,
|
||||
isPartiallyEmittedExpression,
|
||||
isPrivateIdentifier,
|
||||
isPropertyAccessExpression,
|
||||
isPropertyAssignment,
|
||||
isPropertyDeclaration,
|
||||
isRootedDiskPath,
|
||||
isSourceFile,
|
||||
isStringLiteral,
|
||||
isTypeLiteralNode,
|
||||
isTypeNodeKind,
|
||||
isTypeReferenceNode,
|
||||
isVariableDeclaration,
|
||||
isVariableDeclarationList,
|
||||
isVariableStatement,
|
||||
isWhiteSpaceLike,
|
||||
lastOrUndefined,
|
||||
modifierToFlag,
|
||||
normalizePath,
|
||||
pathIsRelative,
|
||||
setLocalizedDiagnosticMessages,
|
||||
setUILocale,
|
||||
skipOuterExpressions,
|
||||
some,
|
||||
sortAndDeduplicate,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export function isExternalModuleNameRelative(moduleName: string): boolean {
|
||||
|
||||
@ -1,22 +1,106 @@
|
||||
import {
|
||||
ConciseBody, Debug, EmitFlags, Expression, factory, FunctionBody, getEmitFlags, getEmitScriptTarget, Identifier,
|
||||
isArray, isArrayBindingElement, isAssertClause, isAssertEntry, isAssertionKey, isAssertsKeyword, isAsteriskToken,
|
||||
isAwaitKeyword, isBinaryOperatorToken, isBindingElement, isBindingName, isBindingPattern, isBlock, isCallChain,
|
||||
isCaseBlock, isCaseOrDefaultClause, isCatchClause, isClassElement, isColonToken, isConciseBody, isDotDotDotToken,
|
||||
isElementAccessChain, isEntityName, isEnumMember, isEqualsGreaterThanToken, isExclamationToken, isExportSpecifier,
|
||||
isExpression, isExpressionWithTypeArguments, isForInitializer, isHeritageClause, isIdentifier,
|
||||
isIdentifierOrThisTypeNode, isImportClause, isImportSpecifier, isImportTypeAssertionContainer, isJsxAttributeLike,
|
||||
isJsxAttributes, isJsxChild, isJsxClosingElement, isJsxClosingFragment, isJsxOpeningElement, isJsxOpeningFragment,
|
||||
isJsxTagNameExpression, isMemberName, isModifier, isModifierLike, isModuleBody, isModuleName, isModuleReference,
|
||||
isNamedExportBindings, isNamedImportBindings, isObjectLiteralElementLike, isOptionalChain, isParameterDeclaration,
|
||||
isPropertyAccessChain, isPropertyName, isQuestionDotToken, isQuestionOrExclamationToken,
|
||||
isQuestionOrPlusOrMinusToken, isQuestionToken, isReadonlyKeywordOrPlusOrMinusToken, isStatement,
|
||||
isStringLiteralOrJsxExpression, isTemplateHead, isTemplateLiteral, isTemplateLiteralTypeSpan,
|
||||
isTemplateMiddleOrTemplateTail, isTemplateSpan, isToken, isTypeElement, isTypeNode,
|
||||
isTypeNodeOrTypeParameterDeclaration, isTypeParameterDeclaration, isVariableDeclaration, isVariableDeclarationList,
|
||||
LexicalEnvironmentFlags, Node, NodeArray, NodesVisitor, NodeVisitor, ParameterDeclaration, ScriptTarget,
|
||||
setEmitFlags, setTextRange, setTextRangePosEnd, singleOrUndefined, some, Statement, SyntaxKind,
|
||||
TransformationContext, VisitEachChildNodes, Visitor,
|
||||
ConciseBody,
|
||||
Debug,
|
||||
EmitFlags,
|
||||
Expression,
|
||||
FunctionBody,
|
||||
Identifier,
|
||||
LexicalEnvironmentFlags,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeVisitor,
|
||||
NodesVisitor,
|
||||
ParameterDeclaration,
|
||||
ScriptTarget,
|
||||
Statement,
|
||||
SyntaxKind,
|
||||
TransformationContext,
|
||||
VisitEachChildNodes,
|
||||
Visitor,
|
||||
factory,
|
||||
getEmitFlags,
|
||||
getEmitScriptTarget,
|
||||
isArray,
|
||||
isArrayBindingElement,
|
||||
isAssertClause,
|
||||
isAssertEntry,
|
||||
isAssertionKey,
|
||||
isAssertsKeyword,
|
||||
isAsteriskToken,
|
||||
isAwaitKeyword,
|
||||
isBinaryOperatorToken,
|
||||
isBindingElement,
|
||||
isBindingName,
|
||||
isBindingPattern,
|
||||
isBlock,
|
||||
isCallChain,
|
||||
isCaseBlock,
|
||||
isCaseOrDefaultClause,
|
||||
isCatchClause,
|
||||
isClassElement,
|
||||
isColonToken,
|
||||
isConciseBody,
|
||||
isDotDotDotToken,
|
||||
isElementAccessChain,
|
||||
isEntityName,
|
||||
isEnumMember,
|
||||
isEqualsGreaterThanToken,
|
||||
isExclamationToken,
|
||||
isExportSpecifier,
|
||||
isExpression,
|
||||
isExpressionWithTypeArguments,
|
||||
isForInitializer,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isIdentifierOrThisTypeNode,
|
||||
isImportClause,
|
||||
isImportSpecifier,
|
||||
isImportTypeAssertionContainer,
|
||||
isJsxAttributeLike,
|
||||
isJsxAttributes,
|
||||
isJsxChild,
|
||||
isJsxClosingElement,
|
||||
isJsxClosingFragment,
|
||||
isJsxOpeningElement,
|
||||
isJsxOpeningFragment,
|
||||
isJsxTagNameExpression,
|
||||
isMemberName,
|
||||
isModifier,
|
||||
isModifierLike,
|
||||
isModuleBody,
|
||||
isModuleName,
|
||||
isModuleReference,
|
||||
isNamedExportBindings,
|
||||
isNamedImportBindings,
|
||||
isObjectLiteralElementLike,
|
||||
isOptionalChain,
|
||||
isParameterDeclaration,
|
||||
isPropertyAccessChain,
|
||||
isPropertyName,
|
||||
isQuestionDotToken,
|
||||
isQuestionOrExclamationToken,
|
||||
isQuestionOrPlusOrMinusToken,
|
||||
isQuestionToken,
|
||||
isReadonlyKeywordOrPlusOrMinusToken,
|
||||
isStatement,
|
||||
isStringLiteralOrJsxExpression,
|
||||
isTemplateHead,
|
||||
isTemplateLiteral,
|
||||
isTemplateLiteralTypeSpan,
|
||||
isTemplateMiddleOrTemplateTail,
|
||||
isTemplateSpan,
|
||||
isToken,
|
||||
isTypeElement,
|
||||
isTypeNode,
|
||||
isTypeNodeOrTypeParameterDeclaration,
|
||||
isTypeParameterDeclaration,
|
||||
isVariableDeclaration,
|
||||
isVariableDeclarationList,
|
||||
setEmitFlags,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
singleOrUndefined,
|
||||
some,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,23 +1,110 @@
|
||||
import {
|
||||
addRange, BuilderProgram, CancellationToken, chainDiagnosticMessages, CharacterCodes, combinePaths, CompilerHost,
|
||||
CompilerOptions, contains, convertToRelativePath, copyProperties, countWhere, createCompilerDiagnostic,
|
||||
createEmitAndSemanticDiagnosticsBuilderProgram, createGetCanonicalFileName, createGetSourceFile,
|
||||
createIncrementalCompilerHost, createIncrementalProgram, CreateProgram, createWriteFileMeasuringIO,
|
||||
CustomTransformers, Debug, Diagnostic, DiagnosticCategory, DiagnosticMessage, DiagnosticMessageChain,
|
||||
DiagnosticReporter, Diagnostics, DirectoryStructureHost, EmitAndSemanticDiagnosticsBuilderProgram, EmitResult, emptyArray,
|
||||
endsWith, ExitStatus, ExtendedConfigCacheEntry, Extension, externalHelpersModuleNameText, FileExtensionInfo,
|
||||
fileExtensionIs, FileIncludeKind, FileIncludeReason, FileWatcher, filter, find, flattenDiagnosticMessageText,
|
||||
forEach, forEachEntry, ForegroundColorEscapeSequences, formatColorAndReset, formatDiagnostic, FormatDiagnosticsHost,
|
||||
formatDiagnosticsWithColorAndContext, generateDjb2Hash, getDefaultLibFileName, getDirectoryPath,
|
||||
getEmitScriptTarget, getLineAndCharacterOfPosition, getNewLineCharacter, getNormalizedAbsolutePath,
|
||||
getParsedCommandLineOfConfigFile, getPatternFromSpec, getReferencedFileLocation, getRegexFromPattern,
|
||||
getRelativePathFromDirectory, getWatchFactory, HasCurrentDirectory, isExternalOrCommonJsModule, isLineBreak,
|
||||
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,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
CharacterCodes,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CreateProgram,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
DirectoryStructureHost,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
EmitResult,
|
||||
ExitStatus,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
FileExtensionInfo,
|
||||
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,
|
||||
formatColorAndReset,
|
||||
formatDiagnostic,
|
||||
formatDiagnosticsWithColorAndContext,
|
||||
generateDjb2Hash,
|
||||
getDefaultLibFileName,
|
||||
getDirectoryPath,
|
||||
getEmitScriptTarget,
|
||||
getLineAndCharacterOfPosition,
|
||||
getNewLineCharacter,
|
||||
getNormalizedAbsolutePath,
|
||||
getParsedCommandLineOfConfigFile,
|
||||
getPatternFromSpec,
|
||||
getReferencedFileLocation,
|
||||
getRegexFromPattern,
|
||||
getRelativePathFromDirectory,
|
||||
getWatchFactory,
|
||||
isExternalOrCommonJsModule,
|
||||
isLineBreak,
|
||||
isReferenceFileLocation,
|
||||
isReferencedFile,
|
||||
isString,
|
||||
last,
|
||||
maybeBind,
|
||||
memoize,
|
||||
noop,
|
||||
normalizePath,
|
||||
outFile,
|
||||
packageIdToString,
|
||||
pathIsAbsolute,
|
||||
sortAndDeduplicateDiagnostics,
|
||||
sourceMapCommentRegExp,
|
||||
sourceMapCommentRegExpDontCareLineStart,
|
||||
sys,
|
||||
targetOptionDeclaration,
|
||||
whitespaceOrMapCommentRegExp,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
const sysFormatDiagnosticsHost: FormatDiagnosticsHost | undefined = sys ? {
|
||||
|
||||
@ -1,26 +1,95 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
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, DiagnosticReporter, Diagnostics, DirectoryStructureHost,
|
||||
DirectoryWatcherCallback, EmitAndSemanticDiagnosticsBuilderProgram, ExtendedConfigCacheEntry,
|
||||
FileExtensionInfo, FileReference, FileWatcher, FileWatcherCallback, FileWatcherEventKind, getBuildInfo,
|
||||
getConfigFileParsingDiagnostics, getDirectoryPath, getEntries, getFileNamesFromConfigSpecs, getNewLineCharacter,
|
||||
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,
|
||||
BuildInfo,
|
||||
BuilderProgram,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
ConfigFileDiagnosticsReporter,
|
||||
ConfigFileProgramReloadLevel,
|
||||
CreateSourceFileOptions,
|
||||
Debug,
|
||||
Diagnostic,
|
||||
DiagnosticMessage,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
DirectoryStructureHost,
|
||||
DirectoryWatcherCallback,
|
||||
EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
ExtendedConfigCacheEntry,
|
||||
FileExtensionInfo,
|
||||
FileReference,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
HasInvalidatedResolutions,
|
||||
MapLike,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionInfo,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
PollingInterval,
|
||||
ProjectReference,
|
||||
ResolutionCacheHost,
|
||||
ResolutionMode,
|
||||
ResolvedModule,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
ScriptTarget,
|
||||
SharedExtendedConfigFileWatcher,
|
||||
SourceFile,
|
||||
System,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
updateErrorForNoInputFiles, updateMissingFilePathsWatch, updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories, version, WatchDirectoryFlags, WatchOptions, WatchType, WatchTypeRegistry,
|
||||
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,
|
||||
getEntries,
|
||||
getFileNamesFromConfigSpecs,
|
||||
getNewLineCharacter,
|
||||
getNormalizedAbsolutePath,
|
||||
getParsedCommandLineOfConfigFile,
|
||||
getTsBuildInfoEmitOutputFilePath,
|
||||
isArray,
|
||||
isIgnoredFileFromWildCardWatching,
|
||||
isProgramUptoDate,
|
||||
maybeBind,
|
||||
noop,
|
||||
noopFileWatcher,
|
||||
parseConfigHostFromCompilerHostLike,
|
||||
perfLogger,
|
||||
returnFalse,
|
||||
returnTrue,
|
||||
setGetSourceFileAsHashVersioned,
|
||||
sys,
|
||||
toPath,
|
||||
updateErrorForNoInputFiles,
|
||||
updateMissingFilePathsWatch,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface ReadBuildProgramHost {
|
||||
|
||||
@ -1,14 +1,58 @@
|
||||
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, find,
|
||||
getBaseFileName, getDirectoryPath, getNormalizedAbsolutePath, hasExtension, identity, insertSorted, isArray,
|
||||
isDeclarationFileName, isExcludedFile, isSupportedSourceFileName, map, matchesExclude, matchFiles, mutateMap,
|
||||
noop, normalizePath, outFile, Path, PollingInterval, Program, removeFileExtension, removeIgnoredPath,
|
||||
returnNoopFileWatcher, returnTrue, setSysLog, SortedArray, SortedReadonlyArray, supportedJSExtensionsFlat,
|
||||
timestamp, WatchDirectoryFlags, WatchFileKind, WatchOptions,
|
||||
BuilderProgram,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
DirectoryWatcherCallback,
|
||||
ExtendedConfigCacheEntry,
|
||||
Extension,
|
||||
FileExtensionInfo,
|
||||
FileSystemEntries,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
FileWatcherEventKind,
|
||||
Path,
|
||||
PollingInterval,
|
||||
Program,
|
||||
SortedArray,
|
||||
SortedReadonlyArray,
|
||||
WatchDirectoryFlags,
|
||||
WatchFileKind,
|
||||
WatchOptions,
|
||||
arrayToMap,
|
||||
binarySearch,
|
||||
closeFileWatcher,
|
||||
compareStringsCaseSensitive,
|
||||
createGetCanonicalFileName,
|
||||
emptyArray,
|
||||
emptyFileSystemEntries,
|
||||
ensureTrailingDirectorySeparator,
|
||||
fileExtensionIsOneOf,
|
||||
find,
|
||||
getBaseFileName,
|
||||
getDirectoryPath,
|
||||
getNormalizedAbsolutePath,
|
||||
hasExtension,
|
||||
identity,
|
||||
insertSorted,
|
||||
isArray,
|
||||
isDeclarationFileName,
|
||||
isExcludedFile,
|
||||
isSupportedSourceFileName,
|
||||
map,
|
||||
matchFiles,
|
||||
matchesExclude,
|
||||
mutateMap,
|
||||
noop,
|
||||
normalizePath,
|
||||
outFile,
|
||||
removeFileExtension,
|
||||
removeIgnoredPath,
|
||||
returnNoopFileWatcher,
|
||||
returnTrue,
|
||||
setSysLog,
|
||||
supportedJSExtensionsFlat,
|
||||
timestamp,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,14 +1,68 @@
|
||||
import {
|
||||
ArrowFunction, AsteriskToken, BinaryExpression, BinaryOperator, BinaryOperatorToken, BindingName, BooleanLiteral,
|
||||
ClassElement, ClassExpression, ColonToken, ConciseBody, ConditionalExpression, ConstructorTypeNode, Debug,
|
||||
Decorator, DeprecationOptions, EntityName, EqualsGreaterThanToken, ExclamationToken, ExportDeclaration, Expression,
|
||||
ExpressionWithTypeArguments, factory, GeneratedIdentifierFlags, HeritageClause, Identifier, ImportClause,
|
||||
IndexSignatureDeclaration, isNodeKind, JSDocParameterTag, JSDocTypeExpression, MethodSignature, Modifier, Mutable,
|
||||
NamedExportBindings, NamedImportBindings, Node, NodeArray, NoSubstitutionTemplateLiteral, NumericLiteral,
|
||||
ParameterDeclaration, parseBaseNodeFactory, PostfixUnaryExpression, PrefixUnaryExpression, PrimaryExpression,
|
||||
PropertyName, PropertySignature, PseudoBigInt, QuestionToken, setParent, setTextRange, setTextRangePosEnd,
|
||||
StringLiteral, SyntaxKind, TaggedTemplateExpression, TemplateLiteral, ThisTypeNode, Token, TypeNode,
|
||||
TypeOperatorNode, TypeParameterDeclaration, TypePredicateNode, VariableDeclaration, YieldExpression,
|
||||
ArrowFunction,
|
||||
AsteriskToken,
|
||||
BinaryExpression,
|
||||
BinaryOperator,
|
||||
BinaryOperatorToken,
|
||||
BindingName,
|
||||
BooleanLiteral,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ColonToken,
|
||||
ConciseBody,
|
||||
ConditionalExpression,
|
||||
ConstructorTypeNode,
|
||||
Debug,
|
||||
Decorator,
|
||||
DeprecationOptions,
|
||||
EntityName,
|
||||
EqualsGreaterThanToken,
|
||||
ExclamationToken,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
ExpressionWithTypeArguments,
|
||||
GeneratedIdentifierFlags,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
IndexSignatureDeclaration,
|
||||
JSDocParameterTag,
|
||||
JSDocTypeExpression,
|
||||
MethodSignature,
|
||||
Modifier,
|
||||
Mutable,
|
||||
NamedExportBindings,
|
||||
NamedImportBindings,
|
||||
NoSubstitutionTemplateLiteral,
|
||||
Node,
|
||||
NodeArray,
|
||||
NumericLiteral,
|
||||
ParameterDeclaration,
|
||||
PostfixUnaryExpression,
|
||||
PrefixUnaryExpression,
|
||||
PrimaryExpression,
|
||||
PropertyName,
|
||||
PropertySignature,
|
||||
PseudoBigInt,
|
||||
QuestionToken,
|
||||
StringLiteral,
|
||||
SyntaxKind,
|
||||
TaggedTemplateExpression,
|
||||
TemplateLiteral,
|
||||
ThisTypeNode,
|
||||
Token,
|
||||
TypeNode,
|
||||
TypeOperatorNode,
|
||||
TypeParameterDeclaration,
|
||||
TypePredicateNode,
|
||||
VariableDeclaration,
|
||||
YieldExpression,
|
||||
factory,
|
||||
isNodeKind,
|
||||
parseBaseNodeFactory,
|
||||
setParent,
|
||||
setTextRange,
|
||||
setTextRangePosEnd,
|
||||
} from "../_namespaces/ts";
|
||||
import { deprecate } from "../deprecate";
|
||||
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import { Node, SyntaxKind, TypeAssertion } from "../_namespaces/ts";
|
||||
import {
|
||||
Node,
|
||||
SyntaxKind,
|
||||
TypeAssertion,
|
||||
} from "../_namespaces/ts";
|
||||
import { deprecate } from "../deprecate";
|
||||
|
||||
// DEPRECATION: Renamed node tests
|
||||
|
||||
@ -1,6 +1,14 @@
|
||||
import {
|
||||
addNodeFactoryPatcher, buildOverload, ConstructorTypeNode, factory, Modifier, NodeArray, NodeFactory,
|
||||
ParameterDeclaration, TypeNode, TypeParameterDeclaration,
|
||||
ConstructorTypeNode,
|
||||
Modifier,
|
||||
NodeArray,
|
||||
NodeFactory,
|
||||
ParameterDeclaration,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads for createConstructorTypeNode/updateConstructorTypeNode that do not accept 'modifiers'
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import { isMemberName, MemberName, Node } from "../_namespaces/ts";
|
||||
import {
|
||||
MemberName,
|
||||
Node,
|
||||
isMemberName,
|
||||
} from "../_namespaces/ts";
|
||||
import { deprecate } from "../deprecate";
|
||||
|
||||
// DEPRECATION: Renamed node tests
|
||||
|
||||
@ -1,6 +1,15 @@
|
||||
import {
|
||||
addNodeFactoryPatcher, buildOverload, EntityName, factory, ImportTypeAssertionContainer, ImportTypeNode, isArray,
|
||||
isEntityName, isImportTypeAssertionContainer, NodeFactory, TypeNode,
|
||||
EntityName,
|
||||
ImportTypeAssertionContainer,
|
||||
ImportTypeNode,
|
||||
NodeFactory,
|
||||
TypeNode,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
isArray,
|
||||
isEntityName,
|
||||
isImportTypeAssertionContainer,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads to createImportTypeNode/updateImportTypeNode that do not accept `assertions`
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
import {
|
||||
addNodeFactoryPatcher, buildOverload, factory, Identifier, isArray, Modifier, NodeFactory, TypeNode,
|
||||
Identifier,
|
||||
Modifier,
|
||||
NodeFactory,
|
||||
TypeNode,
|
||||
TypeParameterDeclaration,
|
||||
addNodeFactoryPatcher,
|
||||
buildOverload,
|
||||
factory,
|
||||
isArray,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Overloads to createTypeParameter/updateTypeParameter that does not accept `modifiers`
|
||||
|
||||
@ -1,16 +1,80 @@
|
||||
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, Identifier,
|
||||
ImportClause, ImportDeclaration, ImportEqualsDeclaration, IndexSignatureDeclaration, InterfaceDeclaration, isArray,
|
||||
isAssertClause, isAsteriskToken, isBindingName, isBlock, isClassElement, isDecorator, isDotDotDotToken,
|
||||
isExpression, isHeritageClause, isIdentifier, isImportClause, isModifier, isModuleBody, isModuleName,
|
||||
isModuleReference, isNamedExportBindings, isParameter, isPropertyName, isQuestionOrExclamationToken,
|
||||
isQuestionToken, isTypeElement, isTypeNode, isTypeParameterDeclaration, MethodDeclaration, Modifier, ModifierLike,
|
||||
ModuleBody, ModuleDeclaration, ModuleName, ModuleReference, NamedExportBindings, NodeFactory, NodeFlags,
|
||||
ParameterDeclaration, PropertyDeclaration, PropertyName, QuestionToken, SetAccessorDeclaration, some,
|
||||
TypeAliasDeclaration, TypeElement, TypeNode, TypeParameterDeclaration,
|
||||
AssertClause,
|
||||
AsteriskToken,
|
||||
BindingName,
|
||||
Block,
|
||||
ClassDeclaration,
|
||||
ClassElement,
|
||||
ClassExpression,
|
||||
ClassStaticBlockDeclaration,
|
||||
ConstructorDeclaration,
|
||||
Decorator,
|
||||
DeprecationOptions,
|
||||
DotDotDotToken,
|
||||
EnumDeclaration,
|
||||
EnumMember,
|
||||
ExclamationToken,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Expression,
|
||||
FunctionDeclaration,
|
||||
GetAccessorDeclaration,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
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,
|
||||
isBindingName,
|
||||
isBlock,
|
||||
isClassElement,
|
||||
isDecorator,
|
||||
isDotDotDotToken,
|
||||
isExpression,
|
||||
isHeritageClause,
|
||||
isIdentifier,
|
||||
isImportClause,
|
||||
isModifier,
|
||||
isModuleBody,
|
||||
isModuleName,
|
||||
isModuleReference,
|
||||
isNamedExportBindings,
|
||||
isParameter,
|
||||
isPropertyName,
|
||||
isQuestionOrExclamationToken,
|
||||
isQuestionToken,
|
||||
isTypeElement,
|
||||
isTypeNode,
|
||||
isTypeParameterDeclaration,
|
||||
some,
|
||||
} from "../_namespaces/ts";
|
||||
|
||||
// DEPRECATION: Deprecate passing `decorators` separate from `modifiers`
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
import { Debug, DeprecationOptions, formatStringFromArgs, noop, version, Version } from "./_namespaces/ts";
|
||||
import {
|
||||
Debug,
|
||||
DeprecationOptions,
|
||||
Version,
|
||||
formatStringFromArgs,
|
||||
noop,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export let enableDeprecationWarnings = true;
|
||||
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import { hasProperty, UnionToIntersection, Version } from "./_namespaces/ts";
|
||||
import {
|
||||
UnionToIntersection,
|
||||
Version,
|
||||
hasProperty,
|
||||
} from "./_namespaces/ts";
|
||||
import { deprecate } from "./deprecate";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,22 +1,92 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
arrayFrom, BuilderProgram, BuildOptions, buildOpts, changeCompilerHostLikeToUseCache, CharacterCodes, combinePaths,
|
||||
CommandLineOption, compareStringsCaseInsensitive, CompilerOptions, contains, convertToOptionsWithAbsolutePaths,
|
||||
convertToTSConfig, createBuilderStatusReporter, createCompilerDiagnostic, createCompilerHostWorker,
|
||||
createDiagnosticReporter, createGetCanonicalFileName, createIncrementalCompilerHost, createProgram, CreateProgram,
|
||||
CreateProgramOptions, createSolutionBuilder, createSolutionBuilderHost, createSolutionBuilderWithWatch,
|
||||
createSolutionBuilderWithWatchHost, createWatchCompilerHostOfConfigFile,
|
||||
createWatchCompilerHostOfFilesAndCompilerOptions, createWatchProgram, Debug, Diagnostic, DiagnosticMessage,
|
||||
DiagnosticReporter, Diagnostics, dumpTracingLegend, EmitAndSemanticDiagnosticsBuilderProgram,
|
||||
emitFilesAndReportErrorsAndGetExitStatus, ExitStatus, ExtendedConfigCacheEntry, Extension, fileExtensionIs,
|
||||
fileExtensionIsOneOf, filter, findConfigFile, forEach, formatMessage, generateTSConfig,
|
||||
getBuildOrderFromAnyBuildOrder, getCompilerOptionsDiffValue, getConfigFileParsingDiagnostics, getDiagnosticText,
|
||||
getEntries, getErrorSummaryText, getLineStarts, getNormalizedAbsolutePath, isIncrementalCompilation, isWatchSet,
|
||||
normalizePath, optionDeclarations, optionsForBuild, optionsForWatch, padLeft, padRight, parseBuildCommand,
|
||||
parseCommandLine, parseConfigFileWithSystem, ParsedCommandLine, Program, reduceLeftIterator, ReportEmitErrorSummary,
|
||||
SolutionBuilder, SolutionBuilderHostBase, sort, SourceFile, startsWith, startTracing, stringContains,
|
||||
supportedJSExtensionsFlat, supportedTSExtensionsFlat, sys, System, toPath, tracing, validateLocaleAndSetLanguage,
|
||||
version, WatchCompilerHost, WatchOptions,
|
||||
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,
|
||||
buildOpts,
|
||||
changeCompilerHostLikeToUseCache,
|
||||
combinePaths,
|
||||
compareStringsCaseInsensitive,
|
||||
contains,
|
||||
convertToOptionsWithAbsolutePaths,
|
||||
convertToTSConfig,
|
||||
createBuilderStatusReporter,
|
||||
createCompilerDiagnostic,
|
||||
createCompilerHostWorker,
|
||||
createDiagnosticReporter,
|
||||
createGetCanonicalFileName,
|
||||
createIncrementalCompilerHost,
|
||||
createProgram,
|
||||
createSolutionBuilder,
|
||||
createSolutionBuilderHost,
|
||||
createSolutionBuilderWithWatch,
|
||||
createSolutionBuilderWithWatchHost,
|
||||
createWatchCompilerHostOfConfigFile,
|
||||
createWatchCompilerHostOfFilesAndCompilerOptions,
|
||||
createWatchProgram,
|
||||
dumpTracingLegend,
|
||||
emitFilesAndReportErrorsAndGetExitStatus,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
filter,
|
||||
findConfigFile,
|
||||
forEach,
|
||||
formatMessage,
|
||||
generateTSConfig,
|
||||
getBuildOrderFromAnyBuildOrder,
|
||||
getCompilerOptionsDiffValue,
|
||||
getConfigFileParsingDiagnostics,
|
||||
getDiagnosticText,
|
||||
getEntries,
|
||||
getErrorSummaryText,
|
||||
getLineStarts,
|
||||
getNormalizedAbsolutePath,
|
||||
isIncrementalCompilation,
|
||||
isWatchSet,
|
||||
normalizePath,
|
||||
optionDeclarations,
|
||||
optionsForBuild,
|
||||
optionsForWatch,
|
||||
padLeft,
|
||||
padRight,
|
||||
parseBuildCommand,
|
||||
parseCommandLine,
|
||||
parseConfigFileWithSystem,
|
||||
reduceLeftIterator,
|
||||
sort,
|
||||
startTracing,
|
||||
startsWith,
|
||||
stringContains,
|
||||
supportedJSExtensionsFlat,
|
||||
supportedTSExtensionsFlat,
|
||||
sys,
|
||||
toPath,
|
||||
tracing,
|
||||
validateLocaleAndSetLanguage,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
import * as performance from "../compiler/_namespaces/ts.performance";
|
||||
|
||||
|
||||
@ -8,4 +8,4 @@ export * from "../../typingsInstallerCore/_namespaces/ts";
|
||||
export * from "../../deprecatedCompat/_namespaces/ts";
|
||||
export * from "../harnessGlobals";
|
||||
import * as server from "./ts.server";
|
||||
export { server };
|
||||
export { server };
|
||||
|
||||
@ -1,18 +1,81 @@
|
||||
import {
|
||||
ApplicableRefactorInfo, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, Classifications,
|
||||
ClassifiedSpan, CodeActionCommand, CodeFixAction, CompletionEntry, CompletionEntryDetails, CompletionInfo,
|
||||
computeLineAndCharacterOfPosition, computeLineStarts, computePositionOfLineAndCharacter, createQueue,
|
||||
createTextSpanFromBounds, Debug, DefinitionInfo, DefinitionInfoAndBoundSpan, Diagnostic, DiagnosticCategory,
|
||||
DiagnosticWithLocation, DocCommentTemplateOptions, DocumentHighlights, DocumentSpan, 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, ReferencedSymbol, ReferenceEntry, RenameInfo,
|
||||
RenameInfoFailure, RenameInfoSuccess, RenameLocation, ScriptElementKind, SemanticClassificationFormat,
|
||||
SignatureHelpItem, SignatureHelpItems, SourceFile, Symbol, TextChange, TextInsertion, textPart, TextRange, TextSpan,
|
||||
TodoComment, TodoCommentDescriptor, UserPreferences,
|
||||
ApplicableRefactorInfo,
|
||||
CallHierarchyIncomingCall,
|
||||
CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall,
|
||||
Classifications,
|
||||
ClassifiedSpan,
|
||||
CodeActionCommand,
|
||||
CodeFixAction,
|
||||
CompletionEntry,
|
||||
CompletionEntryDetails,
|
||||
CompletionInfo,
|
||||
Debug,
|
||||
DefinitionInfo,
|
||||
DefinitionInfoAndBoundSpan,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
DiagnosticWithLocation,
|
||||
DocCommentTemplateOptions,
|
||||
DocumentHighlights,
|
||||
DocumentSpan,
|
||||
EditorOptions,
|
||||
EmitOutput,
|
||||
FileTextChanges,
|
||||
FormatCodeOptions,
|
||||
FormatCodeSettings,
|
||||
ImplementationLocation,
|
||||
InlayHint,
|
||||
InlayHintKind,
|
||||
JSDocTagInfo,
|
||||
LanguageService,
|
||||
LanguageServiceHost,
|
||||
NavigateToItem,
|
||||
NavigationBarItem,
|
||||
NavigationTree,
|
||||
OrganizeImportsArgs,
|
||||
OutliningSpan,
|
||||
PatternMatchKind,
|
||||
Program,
|
||||
QuickInfo,
|
||||
RefactorEditInfo,
|
||||
ReferenceEntry,
|
||||
ReferencedSymbol,
|
||||
RenameInfo,
|
||||
RenameInfoFailure,
|
||||
RenameInfoSuccess,
|
||||
RenameLocation,
|
||||
ScriptElementKind,
|
||||
SemanticClassificationFormat,
|
||||
SignatureHelpItem,
|
||||
SignatureHelpItems,
|
||||
SourceFile,
|
||||
Symbol,
|
||||
TextChange,
|
||||
TextInsertion,
|
||||
TextRange,
|
||||
TextSpan,
|
||||
TodoComment,
|
||||
TodoCommentDescriptor,
|
||||
UserPreferences,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineStarts,
|
||||
computePositionOfLineAndCharacter,
|
||||
createQueue,
|
||||
createTextSpanFromBounds,
|
||||
firstDefined,
|
||||
getSnapshotText,
|
||||
identity,
|
||||
isString,
|
||||
map,
|
||||
mapOneOrMany,
|
||||
notImplemented,
|
||||
textPart,
|
||||
} from "./_namespaces/ts";
|
||||
import { CommandNames, protocol } from "./_namespaces/ts.server";
|
||||
import {
|
||||
CommandNames,
|
||||
protocol,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
export interface SessionClientHost extends LanguageServiceHost {
|
||||
writeMessage(message: string): void;
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
import { existsSync } from "fs";
|
||||
import { dirname, join, resolve } from "path";
|
||||
import {
|
||||
dirname,
|
||||
join,
|
||||
resolve,
|
||||
} from "path";
|
||||
|
||||
// search directories upward to avoid hard-wired paths based on the
|
||||
// build tree (same as scripts/build/findUpDir.js)
|
||||
|
||||
@ -5,7 +5,11 @@ import * as vfs from "./_namespaces/vfs";
|
||||
import * as compiler from "./_namespaces/compiler";
|
||||
import * as documents from "./_namespaces/documents";
|
||||
import * as fakes from "./_namespaces/fakes";
|
||||
import { RunnerBase, TypeWriterResult, TypeWriterWalker } from "./_namespaces/Harness";
|
||||
import {
|
||||
RunnerBase,
|
||||
TypeWriterResult,
|
||||
TypeWriterWalker,
|
||||
} from "./_namespaces/Harness";
|
||||
|
||||
export interface IO {
|
||||
newLine(): string;
|
||||
|
||||
@ -4,7 +4,12 @@ import * as vfs from "./_namespaces/vfs";
|
||||
import * as collections from "./_namespaces/collections";
|
||||
import * as vpath from "./_namespaces/vpath";
|
||||
import * as Utils from "./_namespaces/Utils";
|
||||
import { Compiler, harnessNewLine, mockHash, virtualFileSystemRoot } from "./_namespaces/Harness";
|
||||
import {
|
||||
Compiler,
|
||||
harnessNewLine,
|
||||
mockHash,
|
||||
virtualFileSystemRoot,
|
||||
} from "./_namespaces/Harness";
|
||||
|
||||
export function makeDefaultProxy(info: ts.server.PluginCreateInfo): ts.LanguageService {
|
||||
const proxy = Object.create(/*prototype*/ null); // eslint-disable-line no-null/no-null
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import { FileBasedTest, IO, userSpecifiedRoot } from "./_namespaces/Harness";
|
||||
import {
|
||||
FileBasedTest,
|
||||
IO,
|
||||
userSpecifiedRoot,
|
||||
} from "./_namespaces/Harness";
|
||||
|
||||
export type TestRunnerKind = CompilerTestKind | FourslashTestKind | "project" | "rwc" | "test262" | "user" | "dt" | "docker";
|
||||
export type CompilerTestKind = "conformance" | "compiler";
|
||||
|
||||
@ -1,9 +1,34 @@
|
||||
import {
|
||||
CharacterCodes, combinePaths, compareStringsCaseSensitive, CompilerOptions, Debug, deduplicate,
|
||||
equateStringsCaseSensitive, Extension, fileExtensionIs, flatMap, forEach, getBaseFileName, getDirectoryPath,
|
||||
getEntries, getNormalizedAbsolutePath, getOwnKeys, getPathComponents, getProperty, hasJSFileExtension,
|
||||
mapDefined, MapLike, normalizePath, Path, readConfigFile, removeFileExtension,
|
||||
removeMinAndVersionNumbers, some, TypeAcquisition, Version, versionMajorMinor,
|
||||
CharacterCodes,
|
||||
CompilerOptions,
|
||||
Debug,
|
||||
Extension,
|
||||
MapLike,
|
||||
Path,
|
||||
TypeAcquisition,
|
||||
Version,
|
||||
combinePaths,
|
||||
compareStringsCaseSensitive,
|
||||
deduplicate,
|
||||
equateStringsCaseSensitive,
|
||||
fileExtensionIs,
|
||||
flatMap,
|
||||
forEach,
|
||||
getBaseFileName,
|
||||
getDirectoryPath,
|
||||
getEntries,
|
||||
getNormalizedAbsolutePath,
|
||||
getOwnKeys,
|
||||
getPathComponents,
|
||||
getProperty,
|
||||
hasJSFileExtension,
|
||||
mapDefined,
|
||||
normalizePath,
|
||||
readConfigFile,
|
||||
removeFileExtension,
|
||||
removeMinAndVersionNumbers,
|
||||
some,
|
||||
versionMajorMinor,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
import { padLeft, sys } from "./_namespaces/ts";
|
||||
import {
|
||||
padLeft,
|
||||
sys,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export type ActionSet = "action::set";
|
||||
export type ActionInvalidate = "action::invalidate";
|
||||
|
||||
@ -1,10 +1,23 @@
|
||||
import {
|
||||
ActionInvalidate, ActionPackageInstalled, ActionSet, EventBeginInstallTypes, EventEndInstallTypes,
|
||||
EventInitializationFailed, EventTypesRegistry,
|
||||
ActionInvalidate,
|
||||
ActionPackageInstalled,
|
||||
ActionSet,
|
||||
EventBeginInstallTypes,
|
||||
EventEndInstallTypes,
|
||||
EventInitializationFailed,
|
||||
EventTypesRegistry,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
CompilerOptions, DirectoryWatcherCallback, FileWatcher, FileWatcherCallback, JsTyping, MapLike, Path,
|
||||
SortedReadonlyArray, TypeAcquisition, WatchOptions,
|
||||
CompilerOptions,
|
||||
DirectoryWatcherCallback,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
JsTyping,
|
||||
MapLike,
|
||||
Path,
|
||||
SortedReadonlyArray,
|
||||
TypeAcquisition,
|
||||
WatchOptions,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface TypingInstallerResponse {
|
||||
|
||||
@ -1,38 +1,184 @@
|
||||
import {
|
||||
ActionInvalidate, ActionSet, asNormalizedPath, AutoImportProviderProject, BeginEnablePluginResult,
|
||||
BeginInstallTypes, ConfiguredProject, countEachFileTypes, createPackageJsonCache, emptyArray, EndInstallTypes,
|
||||
Errors, ExternalProject, getBaseConfigFileName, hasNoTypeScriptSource, InferredProject, InvalidateCachedTypings,
|
||||
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, toNormalizedPath, TypingsCache,
|
||||
ActionInvalidate,
|
||||
ActionSet,
|
||||
AutoImportProviderProject,
|
||||
BeginEnablePluginResult,
|
||||
BeginInstallTypes,
|
||||
ConfiguredProject,
|
||||
EndInstallTypes,
|
||||
Errors,
|
||||
ExternalProject,
|
||||
ITypingsInstaller,
|
||||
InferredProject,
|
||||
InvalidateCachedTypings,
|
||||
LogLevel,
|
||||
Logger,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
PackageInstalledResponse,
|
||||
PackageJsonCache,
|
||||
Project,
|
||||
ProjectFilesWithTSDiagnostics,
|
||||
ProjectKind,
|
||||
ProjectOptions,
|
||||
ScriptInfo,
|
||||
ScriptInfoVersion,
|
||||
ServerHost,
|
||||
Session,
|
||||
SetTypings,
|
||||
ThrottledOperations,
|
||||
TypingsCache,
|
||||
asNormalizedPath,
|
||||
countEachFileTypes,
|
||||
createPackageJsonCache,
|
||||
emptyArray,
|
||||
getBaseConfigFileName,
|
||||
hasNoTypeScriptSource,
|
||||
isConfiguredProject,
|
||||
isDynamicFileName,
|
||||
isInferredProject,
|
||||
isInferredProjectName,
|
||||
makeAutoImportProviderProjectName,
|
||||
makeAuxiliaryProjectName,
|
||||
makeInferredProjectName,
|
||||
normalizedPathToPath,
|
||||
nullTypingsInstaller,
|
||||
protocol,
|
||||
toNormalizedPath,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
addToSeen, arrayFrom, arrayToMap, AssertionLevel, CachedDirectoryStructureHost, canJsonReportNoInputFiles,
|
||||
canWatchDirectoryOrFile, cleanExtendedConfigCache, clearMap, clearSharedExtendedConfigFileWatcher,
|
||||
closeFileWatcherOf, combinePaths, CommandLineOption, CompilerOptions, CompletionInfo, ConfigFileProgramReloadLevel,
|
||||
contains, containsPath, convertCompilerOptionsForTelemetry, convertEnableAutoDiscoveryToEnable, convertJsonOption,
|
||||
createCachedDirectoryStructureHost, createDocumentRegistryInternal, createGetCanonicalFileName, createMultiMap,
|
||||
Debug, Diagnostic, directorySeparator, DirectoryStructureHost, DocumentPosition, DocumentPositionMapper,
|
||||
DocumentRegistry, DocumentRegistryBucketKeyWithMode, emptyOptions, ensureTrailingDirectorySeparator,
|
||||
ExtendedConfigCacheEntry, FileExtensionInfo, fileExtensionIs, FileWatcher, FileWatcherEventKind, find, flatMap,
|
||||
forEach, forEachAncestorDirectory, forEachEntry, forEachKey, forEachResolvedProjectReference, FormatCodeSettings,
|
||||
getAnyExtensionFromPath, getBaseFileName, getDefaultFormatCodeSettings, getDirectoryPath, getDocumentPositionMapper,
|
||||
getEntries, getFileNamesFromConfigSpecs, getFileWatcherEventKind, getNormalizedAbsolutePath, getSnapshotText,
|
||||
getWatchFactory, hasExtension, hasProperty, hasTSFileExtension, HostCancellationToken, identity,
|
||||
IncompleteCompletionsCache, IndentStyle, isArray, isIgnoredFileFromWildCardWatching, isInsideNodeModules,
|
||||
isJsonEqual, 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,
|
||||
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,
|
||||
canJsonReportNoInputFiles,
|
||||
canWatchDirectoryOrFile,
|
||||
cleanExtendedConfigCache,
|
||||
clearMap,
|
||||
clearSharedExtendedConfigFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
contains,
|
||||
containsPath,
|
||||
convertCompilerOptionsForTelemetry,
|
||||
convertEnableAutoDiscoveryToEnable,
|
||||
convertJsonOption,
|
||||
createCachedDirectoryStructureHost,
|
||||
createDocumentRegistryInternal,
|
||||
createGetCanonicalFileName,
|
||||
createMultiMap,
|
||||
directorySeparator,
|
||||
emptyOptions,
|
||||
ensureTrailingDirectorySeparator,
|
||||
fileExtensionIs,
|
||||
find,
|
||||
flatMap,
|
||||
forEach,
|
||||
forEachAncestorDirectory,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
forEachResolvedProjectReference,
|
||||
getAnyExtensionFromPath,
|
||||
getBaseFileName,
|
||||
getDefaultFormatCodeSettings,
|
||||
getDirectoryPath,
|
||||
getDocumentPositionMapper,
|
||||
getEntries,
|
||||
getFileNamesFromConfigSpecs,
|
||||
getFileWatcherEventKind,
|
||||
getNormalizedAbsolutePath,
|
||||
getSnapshotText,
|
||||
getWatchFactory,
|
||||
hasExtension,
|
||||
hasProperty,
|
||||
hasTSFileExtension,
|
||||
identity,
|
||||
isArray,
|
||||
isIgnoredFileFromWildCardWatching,
|
||||
isInsideNodeModules,
|
||||
isJsonEqual,
|
||||
isNodeModulesDirectory,
|
||||
isRootedDiskPath,
|
||||
isString,
|
||||
length,
|
||||
map,
|
||||
mapDefinedEntries,
|
||||
mapDefinedIterator,
|
||||
missingFileModifiedTime,
|
||||
noop,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
optionDeclarations,
|
||||
optionsForWatch,
|
||||
parseJsonSourceFileConfigFileContent,
|
||||
parseJsonText,
|
||||
parsePackageName,
|
||||
removeFileExtension,
|
||||
removeIgnoredPath,
|
||||
removeMinAndVersionNumbers,
|
||||
resolveProjectReferencePath,
|
||||
returnNoopFileWatcher,
|
||||
returnTrue,
|
||||
some,
|
||||
startsWith,
|
||||
toFileNameLowerCase,
|
||||
toPath,
|
||||
tracing,
|
||||
tryAddToSet,
|
||||
tryReadFile,
|
||||
typeAcquisitionDeclarations,
|
||||
unorderedRemoveItem,
|
||||
updateSharedExtendedConfigFileWatcher,
|
||||
updateWatchingWildcardDirectories,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export const maxProgramSizeForNonTsFiles = 20 * 1024 * 1024;
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
import {
|
||||
Debug, FileWatcher, ModulePath, ModuleSpecifierCache, ModuleSpecifierOptions, nodeModulesPathPart, Path,
|
||||
ResolvedModuleSpecifierInfo, UserPreferences,
|
||||
Debug,
|
||||
FileWatcher,
|
||||
ModulePath,
|
||||
ModuleSpecifierCache,
|
||||
ModuleSpecifierOptions,
|
||||
Path,
|
||||
ResolvedModuleSpecifierInfo,
|
||||
UserPreferences,
|
||||
nodeModulesPathPart,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/** @internal */
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
import {
|
||||
combinePaths, createPackageJsonInfo, Debug, forEachAncestorDirectory, getDirectoryPath, Path,
|
||||
ProjectPackageJsonInfo, Ternary, tryFileExists,
|
||||
Debug,
|
||||
Path,
|
||||
ProjectPackageJsonInfo,
|
||||
Ternary,
|
||||
combinePaths,
|
||||
createPackageJsonInfo,
|
||||
forEachAncestorDirectory,
|
||||
getDirectoryPath,
|
||||
tryFileExists,
|
||||
} from "./_namespaces/ts";
|
||||
import { ProjectService } from "./_namespaces/ts.server";
|
||||
|
||||
|
||||
@ -1,34 +1,155 @@
|
||||
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, toNormalizedPath,
|
||||
TypingsCache, updateProjectIfDirty,
|
||||
Errors,
|
||||
FileStats,
|
||||
LogLevel,
|
||||
ModuleImportResult,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
ProjectOptions,
|
||||
ProjectReferenceProjectLoadKind,
|
||||
ProjectService,
|
||||
ScriptInfo,
|
||||
ServerHost,
|
||||
Session,
|
||||
TypingsCache,
|
||||
asNormalizedPath,
|
||||
createModuleSpecifierCache,
|
||||
emptyArray,
|
||||
forEachResolvedProjectReferenceProject,
|
||||
projectContainsInfoDirectly,
|
||||
protocol,
|
||||
toNormalizedPath,
|
||||
updateProjectIfDirty,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
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, forEach, forEachEntry, forEachKey, generateDjb2Hash,
|
||||
getAllowJSCompilerOption, getAutomaticTypeDirectiveNames, GetCanonicalFileName,
|
||||
getDeclarationEmitOutputFilePathWorker, getDefaultCompilerOptions, getDefaultLibFileName, getDefaultLibFilePath,
|
||||
getDirectoryPath, getEffectiveTypeRoots, getEmitDeclarations, getEntrypointsFromPackageJsonInfo,
|
||||
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,
|
||||
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,
|
||||
arrayFrom,
|
||||
arrayToMap,
|
||||
changesAffectModuleResolution,
|
||||
clearMap,
|
||||
cloneCompilerOptions,
|
||||
closeFileWatcher,
|
||||
closeFileWatcherOf,
|
||||
combinePaths,
|
||||
concatenate,
|
||||
createCacheableExportInfoMap,
|
||||
createLanguageService,
|
||||
createResolutionCache,
|
||||
createSymlinkCache,
|
||||
enumerateInsertsAndDeletes,
|
||||
every,
|
||||
explainFiles,
|
||||
fileExtensionIs,
|
||||
filter,
|
||||
firstDefined,
|
||||
flatMap,
|
||||
forEach,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
generateDjb2Hash,
|
||||
getAllowJSCompilerOption,
|
||||
getAutomaticTypeDirectiveNames,
|
||||
getDeclarationEmitOutputFilePathWorker,
|
||||
getDefaultCompilerOptions,
|
||||
getDefaultLibFileName,
|
||||
getDefaultLibFilePath,
|
||||
getDirectoryPath,
|
||||
getEffectiveTypeRoots,
|
||||
getEmitDeclarations,
|
||||
getEntrypointsFromPackageJsonInfo,
|
||||
getNormalizedAbsolutePath,
|
||||
getOrUpdate,
|
||||
getStringComparer,
|
||||
inferredTypesContainingFile,
|
||||
isDeclarationFileName,
|
||||
isExternalModuleNameRelative,
|
||||
isInsideNodeModules,
|
||||
map,
|
||||
mapDefined,
|
||||
maybeBind,
|
||||
noop,
|
||||
noopFileWatcher,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
orderedRemoveItem,
|
||||
outFile,
|
||||
parsePackageName,
|
||||
perfLogger,
|
||||
removeFileExtension,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
resolvePackageNameToPackageJson,
|
||||
returnFalse,
|
||||
returnTrue,
|
||||
some,
|
||||
sort,
|
||||
sortAndDeduplicate,
|
||||
startsWith,
|
||||
stripQuotes,
|
||||
timestamp,
|
||||
toPath,
|
||||
tracing,
|
||||
updateErrorForNoInputFiles,
|
||||
updateMissingFilePathsWatch,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export enum ProjectKind {
|
||||
|
||||
@ -1,8 +1,22 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
CompilerOptionsValue, EndOfLineState, FileExtensionInfo, HighlightSpanKind, MapLike, OutliningSpanKind, OutputFile,
|
||||
PluginImport, ProjectReference, RenameLocation, ScriptElementKind, ScriptKind, TextChange, TextInsertion,
|
||||
TodoComment, TodoCommentDescriptor, TypeAcquisition,
|
||||
CompilerOptionsValue,
|
||||
EndOfLineState,
|
||||
FileExtensionInfo,
|
||||
HighlightSpanKind,
|
||||
MapLike,
|
||||
OutliningSpanKind,
|
||||
OutputFile,
|
||||
PluginImport,
|
||||
ProjectReference,
|
||||
RenameLocation,
|
||||
ScriptElementKind,
|
||||
ScriptKind,
|
||||
TextChange,
|
||||
TextInsertion,
|
||||
TodoComment,
|
||||
TodoCommentDescriptor,
|
||||
TypeAcquisition,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/**
|
||||
|
||||
@ -1,15 +1,56 @@
|
||||
import {
|
||||
AbsolutePositionAndLineText, ConfiguredProject, Errors, ExternalProject, InferredProject, isConfiguredProject,
|
||||
isExternalProject, isInferredProject, maxFileSize, NormalizedPath, Project, ProjectKind, protocol,
|
||||
ScriptVersionCache, ServerHost,
|
||||
AbsolutePositionAndLineText,
|
||||
ConfiguredProject,
|
||||
Errors,
|
||||
ExternalProject,
|
||||
InferredProject,
|
||||
NormalizedPath,
|
||||
Project,
|
||||
ProjectKind,
|
||||
ScriptVersionCache,
|
||||
ServerHost,
|
||||
isConfiguredProject,
|
||||
isExternalProject,
|
||||
isInferredProject,
|
||||
maxFileSize,
|
||||
protocol,
|
||||
} from "./_namespaces/ts.server";
|
||||
import {
|
||||
assign, clear, closeFileWatcherOf, computeLineAndCharacterOfPosition, computeLineStarts,
|
||||
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,
|
||||
Debug,
|
||||
DocumentPositionMapper,
|
||||
DocumentRegistryBucketKeyWithMode,
|
||||
FileWatcher,
|
||||
FileWatcherEventKind,
|
||||
FormatCodeSettings,
|
||||
IScriptSnapshot,
|
||||
LineInfo,
|
||||
Path,
|
||||
ScriptKind,
|
||||
ScriptSnapshot,
|
||||
SourceFile,
|
||||
SourceFileLike,
|
||||
TextSpan,
|
||||
assign,
|
||||
clear,
|
||||
closeFileWatcherOf,
|
||||
computeLineAndCharacterOfPosition,
|
||||
computeLineStarts,
|
||||
computePositionOfLineAndCharacter,
|
||||
contains,
|
||||
createTextSpanFromBounds,
|
||||
directorySeparator,
|
||||
emptyOptions,
|
||||
forEach,
|
||||
getBaseFileName,
|
||||
getDefaultFormatCodeSettings,
|
||||
getLineInfo,
|
||||
getScriptKindFromFileName,
|
||||
getSnapshotText,
|
||||
hasTSFileExtension,
|
||||
isString,
|
||||
some,
|
||||
stringContains,
|
||||
unorderedRemoveItem,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface ScriptInfoVersion {
|
||||
|
||||
@ -1,8 +1,18 @@
|
||||
import {
|
||||
collapseTextChangeRangesAcrossMultipleVersions, computeLineStarts, createTextChangeRange, createTextSpan, Debug,
|
||||
IScriptSnapshot, TextChangeRange, TextSpan, unchangedTextChangeRange,
|
||||
Debug,
|
||||
IScriptSnapshot,
|
||||
TextChangeRange,
|
||||
TextSpan,
|
||||
collapseTextChangeRangesAcrossMultipleVersions,
|
||||
computeLineStarts,
|
||||
createTextChangeRange,
|
||||
createTextSpan,
|
||||
unchangedTextChangeRange,
|
||||
} from "./_namespaces/ts";
|
||||
import { emptyArray, protocol } from "./_namespaces/ts.server";
|
||||
import {
|
||||
emptyArray,
|
||||
protocol,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
const lineCollectionCapacity = 4;
|
||||
|
||||
|
||||
@ -1,37 +1,183 @@
|
||||
import {
|
||||
arrayFrom, arrayIterator, arrayReverseIterator, CallHierarchyIncomingCall, CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall, cast, CodeAction, CodeActionCommand, CodeFixAction, CombinedCodeActions, CompilerOptions,
|
||||
CompletionEntry, CompletionEntryData, CompletionEntryDetails, CompletionInfo, CompletionTriggerKind,
|
||||
computeLineAndCharacterOfPosition, computeLineStarts, concatenate, createQueue, 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, getEmitDeclarations, getEntries, getEntrypointsFromPackageJsonInfo,
|
||||
getLineAndCharacterOfPosition, getMappedContextSpan, getMappedDocumentSpan, getMappedLocation,
|
||||
getNodeModulePathParts, getNormalizedAbsolutePath, getPackageNameFromTypesPackageName, getPackageScopeForPath,
|
||||
getSnapshotText, getSupportedCodeFixes, 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,
|
||||
CallHierarchyIncomingCall,
|
||||
CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall,
|
||||
CodeAction,
|
||||
CodeActionCommand,
|
||||
CodeFixAction,
|
||||
CombinedCodeActions,
|
||||
CompilerOptions,
|
||||
CompletionEntry,
|
||||
CompletionEntryData,
|
||||
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,
|
||||
createQueue,
|
||||
createSet,
|
||||
createTextSpan,
|
||||
createTextSpanFromBounds,
|
||||
decodedTextSpanIntersectsWith,
|
||||
deduplicate,
|
||||
diagnosticCategoryName,
|
||||
displayPartsToString,
|
||||
documentSpansEqual,
|
||||
equateValues,
|
||||
filter,
|
||||
find,
|
||||
first,
|
||||
firstOrUndefined,
|
||||
flatMap,
|
||||
flatMapToMutable,
|
||||
flattenDiagnosticMessageText,
|
||||
forEachNameInAccessChainWalkingLeft,
|
||||
formatting,
|
||||
getDeclarationFromName,
|
||||
getDeclarationOfKind,
|
||||
getEmitDeclarations,
|
||||
getEntries,
|
||||
getEntrypointsFromPackageJsonInfo,
|
||||
getLineAndCharacterOfPosition,
|
||||
getMappedContextSpan,
|
||||
getMappedDocumentSpan,
|
||||
getMappedLocation,
|
||||
getNodeModulePathParts,
|
||||
getNormalizedAbsolutePath,
|
||||
getPackageNameFromTypesPackageName,
|
||||
getPackageScopeForPath,
|
||||
getSnapshotText,
|
||||
getSupportedCodeFixes,
|
||||
getTemporaryModuleResolutionState,
|
||||
getTextOfIdentifierOrLiteral,
|
||||
getTouchingPropertyName,
|
||||
identity,
|
||||
isAccessExpression,
|
||||
isArray,
|
||||
isDeclarationFileName,
|
||||
isIdentifier,
|
||||
isString,
|
||||
isStringLiteralLike,
|
||||
map,
|
||||
mapDefined,
|
||||
mapDefinedIterator,
|
||||
mapIterator,
|
||||
mapOneOrMany,
|
||||
memoize,
|
||||
nodeModulesPathPart,
|
||||
normalizePath,
|
||||
outFile,
|
||||
perfLogger,
|
||||
removeFileExtension,
|
||||
singleIterator,
|
||||
some,
|
||||
startsWith,
|
||||
stringContains,
|
||||
textSpanEnd,
|
||||
toArray,
|
||||
toFileNameLowerCase,
|
||||
tracing,
|
||||
unmangleScopedPackageName,
|
||||
version,
|
||||
} from "./_namespaces/ts";
|
||||
import {
|
||||
ConfigFileDiagEvent, ConfiguredProject, convertFormatOptions, convertScriptKindName, convertUserPreferences,
|
||||
EmitResult, emptyArray, Errors, GcTimer, indent, isConfigFile, isConfiguredProject, isExternalProject,
|
||||
isInferredProject, ITypingsInstaller, LargeFileReferencedEvent, Logger, LogLevel, Msg, NormalizedPath, Project,
|
||||
ProjectInfoTelemetryEvent, ProjectKind, ProjectLanguageServiceStateEvent, ProjectLoadingFinishEvent,
|
||||
ProjectLoadingStartEvent, ProjectService, ProjectServiceEvent, ProjectServiceEventHandler, ProjectServiceOptions,
|
||||
ProjectsUpdatedInBackgroundEvent, protocol, ScriptInfo, ScriptInfoOrConfig, ServerHost, stringifyIndented,
|
||||
toNormalizedPath, updateProjectIfDirty,
|
||||
ConfigFileDiagEvent,
|
||||
ConfiguredProject,
|
||||
EmitResult,
|
||||
Errors,
|
||||
GcTimer,
|
||||
ITypingsInstaller,
|
||||
LargeFileReferencedEvent,
|
||||
LogLevel,
|
||||
Logger,
|
||||
Msg,
|
||||
NormalizedPath,
|
||||
Project,
|
||||
ProjectInfoTelemetryEvent,
|
||||
ProjectKind,
|
||||
ProjectLanguageServiceStateEvent,
|
||||
ProjectLoadingFinishEvent,
|
||||
ProjectLoadingStartEvent,
|
||||
ProjectService,
|
||||
ProjectServiceEvent,
|
||||
ProjectServiceEventHandler,
|
||||
ProjectServiceOptions,
|
||||
ProjectsUpdatedInBackgroundEvent,
|
||||
ScriptInfo,
|
||||
ScriptInfoOrConfig,
|
||||
ServerHost,
|
||||
convertFormatOptions,
|
||||
convertScriptKindName,
|
||||
convertUserPreferences,
|
||||
emptyArray,
|
||||
indent,
|
||||
isConfigFile,
|
||||
isConfiguredProject,
|
||||
isExternalProject,
|
||||
isInferredProject,
|
||||
protocol,
|
||||
stringifyIndented,
|
||||
toNormalizedPath,
|
||||
updateProjectIfDirty,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
interface StackTraceError extends Error {
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
import { DirectoryWatcherCallback, FileWatcher, FileWatcherCallback, System, WatchOptions } from "./_namespaces/ts";
|
||||
import {
|
||||
DirectoryWatcherCallback,
|
||||
FileWatcher,
|
||||
FileWatcherCallback,
|
||||
System,
|
||||
WatchOptions,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
export interface CompressedData {
|
||||
length: number;
|
||||
|
||||
@ -1,8 +1,22 @@
|
||||
import {
|
||||
ApplyCodeActionCommandResult, arrayIsEqualTo, CompilerOptions, getAllowJSCompilerOption, InstallPackageOptions,
|
||||
noop, notImplemented, Path, returnFalse, sort, SortedReadonlyArray, TypeAcquisition,
|
||||
ApplyCodeActionCommandResult,
|
||||
CompilerOptions,
|
||||
InstallPackageOptions,
|
||||
Path,
|
||||
SortedReadonlyArray,
|
||||
TypeAcquisition,
|
||||
arrayIsEqualTo,
|
||||
getAllowJSCompilerOption,
|
||||
noop,
|
||||
notImplemented,
|
||||
returnFalse,
|
||||
sort,
|
||||
} from "./_namespaces/ts";
|
||||
import { emptyArray, Project, ProjectService } from "./_namespaces/ts.server";
|
||||
import {
|
||||
Project,
|
||||
ProjectService,
|
||||
emptyArray,
|
||||
} from "./_namespaces/ts.server";
|
||||
|
||||
export interface InstallPackageOptionsWithProject extends InstallPackageOptions {
|
||||
projectName: string;
|
||||
|
||||
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