allow usage of 'super' in object literal expressions

This commit is contained in:
vladima
2015-12-11 17:16:28 -08:00
parent 8c6105f4dc
commit 60e1f30182
32 changed files with 940 additions and 137 deletions

View File

@@ -5780,7 +5780,7 @@ namespace ts {
}
function getReferencesForSuperKeyword(superKeyword: Node): ReferencedSymbol[] {
let searchSpaceNode = getSuperContainer(superKeyword, /*includeFunctions*/ false);
let searchSpaceNode = getSuperContainer(superKeyword, /*stopOnFunctions*/ false);
if (!searchSpaceNode) {
return undefined;
}
@@ -5815,7 +5815,7 @@ namespace ts {
return;
}
let container = getSuperContainer(node, /*includeFunctions*/ false);
let container = getSuperContainer(node, /*stopOnFunctions*/ false);
// If we have a 'super' container, we must have an enclosing class.
// Now make sure the owning class is the same as the search-space