mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Flip imports to case insensitive sorting (#51579)
This commit is contained in:
+105
-105
@@ -1,123 +1,30 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import {
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
CommentDirective,
|
||||
CommentDirectivesMap,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
CreateProgramOptions,
|
||||
CreateSourceFileOptions,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DeclarationWithTypeParameterChildren,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticReporter,
|
||||
DiagnosticWithLocation,
|
||||
Diagnostics,
|
||||
DirectoryStructureHost,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitOnly,
|
||||
EmitResult,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Extension,
|
||||
FileIncludeKind,
|
||||
FileIncludeReason,
|
||||
FilePreprocessingDiagnostics,
|
||||
FilePreprocessingDiagnosticsKind,
|
||||
FileReference,
|
||||
FunctionLikeDeclaration,
|
||||
GetCanonicalFileName,
|
||||
HasChangedAutomaticTypeDirectiveNames,
|
||||
HasInvalidatedResolutions,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
InputFiles,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
ModuleResolutionKind,
|
||||
Mutable,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
NodeWithTypeArguments,
|
||||
ObjectLiteralExpression,
|
||||
OperationCanceledException,
|
||||
PackageId,
|
||||
PackageJsonInfoCache,
|
||||
ParameterDeclaration,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
Path,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ProjectReferenceFile,
|
||||
PropertyDeclaration,
|
||||
ReferencedFile,
|
||||
ResolutionMode,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
SourceOfProjectReferenceRedirect,
|
||||
Statement,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
StructureIsReused,
|
||||
SymlinkCache,
|
||||
SyntaxKind,
|
||||
TsConfigSourceFile,
|
||||
TypeChecker,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
__String,
|
||||
addEmitFlags,
|
||||
addRange,
|
||||
append,
|
||||
arrayFrom,
|
||||
arrayIsEqualTo,
|
||||
AsExpression,
|
||||
AssertClause,
|
||||
BuilderProgram,
|
||||
CancellationToken,
|
||||
canHaveModifiers,
|
||||
chainDiagnosticMessages,
|
||||
changeExtension,
|
||||
changesAffectModuleResolution,
|
||||
changesAffectingProgramStructure,
|
||||
changesAffectModuleResolution,
|
||||
clone,
|
||||
combinePaths,
|
||||
CommentDirective,
|
||||
CommentDirectivesMap,
|
||||
compareDataObjects,
|
||||
comparePaths,
|
||||
compareValues,
|
||||
Comparison,
|
||||
CompilerHost,
|
||||
CompilerOptions,
|
||||
computeLineAndCharacterOfPosition,
|
||||
concatenate,
|
||||
contains,
|
||||
@@ -137,24 +44,49 @@ import {
|
||||
createModeAwareCache,
|
||||
createModuleResolutionCache,
|
||||
createMultiMap,
|
||||
CreateProgramOptions,
|
||||
createSourceFile,
|
||||
CreateSourceFileOptions,
|
||||
createSymlinkCache,
|
||||
createTypeChecker,
|
||||
createTypeReferenceDirectiveResolutionCache,
|
||||
CustomTransformers,
|
||||
Debug,
|
||||
DeclarationWithTypeParameterChildren,
|
||||
Diagnostic,
|
||||
DiagnosticCategory,
|
||||
diagnosticCategoryName,
|
||||
DiagnosticMessage,
|
||||
DiagnosticMessageChain,
|
||||
DiagnosticReporter,
|
||||
Diagnostics,
|
||||
DiagnosticWithLocation,
|
||||
directorySeparator,
|
||||
DirectoryStructureHost,
|
||||
emitFiles,
|
||||
EmitFlags,
|
||||
EmitHost,
|
||||
EmitOnly,
|
||||
EmitResult,
|
||||
emptyArray,
|
||||
ensureTrailingDirectorySeparator,
|
||||
equateStringsCaseInsensitive,
|
||||
equateStringsCaseSensitive,
|
||||
explainIfFileIsRedirectAndImpliedFormat,
|
||||
ExportAssignment,
|
||||
ExportDeclaration,
|
||||
Extension,
|
||||
extensionFromPath,
|
||||
externalHelpersModuleNameText,
|
||||
factory,
|
||||
fileExtensionIs,
|
||||
fileExtensionIsOneOf,
|
||||
FileIncludeKind,
|
||||
FileIncludeReason,
|
||||
fileIncludeReasonToDiagnostics,
|
||||
FilePreprocessingDiagnostics,
|
||||
FilePreprocessingDiagnosticsKind,
|
||||
FileReference,
|
||||
filter,
|
||||
find,
|
||||
firstDefined,
|
||||
@@ -168,9 +100,11 @@ import {
|
||||
forEachEmittedFile,
|
||||
forEachEntry,
|
||||
forEachKey,
|
||||
FunctionLikeDeclaration,
|
||||
getAllowJSCompilerOption,
|
||||
getAutomaticTypeDirectiveNames,
|
||||
getBaseFileName,
|
||||
GetCanonicalFileName,
|
||||
getCommonSourceDirectoryOfConfig,
|
||||
getDefaultLibFileName,
|
||||
getDirectoryPath,
|
||||
@@ -214,15 +148,23 @@ import {
|
||||
getTsConfigObjectLiteralExpression,
|
||||
getTsConfigPropArray,
|
||||
getTsConfigPropArrayElementValue,
|
||||
HasChangedAutomaticTypeDirectiveNames,
|
||||
hasChangesInResolutions,
|
||||
hasExtension,
|
||||
HasInvalidatedResolutions,
|
||||
hasJSDocNodes,
|
||||
hasJSFileExtension,
|
||||
hasJsonModuleEmitEnabled,
|
||||
hasProperty,
|
||||
hasSyntacticModifier,
|
||||
hasZeroOrOneAsteriskCharacter,
|
||||
HeritageClause,
|
||||
Identifier,
|
||||
identity,
|
||||
ImportClause,
|
||||
ImportDeclaration,
|
||||
ImportOrExportSpecifier,
|
||||
InputFiles,
|
||||
inverseJsxOptionMap,
|
||||
isAmbientModule,
|
||||
isAnyImportOrReExport,
|
||||
@@ -241,8 +183,8 @@ import {
|
||||
isImportEqualsDeclaration,
|
||||
isImportSpecifier,
|
||||
isImportTypeNode,
|
||||
isInJSFile,
|
||||
isIncrementalCompilation,
|
||||
isInJSFile,
|
||||
isLiteralImportTypeNode,
|
||||
isModifier,
|
||||
isModuleDeclaration,
|
||||
@@ -255,6 +197,8 @@ import {
|
||||
isStringLiteral,
|
||||
isStringLiteralLike,
|
||||
isTraceEnabled,
|
||||
JsonSourceFile,
|
||||
JsxEmit,
|
||||
length,
|
||||
libMap,
|
||||
libs,
|
||||
@@ -262,32 +206,70 @@ import {
|
||||
mapDefinedIterator,
|
||||
maybeBind,
|
||||
memoize,
|
||||
MethodDeclaration,
|
||||
ModifierFlags,
|
||||
ModifierLike,
|
||||
ModuleBlock,
|
||||
ModuleDeclaration,
|
||||
ModuleKind,
|
||||
ModuleResolutionCache,
|
||||
ModuleResolutionHost,
|
||||
ModuleResolutionInfo,
|
||||
moduleResolutionIsEqualTo,
|
||||
noTransformers,
|
||||
ModuleResolutionKind,
|
||||
Mutable,
|
||||
Node,
|
||||
NodeArray,
|
||||
NodeFlags,
|
||||
nodeModulesPathPart,
|
||||
NodeWithTypeArguments,
|
||||
noop,
|
||||
normalizePath,
|
||||
notImplementedResolver,
|
||||
noTransformers,
|
||||
ObjectLiteralExpression,
|
||||
OperationCanceledException,
|
||||
optionsHaveChanges,
|
||||
outFile,
|
||||
PackageId,
|
||||
packageIdToPackageName,
|
||||
packageIdToString,
|
||||
PackageJsonInfoCache,
|
||||
padLeft,
|
||||
ParameterDeclaration,
|
||||
ParseConfigFileHost,
|
||||
ParsedCommandLine,
|
||||
parseIsolatedEntityName,
|
||||
parseJsonSourceFileConfigFileContent,
|
||||
Path,
|
||||
pathIsAbsolute,
|
||||
pathIsRelative,
|
||||
Program,
|
||||
ProgramHost,
|
||||
ProjectReference,
|
||||
ProjectReferenceFile,
|
||||
projectReferenceIsEqualTo,
|
||||
PropertyDeclaration,
|
||||
ReferencedFile,
|
||||
removeFileExtension,
|
||||
removePrefix,
|
||||
removeSuffix,
|
||||
resolutionExtensionIsTSOrJson,
|
||||
ResolutionMode,
|
||||
resolveConfigFileProjectName,
|
||||
ResolvedConfigFileName,
|
||||
ResolvedModuleFull,
|
||||
ResolvedModuleWithFailedLookupLocations,
|
||||
ResolvedProjectReference,
|
||||
ResolvedTypeReferenceDirective,
|
||||
resolveModuleName,
|
||||
resolveModuleNameFromCache,
|
||||
resolveTypeReferenceDirective,
|
||||
returnFalse,
|
||||
returnUndefined,
|
||||
SatisfiesExpression,
|
||||
ScriptKind,
|
||||
ScriptTarget,
|
||||
setParent,
|
||||
setParentRecursive,
|
||||
setResolvedModule,
|
||||
@@ -296,12 +278,21 @@ import {
|
||||
skipTypeChecking,
|
||||
some,
|
||||
sortAndDeduplicateDiagnostics,
|
||||
SortedReadonlyArray,
|
||||
SourceFile,
|
||||
sourceFileAffectingCompilerOptions,
|
||||
sourceFileMayBeEmitted,
|
||||
SourceOfProjectReferenceRedirect,
|
||||
stableSort,
|
||||
startsWith,
|
||||
Statement,
|
||||
stringContains,
|
||||
StringLiteral,
|
||||
StringLiteralLike,
|
||||
StructureIsReused,
|
||||
supportedJSExtensionsFlat,
|
||||
SymlinkCache,
|
||||
SyntaxKind,
|
||||
sys,
|
||||
targetOptionDeclaration,
|
||||
toFileNameLowerCase,
|
||||
@@ -309,8 +300,17 @@ import {
|
||||
trace,
|
||||
tracing,
|
||||
trimStringEnd,
|
||||
TsConfigSourceFile,
|
||||
TypeChecker,
|
||||
typeDirectiveIsEqualTo,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
TypeReferenceDirectiveResolutionInfo,
|
||||
UnparsedSource,
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
walkUpParenthesizedExpressions,
|
||||
WriteFileCallback,
|
||||
WriteFileCallbackData,
|
||||
writeFileEnsuringDirectories,
|
||||
zipToModeAwareCache,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
Reference in New Issue
Block a user