Merge pull request #6077 from Microsoft/superInObjectLiterals

allow usage of 'super' in object literal expressions
This commit is contained in:
Vladimir Matveev
2015-12-17 21:53:58 -08:00
29 changed files with 968 additions and 129 deletions

View File

@@ -5779,7 +5779,7 @@ namespace ts {
}
function getReferencesForSuperKeyword(superKeyword: Node): ReferencedSymbol[] {
let searchSpaceNode = getSuperContainer(superKeyword, /*includeFunctions*/ false);
let searchSpaceNode = getSuperContainer(superKeyword, /*stopOnFunctions*/ false);
if (!searchSpaceNode) {
return undefined;
}
@@ -5814,7 +5814,7 @@ namespace ts {
return;
}
const container = getSuperContainer(node, /*includeFunctions*/ false);
const 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