Skip to content

Commit 5c5a528

Browse files
committed
Refactoring and cleanup
1 parent d79c94c commit 5c5a528

File tree

6 files changed

+45
-149
lines changed

6 files changed

+45
-149
lines changed

src/compiler/builder.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,10 +1185,6 @@ namespace ts {
11851185
getCompilerOptions: () => state.compilerOptions,
11861186
getSourceFile: notImplemented,
11871187
getSourceFiles: notImplemented,
1188-
getSourceFileByPath: notImplemented,
1189-
getFileIncludeReasons: notImplemented,
1190-
getRootFileNames: notImplemented,
1191-
getResolvedProjectReferences: notImplemented,
11921188
getOptionsDiagnostics: notImplemented,
11931189
getGlobalDiagnostics: notImplemented,
11941190
getConfigFileParsingDiagnostics: notImplemented,
@@ -1197,9 +1193,7 @@ namespace ts {
11971193
getSemanticDiagnostics: notImplemented,
11981194
emit: notImplemented,
11991195
getAllDependencies: notImplemented,
1200-
useCaseSensitiveFileNames: notImplemented,
12011196
getCurrentDirectory: notImplemented,
1202-
getCanonicalFileName: notImplemented,
12031197
emitNextAffectedFile: notImplemented,
12041198
getSemanticDiagnosticsOfNextAffectedFile: notImplemented,
12051199
emitBuildInfo: notImplemented,
@@ -1225,11 +1219,7 @@ namespace ts {
12251219
releaseProgram: () => state.program = undefined,
12261220
getCompilerOptions: () => state.compilerOptions,
12271221
getSourceFile: fileName => getProgram().getSourceFile(fileName),
1228-
getSourceFileByPath: path => getProgram().getSourceFileByPath(path),
12291222
getSourceFiles: () => getProgram().getSourceFiles(),
1230-
getFileIncludeReasons: () => getProgram().getFileIncludeReasons(),
1231-
getRootFileNames: () => getProgram().getRootFileNames(),
1232-
getResolvedProjectReferences: () => getProgram().getResolvedProjectReferences(),
12331223
getOptionsDiagnostics: cancellationToken => getProgram().getOptionsDiagnostics(cancellationToken),
12341224
getGlobalDiagnostics: cancellationToken => getProgram().getGlobalDiagnostics(cancellationToken),
12351225
getConfigFileParsingDiagnostics: () => configFileParsingDiagnostics,
@@ -1239,9 +1229,7 @@ namespace ts {
12391229
emit: (sourceFile, writeFile, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile, cancellationToken, emitOnlyDts, customTransformers),
12401230
emitBuildInfo: (writeFile, cancellationToken) => getProgram().emitBuildInfo(writeFile, cancellationToken),
12411231
getAllDependencies: notImplemented,
1242-
useCaseSensitiveFileNames: () => getProgram().useCaseSensitiveFileNames(),
12431232
getCurrentDirectory: () => getProgram().getCurrentDirectory(),
1244-
getCanonicalFileName: fileName => getProgram().getCanonicalFileName(fileName),
12451233
close: noop,
12461234
};
12471235

src/compiler/builderPublic.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ namespace ts {
5353
* Get a list of files in the program
5454
*/
5555
getSourceFiles(): readonly SourceFile[];
56-
/*@internal*/
57-
getSourceFileByPath(path: Path): SourceFile | undefined;
58-
/*@internal*/
59-
getFileIncludeReasons: Program["getFileIncludeReasons"];
60-
/*@internal*/
61-
getRootFileNames: Program["getRootFileNames"];
62-
/*@internal*/
63-
getResolvedProjectReferences: Program["getResolvedProjectReferences"];
6456
/**
6557
* Get the diagnostics for compiler options
6658
*/
@@ -113,10 +105,6 @@ namespace ts {
113105
* Get the current directory of the program
114106
*/
115107
getCurrentDirectory(): string;
116-
/* @internal */
117-
useCaseSensitiveFileNames(): boolean;
118-
/*@internal*/
119-
getCanonicalFileName(fileName: string): string;
120108
/*@internal*/
121109
close(): void;
122110
}

0 commit comments

Comments
 (0)