File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -5841,32 +5841,15 @@ namespace ts {
5841
5841
}
5842
5842
}
5843
5843
5844
- function resolveLocation(node: Node) {
5845
- // Resolve location from top down towards node if it is a context sensitive expression
5846
- // That helps in making sure not assigning types as any when resolved out of order
5847
- let containerNodes: Node[] = [];
5848
- for (let parent = node.parent; parent; parent = parent.parent) {
5849
- if ((isExpression(parent) || isObjectLiteralMethod(node)) &&
5850
- isContextSensitive(<Expression>parent)) {
5851
- containerNodes.unshift(parent);
5852
- }
5853
- }
5854
-
5855
- ts.forEach(containerNodes, node => { getTypeOfNode(node); });
5856
- }
5857
-
5858
5844
function getSymbolAtLocation(node: Node): Symbol {
5859
- resolveLocation(node);
5860
5845
return getSymbolInfo(node);
5861
5846
}
5862
5847
5863
5848
function getTypeAtLocation(node: Node): Type {
5864
- resolveLocation(node);
5865
5849
return getTypeOfNode(node);
5866
5850
}
5867
5851
5868
5852
function getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type {
5869
- resolveLocation(node);
5870
5853
// Get the narrowed type of symbol at given location instead of just getting
5871
5854
// the type of the symbol.
5872
5855
// eg.
You can’t perform that action at this time.
0 commit comments