mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Fix minor issues
This commit is contained in:
parent
a9c2c70671
commit
c96b3280d7
@ -633,6 +633,7 @@ namespace ts {
|
||||
|| isTypeAliasDeclaration(node)
|
||||
|| isModuleDeclaration(node)
|
||||
|| isClassDeclaration(node)
|
||||
|| isClassExpression(node)
|
||||
|| isInterfaceDeclaration(node)
|
||||
|| isFunctionLike(node)
|
||||
|| isIndexSignatureDeclaration(node)
|
||||
|
||||
@ -1176,6 +1176,10 @@ namespace ts {
|
||||
|| kind === SyntaxKind.Identifier;
|
||||
}
|
||||
|
||||
export function isEntityNameOrClassExpression(node: Node): node is EntityName {
|
||||
return isEntityName(node) || node.kind === SyntaxKind.ClassExpression;
|
||||
}
|
||||
|
||||
export function isPropertyName(node: Node): node is PropertyName {
|
||||
const kind = node.kind;
|
||||
return kind === SyntaxKind.Identifier
|
||||
|
||||
@ -491,7 +491,7 @@ namespace ts {
|
||||
|
||||
case SyntaxKind.TypeQuery:
|
||||
return factory.updateTypeQueryNode((<TypeQueryNode>node),
|
||||
nodeVisitor((<TypeQueryNode>node).exprName, visitor, isEntityName));
|
||||
nodeVisitor((<TypeQueryNode>node).exprName, visitor, isEntityNameOrClassExpression));
|
||||
|
||||
case SyntaxKind.TypeLiteral:
|
||||
return factory.updateTypeLiteralNode((<TypeLiteralNode>node),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user