More changes to address code review comments

This commit is contained in:
Mohamed Hegazy
2014-07-31 19:04:55 -07:00
parent 61436368b5
commit 732ffc0d5d
2 changed files with 14 additions and 35 deletions
+1 -1
View File
@@ -6198,7 +6198,7 @@ module ts {
// True if the given identifier is part of a type reference
function isTypeReferenceIdentifier(identifier: Identifier): boolean {
var node: Node = identifier;
while (node.parent && node.parent.kind === SyntaxKind.QualifiedName) node = node.parent;
if (node.parent && node.parent.kind === SyntaxKind.QualifiedName) node = node.parent;
return node.parent && node.parent.kind === SyntaxKind.TypeReference;
}