Merge pull request #638 from Microsoft/qualificationOfMethods

Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
This commit is contained in:
Sheetal Nandi
2014-09-09 16:21:41 -07:00
3 changed files with 7 additions and 115 deletions

View File

@@ -909,8 +909,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;