Skip to content

Commit

Permalink
Publish 4.4.2-lsif.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Oct 7, 2021
1 parent ffc5793 commit b772711
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 214 deletions.
29 changes: 0 additions & 29 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37476,9 +37476,6 @@ var ts;
var requireSymbol = createSymbol(4, "require");
var apparentArgumentCount;
var checker = {
setSymbolChainCache: function (cache) {
nodeBuilder.setSymbolChainCache(cache);
},
getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); },
getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); },
getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount") + symbolCount; },
Expand Down Expand Up @@ -40790,9 +40787,7 @@ var ts;
return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288) && !!(ts.getObjectFlags(type) & 16777216)));
}
function createNodeBuilder() {
var symbolChainCache;
return {
setSymbolChainCache: function (cache) { symbolChainCache = cache; },
typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {
return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });
},
Expand Down Expand Up @@ -40838,7 +40833,6 @@ var ts;
fileExists: function (fileName) { return host.fileExists(fileName); },
getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },
} : undefined },
cache: symbolChainCache,
encounteredError: false,
reportedDiagnostic: false,
visitedTypes: undefined,
Expand Down Expand Up @@ -41780,29 +41774,6 @@ var ts;
}
return chain;
function getSymbolChain(symbol, meaning, endOfChain) {
var key;
var result;
if (context.cache) {
key = {
symbol: symbol,
enclosingDeclaration: context.enclosingDeclaration,
flags: context.flags,
meaning: meaning,
yieldModuleSymbol: yieldModuleSymbol,
endOfChain: endOfChain
};
result = context.cache.lookup(key);
if (result) {
return result;
}
}
result = doGetSymbolChain(symbol, meaning, endOfChain);
if (result && key && context.cache) {
context.cache.cache(key, result);
}
return result;
}
function doGetSymbolChain(symbol, meaning, endOfChain) {
var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128));
var parentSpecifiers;
if (!accessibleSymbolChain ||
Expand Down
29 changes: 0 additions & 29 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -45924,9 +45924,6 @@ var ts;
// extra cost of calling `getParseTreeNode` when calling these functions from inside the
// checker.
var checker = {
setSymbolChainCache: function (cache) {
nodeBuilder.setSymbolChainCache(cache);
},
getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); },
getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); },
getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount") + symbolCount; },
Expand Down Expand Up @@ -49703,9 +49700,7 @@ var ts;
return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288 /* Object */) && !!(ts.getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)));
}
function createNodeBuilder() {
var symbolChainCache;
return {
setSymbolChainCache: function (cache) { symbolChainCache = cache; },
typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {
return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });
},
Expand Down Expand Up @@ -49752,7 +49747,6 @@ var ts;
fileExists: function (fileName) { return host.fileExists(fileName); },
getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },
} : undefined },
cache: symbolChainCache,
encounteredError: false,
reportedDiagnostic: false,
visitedTypes: undefined,
Expand Down Expand Up @@ -50748,29 +50742,6 @@ var ts;
return chain;
/** @param endOfChain Set to false for recursive calls; non-recursive calls should always output something. */
function getSymbolChain(symbol, meaning, endOfChain) {
var key;
var result;
if (context.cache) {
key = {
symbol: symbol,
enclosingDeclaration: context.enclosingDeclaration,
flags: context.flags,
meaning: meaning,
yieldModuleSymbol: yieldModuleSymbol,
endOfChain: endOfChain
};
result = context.cache.lookup(key);
if (result) {
return result;
}
}
result = doGetSymbolChain(symbol, meaning, endOfChain);
if (result && key && context.cache) {
context.cache.cache(key, result);
}
return result;
}
function doGetSymbolChain(symbol, meaning, endOfChain) {
var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128 /* UseOnlyExternalAliasing */));
var parentSpecifiers;
if (!accessibleSymbolChain ||
Expand Down
13 changes: 0 additions & 13 deletions lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2191,20 +2191,7 @@ declare namespace ts {
diagnostics: readonly Diagnostic[];
emittedFiles?: string[];
}
export interface SymbolChainCacheKey {
symbol: Symbol;
enclosingDeclaration?: Node;
flags: NodeBuilderFlags;
meaning: SymbolFlags;
yieldModuleSymbol?: boolean;
endOfChain: boolean;
}
export interface SymbolChainCache {
lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
cache(key: SymbolChainCacheKey, value: Symbol[]): void;
}
export interface TypeChecker {
setSymbolChainCache(cache: SymbolChainCache | undefined): void;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
Expand Down
29 changes: 0 additions & 29 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -46118,9 +46118,6 @@ var ts;
// extra cost of calling `getParseTreeNode` when calling these functions from inside the
// checker.
var checker = {
setSymbolChainCache: function (cache) {
nodeBuilder.setSymbolChainCache(cache);
},
getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); },
getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); },
getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount") + symbolCount; },
Expand Down Expand Up @@ -49897,9 +49894,7 @@ var ts;
return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288 /* Object */) && !!(ts.getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)));
}
function createNodeBuilder() {
var symbolChainCache;
return {
setSymbolChainCache: function (cache) { symbolChainCache = cache; },
typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {
return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });
},
Expand Down Expand Up @@ -49946,7 +49941,6 @@ var ts;
fileExists: function (fileName) { return host.fileExists(fileName); },
getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },
} : undefined },
cache: symbolChainCache,
encounteredError: false,
reportedDiagnostic: false,
visitedTypes: undefined,
Expand Down Expand Up @@ -50942,29 +50936,6 @@ var ts;
return chain;
/** @param endOfChain Set to false for recursive calls; non-recursive calls should always output something. */
function getSymbolChain(symbol, meaning, endOfChain) {
var key;
var result;
if (context.cache) {
key = {
symbol: symbol,
enclosingDeclaration: context.enclosingDeclaration,
flags: context.flags,
meaning: meaning,
yieldModuleSymbol: yieldModuleSymbol,
endOfChain: endOfChain
};
result = context.cache.lookup(key);
if (result) {
return result;
}
}
result = doGetSymbolChain(symbol, meaning, endOfChain);
if (result && key && context.cache) {
context.cache.cache(key, result);
}
return result;
}
function doGetSymbolChain(symbol, meaning, endOfChain) {
var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128 /* UseOnlyExternalAliasing */));
var parentSpecifiers;
if (!accessibleSymbolChain ||
Expand Down
13 changes: 0 additions & 13 deletions lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2191,20 +2191,7 @@ declare namespace ts {
diagnostics: readonly Diagnostic[];
emittedFiles?: string[];
}
export interface SymbolChainCacheKey {
symbol: Symbol;
enclosingDeclaration?: Node;
flags: NodeBuilderFlags;
meaning: SymbolFlags;
yieldModuleSymbol?: boolean;
endOfChain: boolean;
}
export interface SymbolChainCache {
lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
cache(key: SymbolChainCacheKey, value: Symbol[]): void;
}
export interface TypeChecker {
setSymbolChainCache(cache: SymbolChainCache | undefined): void;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
Expand Down
29 changes: 0 additions & 29 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -46118,9 +46118,6 @@ var ts;
// extra cost of calling `getParseTreeNode` when calling these functions from inside the
// checker.
var checker = {
setSymbolChainCache: function (cache) {
nodeBuilder.setSymbolChainCache(cache);
},
getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); },
getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); },
getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount") + symbolCount; },
Expand Down Expand Up @@ -49897,9 +49894,7 @@ var ts;
return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288 /* Object */) && !!(ts.getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)));
}
function createNodeBuilder() {
var symbolChainCache;
return {
setSymbolChainCache: function (cache) { symbolChainCache = cache; },
typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {
return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });
},
Expand Down Expand Up @@ -49946,7 +49941,6 @@ var ts;
fileExists: function (fileName) { return host.fileExists(fileName); },
getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },
} : undefined },
cache: symbolChainCache,
encounteredError: false,
reportedDiagnostic: false,
visitedTypes: undefined,
Expand Down Expand Up @@ -50942,29 +50936,6 @@ var ts;
return chain;
/** @param endOfChain Set to false for recursive calls; non-recursive calls should always output something. */
function getSymbolChain(symbol, meaning, endOfChain) {
var key;
var result;
if (context.cache) {
key = {
symbol: symbol,
enclosingDeclaration: context.enclosingDeclaration,
flags: context.flags,
meaning: meaning,
yieldModuleSymbol: yieldModuleSymbol,
endOfChain: endOfChain
};
result = context.cache.lookup(key);
if (result) {
return result;
}
}
result = doGetSymbolChain(symbol, meaning, endOfChain);
if (result && key && context.cache) {
context.cache.cache(key, result);
}
return result;
}
function doGetSymbolChain(symbol, meaning, endOfChain) {
var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128 /* UseOnlyExternalAliasing */));
var parentSpecifiers;
if (!accessibleSymbolChain ||
Expand Down
13 changes: 0 additions & 13 deletions lib/typescriptServices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2191,20 +2191,7 @@ declare namespace ts {
diagnostics: readonly Diagnostic[];
emittedFiles?: string[];
}
export interface SymbolChainCacheKey {
symbol: Symbol;
enclosingDeclaration?: Node;
flags: NodeBuilderFlags;
meaning: SymbolFlags;
yieldModuleSymbol?: boolean;
endOfChain: boolean;
}
export interface SymbolChainCache {
lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
cache(key: SymbolChainCacheKey, value: Symbol[]): void;
}
export interface TypeChecker {
setSymbolChainCache(cache: SymbolChainCache | undefined): void;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
Expand Down
29 changes: 0 additions & 29 deletions lib/typescriptServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -46118,9 +46118,6 @@ var ts;
// extra cost of calling `getParseTreeNode` when calling these functions from inside the
// checker.
var checker = {
setSymbolChainCache: function (cache) {
nodeBuilder.setSymbolChainCache(cache);
},
getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); },
getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); },
getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount") + symbolCount; },
Expand Down Expand Up @@ -49897,9 +49894,7 @@ var ts;
return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288 /* Object */) && !!(ts.getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)));
}
function createNodeBuilder() {
var symbolChainCache;
return {
setSymbolChainCache: function (cache) { symbolChainCache = cache; },
typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {
return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });
},
Expand Down Expand Up @@ -49946,7 +49941,6 @@ var ts;
fileExists: function (fileName) { return host.fileExists(fileName); },
getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },
} : undefined },
cache: symbolChainCache,
encounteredError: false,
reportedDiagnostic: false,
visitedTypes: undefined,
Expand Down Expand Up @@ -50942,29 +50936,6 @@ var ts;
return chain;
/** @param endOfChain Set to false for recursive calls; non-recursive calls should always output something. */
function getSymbolChain(symbol, meaning, endOfChain) {
var key;
var result;
if (context.cache) {
key = {
symbol: symbol,
enclosingDeclaration: context.enclosingDeclaration,
flags: context.flags,
meaning: meaning,
yieldModuleSymbol: yieldModuleSymbol,
endOfChain: endOfChain
};
result = context.cache.lookup(key);
if (result) {
return result;
}
}
result = doGetSymbolChain(symbol, meaning, endOfChain);
if (result && key && context.cache) {
context.cache.cache(key, result);
}
return result;
}
function doGetSymbolChain(symbol, meaning, endOfChain) {
var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128 /* UseOnlyExternalAliasing */));
var parentSpecifiers;
if (!accessibleSymbolChain ||
Expand Down
Loading

0 comments on commit b772711

Please sign in to comment.