angular-estree-parser
Version:
A parser that converts Angular source code into an ESTree-compatible form
12 lines (11 loc) • 494 B
TypeScript
import * as angular from '@angular/compiler';
import Source from './source.js';
import type { LocationInformation, NGNode } from './types.js';
declare class Transformer extends Source {
#private;
constructor(ast: angular.AST | undefined, text: string);
get node(): NGNode & LocationInformation;
transformNode<T extends NGNode>(node: angular.AST): T & LocationInformation;
}
declare function transform(node: angular.AST, text: string): NGNode;
export { transform, Transformer };