Skip to content

Commit c0fd8ee

Browse files
committed
Fix just compiler
1 parent 3ed597f commit c0fd8ee

Some content is hidden

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

55 files changed

+56
-57
lines changed

eslint.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ export default tseslint.config(
162162
"local/no-keywords": "error",
163163
"local/jsdoc-format": "error",
164164
"local/js-extensions": "error",
165-
"local/prefer-direct-import": "error",
166165
},
167166
},
168167
{
@@ -211,9 +210,9 @@ export default tseslint.config(
211210
},
212211
},
213212
{
214-
files: ["src/harness/**", "src/testRunner/**", "src/tsserver/**", "src/typingsInstaller/**"],
213+
files: ["src/compiler/**"],
215214
rules: {
216-
"local/prefer-direct-import": "off",
215+
"local/prefer-direct-import": "error",
217216
},
218217
},
219218
{

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,
@@ -322,6 +321,7 @@ import {
322321
WithStatement,
323322
} from "./_namespaces/ts.js";
324323
import * as performance from "./_namespaces/ts.performance.js";
324+
import * as Debug from "./debug.js";
325325

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

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
createModuleNotFoundChain,
2525
createProgram,
2626
CustomTransformers,
27-
Debug,
2827
Diagnostic,
2928
DiagnosticCategory,
3029
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

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

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

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ import {
128128
createSymbolTable,
129129
createSyntacticTypeNodeBuilder,
130130
createTextWriter,
131-
Debug,
132131
Declaration,
133132
DeclarationName,
134133
declarationNameToString,
@@ -1116,6 +1115,7 @@ import {
11161115
} from "./_namespaces/ts.js";
11171116
import * as moduleSpecifiers from "./_namespaces/ts.moduleSpecifiers.js";
11181117
import * as performance from "./_namespaces/ts.performance.js";
1118+
import * as Debug from "./debug.js";
11191119

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

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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,
@@ -423,6 +422,7 @@ import {
423422
YieldExpression,
424423
} from "./_namespaces/ts.js";
425424
import * as performance from "./_namespaces/ts.performance.js";
425+
import * as Debug from "./debug.js";
426426

427427
const brackets = createBracketsMap();
428428

src/compiler/executeCommandLine.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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) {

0 commit comments

Comments
 (0)