1234567891011121314151617181920212223242526272829303132 |
- import * as ng from '@angular/compiler/src/expression_parser/ast';
- import { RawNGComment, RawNGSpan } from './types';
- export declare const NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX = "NgEstreeParser";
- export declare function parseNgBinding(input: string): {
- ast: ng.AST;
- comments: RawNGComment[];
- };
- export declare function parseNgSimpleBinding(input: string): {
- ast: ng.AST;
- comments: RawNGComment[];
- };
- export declare function parseNgAction(input: string): {
- ast: ng.AST;
- comments: RawNGComment[];
- };
- export declare function parseNgTemplateBindings(input: string): ng.TemplateBinding[];
- export declare function parseNgInterpolation(input: string): {
- ast: any;
- comments: RawNGComment[];
- };
- export declare function getNgType(node: (ng.AST | RawNGComment) & {
- type?: string;
- }): string | undefined;
- export declare function fitSpans(span: RawNGSpan, text: string, hasParentParens: boolean): {
- outerSpan: RawNGSpan;
- innerSpan: RawNGSpan;
- hasParens: boolean;
- };
- export declare function findFrontChar(regex: RegExp, index: number, text: string): number;
- export declare function findBackChar(regex: RegExp, index: number, text: string): number;
- export declare function toLowerCamelCase(str: string): string;
- export declare function getLast<T>(array: T[]): T | undefined;
|