Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration

Fixes #604
This commit is contained in:
Sheetal Nandi
2014-09-09 12:45:10 -07:00
parent 7ce8c8faad
commit 840481da3b
3 changed files with 7 additions and 115 deletions

View File

@@ -907,8 +907,8 @@ module ts {
// Get qualified name
if (enclosingDeclaration &&
// Properties/methods/Signatures/Constructors/TypeParameters do not need qualification
!(symbol.flags & (SymbolFlags.PropertyOrAccessor | SymbolFlags.Signature | SymbolFlags.Constructor | SymbolFlags.Method | SymbolFlags.TypeParameter))) {
// TypeParameters do not need qualification
!(symbol.flags & SymbolFlags.TypeParameter)) {
var symbolName: string;
while (symbol) {
var isFirstName = !symbolName;