Skip to content

Commit 7f56cc5

Browse files
committed
Fix typo
1 parent 3eb6754 commit 7f56cc5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/compiler/program.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import {
8888
fileIncludeReasonToDiagnostics,
8989
FilePreprocessingDiagnostics,
9090
FilePreprocessingDiagnosticsKind,
91-
FilePreprocessingLibreferenceDiagnostic,
91+
FilePreprocessingLibReferenceDiagnostic,
9292
FileReference,
9393
filter,
9494
find,
@@ -2067,7 +2067,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
20672067
diagnostic.args || emptyArray,
20682068
),
20692069
);
2070-
case FilePreprocessingDiagnosticsKind.FilePreprocessingLibreferenceDiagnostic:
2070+
case FilePreprocessingDiagnosticsKind.FilePreprocessingLibReferenceDiagnostic:
20712071
return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic));
20722072
case FilePreprocessingDiagnosticsKind.ResolutionDiagnostics:
20732073
return diagnostic.diagnostics.forEach(d => programDiagnostics.add(d));
@@ -2087,7 +2087,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
20872087
return programDiagnostics;
20882088
}
20892089

2090-
function filePreprocessingLibreferenceDiagnostic({ reason }: FilePreprocessingLibreferenceDiagnostic) {
2090+
function filePreprocessingLibreferenceDiagnostic({ reason }: FilePreprocessingLibReferenceDiagnostic) {
20912091
const { file, pos, end } = getReferencedFileLocation(program, reason) as ReferenceFileLocation;
20922092
const libReference = file.libReferenceDirectives[reason.index];
20932093
const libName = getLibNameFromLibReference(libReference);
@@ -4164,7 +4164,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
41644164
}
41654165
else {
41664166
(fileProcessingDiagnostics ||= []).push({
4167-
kind: FilePreprocessingDiagnosticsKind.FilePreprocessingLibreferenceDiagnostic,
4167+
kind: FilePreprocessingDiagnosticsKind.FilePreprocessingLibReferenceDiagnostic,
41684168
reason: { kind: FileIncludeKind.LibReferenceDirective, file: file.path, index },
41694169
});
41704170
}

src/compiler/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4608,14 +4608,14 @@ export type FileIncludeReason =
46084608

46094609
/** @internal */
46104610
export const enum FilePreprocessingDiagnosticsKind {
4611-
FilePreprocessingLibreferenceDiagnostic,
4611+
FilePreprocessingLibReferenceDiagnostic,
46124612
FilePreprocessingFileExplainingDiagnostic,
46134613
ResolutionDiagnostics,
46144614
}
46154615

46164616
/** @internal */
4617-
export interface FilePreprocessingLibreferenceDiagnostic {
4618-
kind: FilePreprocessingDiagnosticsKind.FilePreprocessingLibreferenceDiagnostic;
4617+
export interface FilePreprocessingLibReferenceDiagnostic {
4618+
kind: FilePreprocessingDiagnosticsKind.FilePreprocessingLibReferenceDiagnostic;
46194619
reason: ReferencedFile & { kind: FileIncludeKind.LibReferenceDirective; };
46204620
}
46214621

@@ -4635,7 +4635,7 @@ export interface ResolutionDiagnostics {
46354635
}
46364636

46374637
/** @internal */
4638-
export type FilePreprocessingDiagnostics = FilePreprocessingLibreferenceDiagnostic | FilePreprocessingFileExplainingDiagnostic | ResolutionDiagnostics;
4638+
export type FilePreprocessingDiagnostics = FilePreprocessingLibReferenceDiagnostic | FilePreprocessingFileExplainingDiagnostic | ResolutionDiagnostics;
46394639

46404640
/** @internal */
46414641
export const enum EmitOnly {

0 commit comments

Comments
 (0)