Skip to content

Commit 9e87f23

Browse files
authored
Merge pull request #21412 from Microsoft/renameParseConfigFile
[release-2.7] Rename internal function parseConfigFile to getParsedCommandLineOfConfigFile
2 parents 47e29fa + 6a3bea7 commit 9e87f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/watch.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace ts {
6868
const host: ParseConfigFileHost = <any>system;
6969
host.onConfigFileDiagnostic = reportDiagnostic;
7070
host.onUnRecoverableConfigFileDiagnostic = diagnostic => reportUnrecoverableDiagnostic(sys, reportDiagnostic, diagnostic);
71-
const result = parseConfigFile(configFileName, optionsToExtend, host);
71+
const result = getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host);
7272
host.onConfigFileDiagnostic = undefined;
7373
host.onUnRecoverableConfigFileDiagnostic = undefined;
7474
return result;
@@ -77,7 +77,7 @@ namespace ts {
7777
/**
7878
* Reads the config file, reports errors if any and exits if the config file cannot be found
7979
*/
80-
export function parseConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined {
80+
export function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined {
8181
let configFileText: string;
8282
try {
8383
configFileText = host.readFile(configFileName);
@@ -791,7 +791,7 @@ namespace ts {
791791
}
792792

793793
function parseConfigFile() {
794-
const configParseResult = ts.parseConfigFile(configFileName, optionsToExtendForConfigFile, parseConfigFileHost);
794+
const configParseResult = ts.getParsedCommandLineOfConfigFile(configFileName, optionsToExtendForConfigFile, parseConfigFileHost);
795795
rootFileNames = configParseResult.fileNames;
796796
compilerOptions = configParseResult.options;
797797
configFileSpecs = configParseResult.configFileSpecs;

0 commit comments

Comments
 (0)