findAllReferences: In export default foo, symbol name is foo

This commit is contained in:
Andy Hanson committed 2017-05-15 08:34:05 -07:00
1 parent 50e2912cd2
commit 5eb2bd08ac
3 files changed
+25 -4

No files matched your search

+4
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;
}