Skip to content

Commit ae3f29a

Browse files
authored
Accept baselines (#18903)
1 parent 6997e9b commit ae3f29a

File tree

6 files changed

+309
-299
lines changed

6 files changed

+309
-299
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,7 @@ namespace ts {
20062006
* @param host The host used to resolve files and directories.
20072007
* @param extraFileExtensions optionaly file extra file extension information from host
20082008
*/
2009+
/* @internal */
20092010
export function getFileNamesFromConfigSpecs(spec: ConfigFileSpecs, basePath: string, options: CompilerOptions, host: ParseConfigHost, extraFileExtensions: ReadonlyArray<JsFileExtensionInfo> = []): ExpandResult {
20102011
basePath = normalizePath(basePath);
20112012

src/compiler/program.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ namespace ts {
403403
/**
404404
* Determines if program structure is upto date or needs to be recreated
405405
*/
406+
/* @internal */
406407
export function isProgramUptoDate(
407408
program: Program | undefined,
408409
rootFileNames: string[],

src/compiler/types.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ namespace ts {
25262526
/** Set of all source files that some other source file redirects to. */
25272527
/* @internal */ redirectTargetsSet: Map<true>;
25282528
/** Returns true when file in the program had invalidated resolution at the time of program creation. */
2529-
hasInvalidatedResolution: HasInvalidatedResolution;
2529+
/* @internal */ hasInvalidatedResolution: HasInvalidatedResolution;
25302530
}
25312531

25322532
/* @internal */
@@ -3832,14 +3832,15 @@ namespace ts {
38323832
errors: Diagnostic[];
38333833
wildcardDirectories?: MapLike<WatchDirectoryFlags>;
38343834
compileOnSave?: boolean;
3835-
configFileSpecs?: ConfigFileSpecs;
3835+
/* @internal */ configFileSpecs?: ConfigFileSpecs;
38363836
}
38373837

38383838
export const enum WatchDirectoryFlags {
38393839
None = 0,
38403840
Recursive = 1 << 0,
38413841
}
38423842

3843+
/* @internal */
38433844
export interface ConfigFileSpecs {
38443845
filesSpecs: ReadonlyArray<string>;
38453846
/**
@@ -3858,7 +3859,7 @@ namespace ts {
38583859
export interface ExpandResult {
38593860
fileNames: string[];
38603861
wildcardDirectories: MapLike<WatchDirectoryFlags>;
3861-
spec: ConfigFileSpecs;
3862+
/* @internal */ spec: ConfigFileSpecs;
38623863
}
38633864

38643865
/* @internal */
@@ -4130,6 +4131,7 @@ namespace ts {
41304131
readonly failedLookupLocations: ReadonlyArray<string>;
41314132
}
41324133

4134+
/* @internal */
41334135
export interface HasInvalidatedResolution {
41344136
(sourceFile: Path): boolean;
41354137
}
@@ -4160,9 +4162,9 @@ namespace ts {
41604162
*/
41614163
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
41624164
getEnvironmentVariable?(name: string): string;
4163-
onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions): void;
4164-
hasInvalidatedResolution?: HasInvalidatedResolution;
4165-
hasChangedAutomaticTypeDirectiveNames?: boolean;
4165+
/* @internal */ onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions): void;
4166+
/* @internal */ hasInvalidatedResolution?: HasInvalidatedResolution;
4167+
/* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean;
41664168
}
41674169

41684170
/* @internal */

src/services/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ namespace ts {
185185
*/
186186
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[]): ResolvedModule[];
187187
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
188-
hasInvalidatedResolution?: HasInvalidatedResolution;
189-
hasChangedAutomaticTypeDirectiveNames?: boolean;
188+
/* @internal */ hasInvalidatedResolution?: HasInvalidatedResolution;
189+
/* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean;
190190
directoryExists?(directoryName: string): boolean;
191191

192192
/*

0 commit comments

Comments
 (0)