refactor(ivy): use ClassDeclaration
in more ReflectionHost
methods (#29209)
PR Close #29209
This commit is contained in:

committed by
Miško Hevery

parent
bb6a3632f6
commit
2790352d04
@ -60,11 +60,6 @@ export function isDeclaration(node: ts.Node): node is ts.Declaration {
|
||||
ts.isFunctionDeclaration(node) || ts.isVariableDeclaration(node);
|
||||
}
|
||||
|
||||
export function isNamedClassDeclaration(node: ts.Node): node is ts.ClassDeclaration&
|
||||
{name: ts.Identifier} {
|
||||
return ts.isClassDeclaration(node) && (node.name !== undefined);
|
||||
}
|
||||
|
||||
export function isExported(node: ts.Declaration): boolean {
|
||||
let topLevel: ts.Node = node;
|
||||
if (ts.isVariableDeclaration(node) && ts.isVariableDeclarationList(node.parent)) {
|
||||
|
Reference in New Issue
Block a user