Accept baselines (#18903)

This commit is contained in:
Mohamed Hegazy
2017-10-02 19:08:13 -07:00
committed by GitHub
parent 6997e9b731
commit ae3f29ade6
6 changed files with 309 additions and 299 deletions

View File

@@ -2006,6 +2006,7 @@ namespace ts {
* @param host The host used to resolve files and directories.
* @param extraFileExtensions optionaly file extra file extension information from host
*/
/* @internal */
export function getFileNamesFromConfigSpecs(spec: ConfigFileSpecs, basePath: string, options: CompilerOptions, host: ParseConfigHost, extraFileExtensions: ReadonlyArray<JsFileExtensionInfo> = []): ExpandResult {
basePath = normalizePath(basePath);

View File

@@ -403,6 +403,7 @@ namespace ts {
/**
* Determines if program structure is upto date or needs to be recreated
*/
/* @internal */
export function isProgramUptoDate(
program: Program | undefined,
rootFileNames: string[],

View File

@@ -2526,7 +2526,7 @@ namespace ts {
/** Set of all source files that some other source file redirects to. */
/* @internal */ redirectTargetsSet: Map<true>;
/** Returns true when file in the program had invalidated resolution at the time of program creation. */
hasInvalidatedResolution: HasInvalidatedResolution;
/* @internal */ hasInvalidatedResolution: HasInvalidatedResolution;
}
/* @internal */
@@ -3832,7 +3832,7 @@ namespace ts {
errors: Diagnostic[];
wildcardDirectories?: MapLike<WatchDirectoryFlags>;
compileOnSave?: boolean;
configFileSpecs?: ConfigFileSpecs;
/* @internal */ configFileSpecs?: ConfigFileSpecs;
}
export const enum WatchDirectoryFlags {
@@ -3840,6 +3840,7 @@ namespace ts {
Recursive = 1 << 0,
}
/* @internal */
export interface ConfigFileSpecs {
filesSpecs: ReadonlyArray<string>;
/**
@@ -3858,7 +3859,7 @@ namespace ts {
export interface ExpandResult {
fileNames: string[];
wildcardDirectories: MapLike<WatchDirectoryFlags>;
spec: ConfigFileSpecs;
/* @internal */ spec: ConfigFileSpecs;
}
/* @internal */
@@ -4130,6 +4131,7 @@ namespace ts {
readonly failedLookupLocations: ReadonlyArray<string>;
}
/* @internal */
export interface HasInvalidatedResolution {
(sourceFile: Path): boolean;
}
@@ -4160,9 +4162,9 @@ namespace ts {
*/
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
getEnvironmentVariable?(name: string): string;
onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions): void;
hasInvalidatedResolution?: HasInvalidatedResolution;
hasChangedAutomaticTypeDirectiveNames?: boolean;
/* @internal */ onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions): void;
/* @internal */ hasInvalidatedResolution?: HasInvalidatedResolution;
/* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean;
}
/* @internal */