Skip to content

Commit efa0cae

Browse files
committed
Convert debug namespace into a module
1 parent 6a3b499 commit efa0cae

File tree

155 files changed

+1870
-1555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+1870
-1555
lines changed

src/compiler/_namespaces/ts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export * from "../corePublic";
44
export * from "../core";
5-
export * from "../debug";
5+
export * as Debug from "../debug";
66
export * from "../semver";
77
export * from "../performanceCore";
88
export * from "../perfLogger";

src/compiler/binder.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
BreakOrContinueStatement, CallChain, CallExpression, CaseBlock, CaseClause, cast, CatchClause, ClassLikeDeclaration,
77
ClassStaticBlockDeclaration, CompilerOptions, concatenate, ConditionalExpression, ConditionalTypeNode, contains,
88
createBinaryExpressionTrampoline, createDiagnosticForNodeInSourceFile, createFileDiagnostic, createQueue,
9-
createSymbolTable, Debug, Declaration, declarationNameToString, DeleteExpression, DestructuringAssignment,
9+
createSymbolTable, Declaration, declarationNameToString, DeleteExpression, DestructuringAssignment,
1010
DiagnosticCategory, DiagnosticMessage, DiagnosticRelatedInformation, Diagnostics, DiagnosticWithLocation,
1111
DoStatement, DynamicNamedDeclaration, ElementAccessChain, ElementAccessExpression, EntityNameExpression,
1212
EnumDeclaration, escapeLeadingUnderscores, ESMap, every, ExportAssignment, exportAssignmentIsAlias,
@@ -59,6 +59,7 @@ import {
5959
unusedLabelIsError, VariableDeclaration, WhileStatement, WithStatement,
6060
} from "./_namespaces/ts";
6161
import * as performance from "./_namespaces/ts.performance";
62+
import * as Debug from "./debug";
6263

6364
/** @internal */
6465
export const enum ModuleInstanceState {

src/compiler/builder.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
BundleBuildInfo, CancellationToken, CommandLineOption, compareStringsCaseSensitive, compareValues, CompilerHost,
55
CompilerOptions, compilerOptionsAffectDeclarationPath, compilerOptionsAffectEmit,
66
compilerOptionsAffectSemanticDiagnostics, CompilerOptionsValue, concatenate, convertToOptionsWithAbsolutePaths,
7-
createBuildInfo, createGetCanonicalFileName, createProgram, CustomTransformers, Debug, Diagnostic,
7+
createBuildInfo, createGetCanonicalFileName, createProgram, CustomTransformers, Diagnostic,
88
DiagnosticCategory, DiagnosticMessageChain, DiagnosticRelatedInformation, DiagnosticWithLocation,
99
EmitAndSemanticDiagnosticsBuilderProgram, EmitOnly, EmitResult, emitSkippedWithNoDiagnostics, emptyArray,
1010
ensurePathIsNonModuleName, ESMap, filterSemanticDiagnostics, forEach, forEachEntry, forEachKey, generateDjb2Hash,
@@ -15,6 +15,7 @@ import {
1515
returnFalse, returnUndefined, SemanticDiagnosticsBuilderProgram, Set, skipTypeChecking, some, SourceFile,
1616
sourceFileMayBeEmitted, SourceMapEmitResult, toPath, tryAddToSet, WriteFileCallback, WriteFileCallbackData,
1717
} from "./_namespaces/ts";
18+
import * as Debug from "./debug";
1819

1920
/** @internal */
2021
export interface ReusableDiagnostic extends ReusableDiagnosticRelatedInformation {

src/compiler/builderState.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import {
2-
arrayFrom, CancellationToken, computeSignatureWithDiagnostics, CustomTransformers, Debug, EmitOutput, emptyArray,
2+
arrayFrom, CancellationToken, computeSignatureWithDiagnostics, CustomTransformers, EmitOutput, emptyArray,
33
ESMap, ExportedModulesFromDeclarationEmit, GetCanonicalFileName, getDirectoryPath, getSourceFileOfNode,
44
isDeclarationFileName, isExternalOrCommonJsModule, isGlobalScopeAugmentation, isJsonSourceFile,
55
isModuleWithStringLiteralName, isStringLiteral, Iterator, Map, mapDefined, mapDefinedIterator, ModuleDeclaration,
66
ModuleKind, outFile, OutputFile, Path, Program, ReadonlySet, Set, some, SourceFile, StringLiteralLike, Symbol,
77
toPath, TypeChecker,
88
} from "./_namespaces/ts";
9+
import * as Debug from "./debug";
910

1011
/** @internal */
1112
export function getFileEmitOutput(program: Program, sourceFile: SourceFile, emitOnlyDtsFiles: boolean,

src/compiler/checker.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
createDiagnosticForNodeFromMessageChain, createDiagnosticMessageChainFromDiagnostic, createEmptyExports,
2020
createFileDiagnostic, createGetCanonicalFileName, createGetSymbolWalker, createPrinter,
2121
createPropertyNameNodeForIdentifierOrLiteral, createScanner, createSymbolTable, createTextWriter,
22-
createUnderscoreEscapedMultiMap, Debug, Declaration, DeclarationName, declarationNameToString, DeclarationStatement,
22+
createUnderscoreEscapedMultiMap, Declaration, DeclarationName, declarationNameToString, DeclarationStatement,
2323
DeclarationWithTypeParameterChildren, DeclarationWithTypeParameters, Decorator, deduplicate, DefaultClause,
2424
defaultMaximumTruncationLength, DeferredTypeReference, DeleteExpression, Diagnostic, DiagnosticCategory,
2525
DiagnosticMessage, DiagnosticMessageChain, DiagnosticRelatedInformation, Diagnostics, DiagnosticWithLocation,
@@ -199,6 +199,7 @@ import {
199199
} from "./_namespaces/ts";
200200
import * as performance from "./_namespaces/ts.performance";
201201
import * as moduleSpecifiers from "./_namespaces/ts.moduleSpecifiers";
202+
import * as Debug from "./debug";
202203

203204
const ambientModuleSymbolRegex = /^".+"$/;
204205
const anon = "(anonymous)" as __String & string;

src/compiler/commandLineParser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
changeExtension, CharacterCodes, combinePaths, CommandLineOption, CommandLineOptionOfCustomType,
44
CommandLineOptionOfListType, CompilerOptions, CompilerOptionsValue, ConfigFileSpecs, containsPath,
55
convertToRelativePath, createCompilerDiagnostic, createDiagnosticForNodeInSourceFile, createGetCanonicalFileName,
6-
Debug, Diagnostic, DiagnosticMessage, Diagnostics, DidYouMeanOptionsDiagnostics, directorySeparator, emptyArray,
6+
Diagnostic, DiagnosticMessage, Diagnostics, DidYouMeanOptionsDiagnostics, directorySeparator, emptyArray,
77
endsWith, ensureTrailingDirectorySeparator, ESMap, every, Expression, extend, Extension, FileExtensionInfo,
88
fileExtensionIs, fileExtensionIsOneOf, filter, filterMutate, find, findIndex, firstDefined, flatten, forEach,
99
forEachEntry, getBaseFileName, getDirectoryPath, getEntries, getFileMatcherPatterns, getLocaleSpecificMessage,
@@ -20,6 +20,7 @@ import {
2020
toFileNameLowerCase, toPath, tracing, trimString, TsConfigOnlyOption, TsConfigSourceFile, TypeAcquisition,
2121
unescapeLeadingUnderscores, WatchDirectoryFlags, WatchDirectoryKind, WatchFileKind, WatchOptions,
2222
} from "./_namespaces/ts";
23+
import * as Debug from "./debug";
2324

2425
/** @internal */
2526
export const compileOnSaveCommandLineOption: CommandLineOption = {

src/compiler/core.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import {
2-
__String, CharacterCodes, Comparer, Comparison, Debug, EqualityComparer, ESMap, isWhiteSpaceLike, Iterator, Map,
2+
__String, CharacterCodes, Comparer, Comparison, EqualityComparer, ESMap, isWhiteSpaceLike, Iterator, Map,
33
MapLike, Push, Queue, ReadonlyESMap, ReadonlySet, Set, SortedArray, SortedReadonlyArray, TextSpan,
44
UnderscoreEscapedMap,
55
} from "./_namespaces/ts";
6+
import * as Debug from "./debug";
67

78
/** @internal */
89
export function getIterator<I extends readonly any[] | ReadonlySet<any> | ReadonlyESMap<any, any> | undefined>(iterable: I): Iterator<

0 commit comments

Comments
 (0)