findAllReferences: In export default foo, symbol name is foo

This commit is contained in:
Andy Hanson
2017-05-15 08:24:29 -07:00
parent 50e2912cd2
commit 5eb2bd08ac
3 changed files with 25 additions and 4 deletions

View File

@@ -4032,6 +4032,10 @@ namespace ts {
return node.kind === SyntaxKind.ExportSpecifier;
}
export function isExportAssignment(node: Node): node is ExportAssignment {
return node.kind === SyntaxKind.ExportAssignment;
}
export function isModuleOrEnumDeclaration(node: Node): node is ModuleDeclaration | EnumDeclaration {
return node.kind === SyntaxKind.ModuleDeclaration || node.kind === SyntaxKind.EnumDeclaration;
}