11import { readFileSync } from 'fs' ;
22import * as ts from 'typescript' ;
33
4- import { parseClassName , parseClassJsDoc } from '../shared/parser/class .parser.js' ;
4+ import { isCva } from '../shared/parser/cva .parser.js' ;
55import { NgParselOutputType } from '../shared/model/types.model.js' ;
6- import { getDecoratorProperties } from '../shared/parser/decorator.parser.js' ;
76import { parseInputsAndOutputs } from '../shared/parser/field-decorator.parser.js' ;
7+ import { getDecoratorProperties } from '../shared/parser/decorator.parser.js' ;
8+ import { parseExplicitPublicFields } from '../shared/parser/field.parser.js' ;
9+ import { parseClassName , parseClassJsDoc } from '../shared/parser/class.parser.js' ;
10+ import { parseExplicitPublicMethods , parseMethods } from '../shared/parser/method.parser.js' ;
811
912import { NgParselDirective } from './directive.model.js' ;
10- import { parseExplicitPublicMethods , parseMethods } from '../shared/parser/method.parser.js' ;
11- import { parseExplicitPublicFields } from '../shared/parser/field.parser.js' ;
1213
1314export function parseDirective ( ast : ts . SourceFile , directiveFilePath : string ) : NgParselDirective {
1415 const directiveDecorators = getDecoratorProperties ( ast ) ;
@@ -23,6 +24,7 @@ export function parseDirective(ast: ts.SourceFile, directiveFilePath: string): N
2324 filePath : directiveFilePath ,
2425 selector : directiveDecorators . selector as string ,
2526 standalone : directiveDecorators . standalone || false ,
27+ cva : isCva ( ast ) ,
2628 implementation : directiveImplementation ,
2729 inputs : inputsAndOutputs . inputs ,
2830 outputs : inputsAndOutputs . outputs ,
0 commit comments