Skip to content

Commit 59d1a30

Browse files
committed
Direct import Debug in critical areas
1 parent edd16a7 commit 59d1a30

File tree

130 files changed

+142
-144
lines changed

Some content is hidden

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

130 files changed

+142
-144
lines changed

src/compiler/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import {
3939
createFileDiagnostic,
4040
createQueue,
4141
createSymbolTable,
42-
Debug,
4342
Declaration,
4443
declarationNameToString,
4544
DeleteExpression,
@@ -312,6 +311,7 @@ import {
312311
WithStatement,
313312
} from "./_namespaces/ts";
314313
import * as performance from "./_namespaces/ts.performance";
314+
import * as Debug from "./debug";
315315

316316
/** @internal */
317317
export const enum ModuleInstanceState {

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
createGetCanonicalFileName,
2626
createProgram,
2727
CustomTransformers,
28-
Debug,
2928
Diagnostic,
3029
DiagnosticCategory,
3130
DiagnosticMessageChain,
@@ -80,6 +79,7 @@ import {
8079
WriteFileCallback,
8180
WriteFileCallbackData,
8281
} from "./_namespaces/ts";
82+
import * as Debug from "./debug";
8383

8484
/** @internal */
8585
export interface ReusableDiagnostic extends ReusableDiagnosticRelatedInformation {

src/compiler/builderState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
CancellationToken,
44
computeSignatureWithDiagnostics,
55
CustomTransformers,
6-
Debug,
76
EmitOutput,
87
emptyArray,
98
ExportedModulesFromDeclarationEmit,
@@ -33,6 +32,7 @@ import {
3332
toPath,
3433
TypeChecker,
3534
} from "./_namespaces/ts";
35+
import * as Debug from "./debug";
3636

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

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ import {
112112
createSymbolTable,
113113
createTextWriter,
114114
createUnderscoreEscapedMultiMap,
115-
Debug,
116115
Declaration,
117116
DeclarationName,
118117
declarationNameToString,
@@ -1040,6 +1039,7 @@ import {
10401039
} from "./_namespaces/ts";
10411040
import * as performance from "./_namespaces/ts.performance";
10421041
import * as moduleSpecifiers from "./_namespaces/ts.moduleSpecifiers";
1042+
import * as Debug from "./debug";
10431043

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

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
createCompilerDiagnostic,
2121
createDiagnosticForNodeInSourceFile,
2222
createGetCanonicalFileName,
23-
Debug,
2423
Diagnostic,
2524
DiagnosticMessage,
2625
Diagnostics,
@@ -120,6 +119,7 @@ import {
120119
WatchFileKind,
121120
WatchOptions,
122121
} from "./_namespaces/ts";
122+
import * as Debug from "./debug";
123123

124124
/** @internal */
125125
export const compileOnSaveCommandLineOption: CommandLineOption = {

src/compiler/core.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
CharacterCodes,
44
Comparer,
55
Comparison,
6-
Debug,
76
EqualityComparer,
87
isWhiteSpaceLike,
98
MapLike,
@@ -14,7 +13,7 @@ import {
1413
TextSpan,
1514
UnderscoreEscapedMap,
1615
} from "./_namespaces/ts";
17-
16+
import * as Debug from "./debug";
1817

1918
/** @internal */
2019
export const emptyArray: never[] = [] as never[];

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ import {
6868
createSourceMapGenerator,
6969
createTextWriter,
7070
CustomTransformers,
71-
Debug,
7271
DebuggerStatement,
7372
DeclarationName,
7473
Decorator,
@@ -449,6 +448,7 @@ import {
449448
YieldExpression,
450449
} from "./_namespaces/ts";
451450
import * as performance from "./_namespaces/ts.performance";
451+
import * as Debug from "./debug";
452452

453453
const brackets = createBracketsMap();
454454

src/compiler/factory/emitHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
compareValues,
88
Comparison,
99
createExpressionFromEntityName,
10-
Debug,
1110
EmitFlags,
1211
EmitHelper,
1312
EmitHelperUniqueNameCallback,
@@ -33,6 +32,7 @@ import {
3332
TransformationContext,
3433
UnscopedEmitHelper,
3534
} from "../_namespaces/ts";
35+
import * as Debug from "../debug";
3636

3737
/** @internal */
3838
export interface EmitHelperFactory {

src/compiler/factory/emitNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
append,
44
appendIfUnique,
55
AutoGenerateInfo,
6-
Debug,
76
EmitFlags,
87
EmitHelper,
98
EmitNode,
@@ -26,6 +25,7 @@ import {
2625
TypeNode,
2726
TypeParameterDeclaration,
2827
} from "../_namespaces/ts";
28+
import * as Debug from "../debug";
2929

3030
/**
3131
* Associates a node with the current transformation, initializing

src/compiler/factory/nodeConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
Block,
88
cast,
99
ConciseBody,
10-
Debug,
1110
Expression,
1211
FunctionDeclaration,
1312
getStartsOnNewLine,
@@ -32,6 +31,7 @@ import {
3231
setTextRange,
3332
SyntaxKind,
3433
} from "../_namespaces/ts";
34+
import * as Debug from "../debug";
3535

3636
/** @internal */
3737
export function createNodeConverters(factory: NodeFactory): NodeConverters {

0 commit comments

Comments
 (0)