UNPKG

ngast

Version:

Parsing tools for Angular. The project is an abstraction over the Angular compiler which provides friendly interface.

11 lines (10 loc) 553 B
import { ClassDeclaration } from '@angular/compiler-cli/src/ngtsc/reflection'; import { TraitCompiler, ClassRecord } from '@angular/compiler-cli/src/ngtsc/transform'; import { AnnotationNames } from './utils'; /** TraitCompiler with friendly interface */ export declare class NgastTraitCompiler extends TraitCompiler { /** Perform analysis for one node */ analyzeNode(node: ClassDeclaration<ClassDeclaration>): void; resolveNode(node: ClassDeclaration<ClassDeclaration>): void; allRecords(annotation?: AnnotationNames): ClassRecord[]; }