fix(ivy): correctly detect classes in ngcc Esm5ReflectionHost
(#25406)
PR Close #25406
This commit is contained in:

committed by
Matias Niemelä

parent
3211432d2a
commit
9e179cb311
@ -406,9 +406,9 @@ export interface ReflectionHost {
|
||||
getExportsOfModule(module: ts.Node): Map<string, Declaration>|null;
|
||||
|
||||
/**
|
||||
* Check whether the given declaration node actually represents a class.
|
||||
* Check whether the given node actually represents a class.
|
||||
*/
|
||||
isClass(node: ts.Declaration): boolean;
|
||||
isClass(node: ts.Node): boolean;
|
||||
|
||||
hasBaseClass(node: ts.Declaration): boolean;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ export class TypeScriptReflectionHost implements ReflectionHost {
|
||||
return map;
|
||||
}
|
||||
|
||||
isClass(node: ts.Declaration): boolean {
|
||||
isClass(node: ts.Node): boolean {
|
||||
// In TypeScript code, classes are ts.ClassDeclarations.
|
||||
return ts.isClassDeclaration(node);
|
||||
}
|
||||
|
Reference in New Issue
Block a user