mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
More changes to address code review comments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user