mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 20:14:05 -05:00
Fix the merge conflicts
This commit is contained in:
@@ -4395,7 +4395,8 @@ module ts {
|
||||
// That helps in making sure not assigning types as any when resolved out of order
|
||||
var containerNodes: Node[] = [];
|
||||
for (var parent = node.parent; parent; parent = parent.parent) {
|
||||
if (isExpression(parent) && isContextSensitiveExpression(<Expression>parent)) {
|
||||
if ((isExpression(parent) || isObjectLiteralMethod(node)) &&
|
||||
isContextSensitive(<Expression>parent)) {
|
||||
containerNodes.unshift(parent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ class TypeWriterWalker {
|
||||
}
|
||||
|
||||
private getTypeOfNode(node: ts.Node): ts.Type {
|
||||
var type = this.checker.getTypeOfLocation(node);
|
||||
var type = this.checker.getTypeAtLocation(node);
|
||||
ts.Debug.assert(type !== undefined, "type doesn't exist");
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user