mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update LKG.
This commit is contained in:
+14
-8
@@ -20065,7 +20065,7 @@ var ts;
|
||||
}
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -20088,20 +20088,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -32671,8 +32671,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default") {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -41728,6 +41733,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152, "default");
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default", newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048, "__type");
|
||||
|
||||
+14
-8
@@ -24707,7 +24707,7 @@ var ts;
|
||||
/** @internal */
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -24730,20 +24730,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -39378,8 +39378,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default" /* Default */) {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -49994,6 +49999,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */);
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default" /* Default */, newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
||||
|
||||
+14
-8
@@ -24703,7 +24703,7 @@ var ts;
|
||||
/** @internal */
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -24726,20 +24726,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -39374,8 +39374,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default" /* Default */) {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -49990,6 +49995,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */);
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default" /* Default */, newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
||||
|
||||
+14
-8
@@ -24694,7 +24694,7 @@ var ts;
|
||||
/** @internal */
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -24717,20 +24717,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -39365,8 +39365,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default" /* Default */) {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -49981,6 +49986,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */);
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default" /* Default */, newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
||||
|
||||
@@ -24694,7 +24694,7 @@ var ts;
|
||||
/** @internal */
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -24717,20 +24717,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -39365,8 +39365,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default" /* Default */) {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -49981,6 +49986,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */);
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default" /* Default */, newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
||||
|
||||
+14
-8
@@ -24707,7 +24707,7 @@ var ts;
|
||||
/** @internal */
|
||||
function convertToTSConfig(configParseResult, configFileName, host) {
|
||||
var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, !configParseResult.configFileSpecs ? function (_) { return false; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), f, getCanonicalFileName); });
|
||||
var files = ts.map(ts.filter(configParseResult.fileNames, (!configParseResult.configFileSpecs || !configParseResult.configFileSpecs.validatedIncludeSpecs) ? function (_) { return true; } : matchesSpecs(configFileName, configParseResult.configFileSpecs.validatedIncludeSpecs, configParseResult.configFileSpecs.validatedExcludeSpecs)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });
|
||||
var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
|
||||
var config = __assign({ compilerOptions: __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
|
||||
var _a;
|
||||
@@ -24730,20 +24730,20 @@ var ts;
|
||||
}
|
||||
function matchesSpecs(path, includeSpecs, excludeSpecs) {
|
||||
if (!includeSpecs)
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, ts.sys.useCaseSensitiveFileNames, ts.sys.getCurrentDirectory());
|
||||
var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, ts.sys.useCaseSensitiveFileNames);
|
||||
if (includeRe) {
|
||||
if (excludeRe) {
|
||||
return function (path) { return includeRe.test(path) && !excludeRe.test(path); };
|
||||
return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };
|
||||
}
|
||||
return function (path) { return includeRe.test(path); };
|
||||
return function (path) { return !includeRe.test(path); };
|
||||
}
|
||||
if (excludeRe) {
|
||||
return function (path) { return !excludeRe.test(path); };
|
||||
return function (path) { return excludeRe.test(path); };
|
||||
}
|
||||
return function (_) { return false; };
|
||||
return function (_) { return true; };
|
||||
}
|
||||
function getCustomTypeMapOfCommandLineOption(optionDefinition) {
|
||||
if (optionDefinition.type === "string" || optionDefinition.type === "number" || optionDefinition.type === "boolean") {
|
||||
@@ -39378,8 +39378,13 @@ var ts;
|
||||
if (!(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {
|
||||
var type = getLateBoundSymbol(prop).nameType;
|
||||
if (!type && !ts.isKnownSymbol(prop)) {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
if (prop.escapedName === "default" /* Default */) {
|
||||
type = getLiteralType("default");
|
||||
}
|
||||
else {
|
||||
var name = prop.valueDeclaration && ts.getNameOfDeclaration(prop.valueDeclaration);
|
||||
type = name && getLiteralTypeFromPropertyName(name) || getLiteralType(ts.symbolName(prop));
|
||||
}
|
||||
}
|
||||
if (type && type.flags & include) {
|
||||
return type;
|
||||
@@ -49994,6 +49999,7 @@ var ts;
|
||||
if (hasSyntheticDefault) {
|
||||
var memberTable = ts.createSymbolTable();
|
||||
var newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */);
|
||||
newSymbol.nameType = getLiteralType("default");
|
||||
newSymbol.target = resolveSymbol(symbol);
|
||||
memberTable.set("default" /* Default */, newSymbol);
|
||||
var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
||||
|
||||
Reference in New Issue
Block a user