changed logic based on CR feedback to not get fully qualified for typeparemeters even if typeformatflag is present

This commit is contained in:
ChrisBubernak
2015-01-08 13:42:01 -08:00
parent f39a25b659
commit 52a6ba69a1

View File

@@ -1095,11 +1095,11 @@ module ts {
}
}
// Get qualified name if there is an enclosing declaration and it is not a
// type parameter or we have a flag telling us to
var needFullyQualifiedName = (enclosingDeclaration && !(symbol.flags & SymbolFlags.TypeParameter));
var useFullyQualifiedFlag = TypeFormatFlags.UseFullyQualifiedType & typeFlags;
if (needFullyQualifiedName || useFullyQualifiedFlag) {
// Get qualified name if the symbol is not a type parameter
// and we have an enclosing declaration or a typeformat flag
var typeParameter = (symbol.flags & SymbolFlags.TypeParameter);
var typeFormatFlag = TypeFormatFlags.UseFullyQualifiedType & typeFlags;
if (!typeParameter && (enclosingDeclaration || typeFormatFlag)) {
walkSymbol(symbol, meaning);
return;
}