Skip to content

Commit 2e90314

Browse files
committed
Fix all except special entrypoints and tests
1 parent f02114a commit 2e90314

File tree

138 files changed

+141
-140
lines changed

Some content is hidden

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

138 files changed

+141
-140
lines changed

src/compiler/binder.ts

+1-1
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,
@@ -321,6 +320,7 @@ import {
321320
WithStatement,
322321
} from "./_namespaces/ts.js";
323322
import * as performance from "./_namespaces/ts.performance.js";
323+
import * as Debug from "./debug.js";
324324

325325
/** @internal */
326326
export const enum ModuleInstanceState {

src/compiler/builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
createModuleNotFoundChain,
2626
createProgram,
2727
CustomTransformers,
28-
Debug,
2928
Diagnostic,
3029
DiagnosticCategory,
3130
DiagnosticMessageChain,
@@ -89,6 +88,7 @@ import {
8988
WriteFileCallback,
9089
WriteFileCallbackData,
9190
} from "./_namespaces/ts.js";
91+
import * as Debug from "./debug.js";
9292

9393
/** @internal */
9494
export interface ReusableDiagnostic extends ReusableDiagnosticRelatedInformation {

src/compiler/builderState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
CompilerOptions,
55
computeSignatureWithDiagnostics,
66
CustomTransformers,
7-
Debug,
87
EmitOnly,
98
EmitOutput,
109
emptyArray,
@@ -34,6 +33,7 @@ import {
3433
toPath,
3534
TypeChecker,
3635
} from "./_namespaces/ts.js";
36+
import * as Debug from "./debug.js";
3737

3838
/** @internal */
3939
export function getFileEmitOutput(

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ import {
129129
createSymbolTable,
130130
createSyntacticTypeNodeBuilder,
131131
createTextWriter,
132-
Debug,
133132
Declaration,
134133
DeclarationName,
135134
declarationNameToString,
@@ -1123,6 +1122,7 @@ import {
11231122
} from "./_namespaces/ts.js";
11241123
import * as moduleSpecifiers from "./_namespaces/ts.moduleSpecifiers.js";
11251124
import * as performance from "./_namespaces/ts.performance.js";
1125+
import * as Debug from "./debug.js";
11261126

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

src/compiler/commandLineParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
createCompilerDiagnostic,
2323
createDiagnosticForNodeInSourceFile,
2424
createGetCanonicalFileName,
25-
Debug,
2625
Diagnostic,
2726
DiagnosticArguments,
2827
DiagnosticMessage,
@@ -122,6 +121,7 @@ import {
122121
WatchFileKind,
123122
WatchOptions,
124123
} from "./_namespaces/ts.js";
124+
import * as Debug from "./debug.js";
125125

126126
const compileOnSaveCommandLineOption: CommandLineOption = {
127127
name: "compileOnSave",

src/compiler/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import {
22
CharacterCodes,
33
Comparer,
44
Comparison,
5-
Debug,
65
EqualityComparer,
76
MapLike,
87
Queue,
98
SortedArray,
109
SortedReadonlyArray,
1110
TextSpan,
1211
} from "./_namespaces/ts.js";
12+
import * as Debug from "./debug.js";
1313

1414
/* eslint-disable @typescript-eslint/prefer-for-of */
1515

src/compiler/emitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ import {
5454
createGetCanonicalFileName,
5555
createSourceMapGenerator,
5656
createTextWriter,
57-
Debug,
5857
DebuggerStatement,
5958
DeclarationName,
6059
Decorator,
@@ -424,6 +423,7 @@ import {
424423
YieldExpression,
425424
} from "./_namespaces/ts.js";
426425
import * as performance from "./_namespaces/ts.performance.js";
426+
import * as Debug from "./debug.js";
427427

428428
const brackets = createBracketsMap();
429429

src/compiler/executeCommandLine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
createWatchCompilerHostOfFilesAndCompilerOptions,
3030
createWatchProgram,
3131
createWatchStatusReporter as ts_createWatchStatusReporter,
32-
Debug,
3332
Diagnostic,
3433
DiagnosticMessage,
3534
DiagnosticReporter,
@@ -87,6 +86,7 @@ import {
8786
WatchOfConfigFile,
8887
WatchOptions,
8988
} from "./_namespaces/ts.js";
89+
import * as Debug from "./debug.js";
9090
import * as performance from "./performance.js";
9191

9292
interface Statistic {

src/compiler/expressionToTypeNode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
BindingElement,
99
ClassExpression,
1010
CompilerOptions,
11-
Debug,
1211
ElementAccessExpression,
1312
ExportAssignment,
1413
Expression,
@@ -64,6 +63,7 @@ import {
6463
UnionTypeNode,
6564
VariableDeclaration,
6665
} from "./_namespaces/ts.js";
66+
import * as Debug from "./debug.js";
6767

6868
/** @internal */
6969
export function createSyntacticTypeNodeBuilder(options: CompilerOptions, resolver: SyntacticTypeNodeBuilderResolver) {

src/compiler/factory/emitHelpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
compareValues,
77
Comparison,
88
createExpressionFromEntityName,
9-
Debug,
109
EmitFlags,
1110
EmitHelper,
1211
EmitHelperUniqueNameCallback,
@@ -36,6 +35,7 @@ import {
3635
TransformationContext,
3736
UnscopedEmitHelper,
3837
} from "../_namespaces/ts.js";
38+
import * as Debug from "../debug.js";
3939

4040
/** @internal */
4141
export const enum PrivateIdentifierKind {

src/compiler/factory/emitNode.ts

+1-1
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,
@@ -27,6 +26,7 @@ import {
2726
TypeNode,
2827
TypeParameterDeclaration,
2928
} from "../_namespaces/ts.js";
29+
import * as Debug from "../debug.js";
3030

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

src/compiler/factory/nodeChildren.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2-
Debug,
32
emptyArray,
43
isNodeKind,
54
Node,
65
SourceFileLike,
76
SyntaxKind,
87
SyntaxList,
98
} from "../_namespaces/ts.js";
9+
import * as Debug from "../debug.js";
1010

1111
const sourceFileToNodeChildren = new WeakMap<SourceFileLike, WeakMap<Node, readonly Node[] | undefined>>();
1212

src/compiler/factory/nodeConverters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
cast,
99
ClassDeclaration,
1010
ConciseBody,
11-
Debug,
1211
Expression,
1312
FunctionDeclaration,
1413
getModifiers,
@@ -36,6 +35,7 @@ import {
3635
setTextRange,
3736
SyntaxKind,
3837
} from "../_namespaces/ts.js";
38+
import * as Debug from "../debug.js";
3939

4040
/** @internal */
4141
export function createNodeConverters(factory: NodeFactory): NodeConverters {

src/compiler/factory/nodeFactory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import {
5959
createNodeConverters,
6060
createParenthesizerRules,
6161
createScanner,
62-
Debug,
6362
DebuggerStatement,
6463
Declaration,
6564
DeclarationName,
@@ -457,6 +456,7 @@ import {
457456
WithStatement,
458457
YieldExpression,
459458
} from "../_namespaces/ts.js";
459+
import * as Debug from "../debug.js";
460460

461461
let nextAutoGenerateId = 0;
462462

src/compiler/factory/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
compareStringsCaseSensitive,
2222
CompilerOptions,
2323
ComputedPropertyName,
24-
Debug,
2524
Declaration,
2625
DefaultKeyword,
2726
EmitFlags,
@@ -174,6 +173,7 @@ import {
174173
TypeNode,
175174
WrappedExpression,
176175
} from "../_namespaces/ts.js";
176+
import * as Debug from "../debug.js";
177177

178178
// Compound nodes
179179

src/compiler/moduleNameResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
contains,
1616
containsPath,
1717
createCompilerDiagnostic,
18-
Debug,
1918
deduplicate,
2019
Diagnostic,
2120
DiagnosticMessage,
@@ -108,6 +107,7 @@ import {
108107
versionMajorMinor,
109108
VersionRange,
110109
} from "./_namespaces/ts.js";
110+
import * as Debug from "./debug.js";
111111

112112
/** @internal */
113113
export function trace(host: ModuleResolutionHost, message: DiagnosticMessage, ...args: any[]): void {

src/compiler/moduleSpecifiers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
containsIgnoredPath,
1717
containsPath,
1818
createGetCanonicalFileName,
19-
Debug,
2019
directorySeparator,
2120
emptyArray,
2221
endsWith,
@@ -129,6 +128,7 @@ import {
129128
TypeChecker,
130129
UserPreferences,
131130
} from "./_namespaces/ts.js";
131+
import * as Debug from "./debug.js";
132132

133133
const stringToRegex = memoizeOne((pattern: string) => {
134134
try {

src/compiler/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import {
5656
createScanner,
5757
createTextChangeRange,
5858
createTextSpanFromBounds,
59-
Debug,
6059
Decorator,
6160
DefaultClause,
6261
DeleteExpression,
@@ -399,6 +398,7 @@ import {
399398
YieldExpression,
400399
} from "./_namespaces/ts.js";
401400
import * as performance from "./_namespaces/ts.performance.js";
401+
import * as Debug from "./debug.js";
402402

403403
const enum SignatureFlags {
404404
None = 0,

src/compiler/path.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
compareStringsCaseSensitive,
55
compareValues,
66
Comparison,
7-
Debug,
87
endsWith,
98
equateStringsCaseInsensitive,
109
equateStringsCaseSensitive,
@@ -17,6 +16,7 @@ import {
1716
some,
1817
startsWith,
1918
} from "./_namespaces/ts.js";
19+
import * as Debug from "./debug.js";
2020

2121
/**
2222
* Internally, we represent paths as strings with '/' as the directory separator.

src/compiler/performance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
Debug,
32
noop,
43
Performance,
54
PerformanceHooks,
@@ -8,6 +7,7 @@ import {
87
timestamp,
98
tryGetNativePerformanceHooks,
109
} from "./_namespaces/ts.js";
10+
import * as Debug from "./debug.js";
1111

1212
/** Performance measurements for the compiler. */
1313

src/compiler/program.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import {
5252
createTypeChecker,
5353
createTypeReferenceDirectiveResolutionCache,
5454
CustomTransformers,
55-
Debug,
5655
DeclarationWithTypeParameterChildren,
5756
Diagnostic,
5857
DiagnosticArguments,
@@ -333,6 +332,7 @@ import {
333332
writeFileEnsuringDirectories,
334333
} from "./_namespaces/ts.js";
335334
import * as performance from "./_namespaces/ts.performance.js";
335+
import * as Debug from "./debug.js";
336336

337337
export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName = "tsconfig.json"): string | undefined {
338338
return forEachAncestorDirectory(searchPath, ancestor => {

src/compiler/resolutionCache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
createModuleResolutionCache,
99
createTypeReferenceDirectiveResolutionCache,
1010
createTypeReferenceResolutionLoader,
11-
Debug,
1211
Diagnostics,
1312
directorySeparator,
1413
DirectoryWatcherCallback,
@@ -76,6 +75,7 @@ import {
7675
updateResolutionField,
7776
WatchDirectoryFlags,
7877
} from "./_namespaces/ts.js";
78+
import * as Debug from "./debug.js";
7979

8080
/** @internal */
8181
export interface HasInvalidatedFromResolutionCache {

src/compiler/scanner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
CommentKind,
99
CommentRange,
1010
compareValues,
11-
Debug,
1211
DiagnosticMessage,
1312
Diagnostics,
1413
forEach,
@@ -34,6 +33,7 @@ import {
3433
TextRange,
3534
TokenFlags,
3635
} from "./_namespaces/ts.js";
36+
import * as Debug from "./debug.js";
3737

3838
export type ErrorCallback = (message: DiagnosticMessage, length: number, arg0?: any) => void;
3939

src/compiler/semver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import {
22
compareStringsCaseSensitive,
33
compareValues,
44
Comparison,
5-
Debug,
65
emptyArray,
76
every,
87
isArray,
98
map,
109
some,
1110
} from "./_namespaces/ts.js";
11+
import * as Debug from "./debug.js";
1212

1313
// https://semver.org/#spec-item-2
1414
// > A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative

src/compiler/sourcemap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
CharacterCodes,
55
combinePaths,
66
compareValues,
7-
Debug,
87
DocumentPosition,
98
DocumentPositionMapper,
109
DocumentPositionMapperHost,
@@ -26,6 +25,7 @@ import {
2625
SourceMapGenerator,
2726
} from "./_namespaces/ts.js";
2827
import * as performance from "./_namespaces/ts.performance.js";
28+
import * as Debug from "./debug.js";
2929

3030
/** @internal */
3131
export interface SourceMapGeneratorOptions {

0 commit comments

Comments
 (0)