1 | import * as ast from '@angular/compiler';
|
2 | import * as ts from 'typescript';
|
3 | import * as Lint from 'tslint';
|
4 | import * as e from '@angular/compiler/src/expression_parser/ast';
|
5 | import { ComponentMetadata } from '../metadata';
|
6 | import { SourceMappingVisitor } from '../sourceMappingVisitor';
|
7 | export interface RecursiveAngularExpressionVisitorCtr {
|
8 | new (sourceFile: ts.SourceFile, options: Lint.IOptions, context: ComponentMetadata, basePosition: number): any;
|
9 | }
|
10 | export interface TemplateAstVisitorCtr {
|
11 | new (sourceFile: ts.SourceFile, options: Lint.IOptions, context: ComponentMetadata, templateStart: number, expressionVisitorCtrl: RecursiveAngularExpressionVisitorCtr): any;
|
12 | }
|
13 | export declare class BasicTemplateAstVisitor extends SourceMappingVisitor implements ast.TemplateAstVisitor {
|
14 | private _originalOptions;
|
15 | protected context: ComponentMetadata;
|
16 | protected templateStart: number;
|
17 | private expressionVisitorCtrl;
|
18 | private _variables;
|
19 | constructor(sourceFile: ts.SourceFile, _originalOptions: Lint.IOptions, context: ComponentMetadata, templateStart: number, expressionVisitorCtrl?: RecursiveAngularExpressionVisitorCtr);
|
20 | visit?(node: ast.TemplateAst, context: any): any;
|
21 | visitNgContent(ast: ast.NgContentAst, context: any): any;
|
22 | visitEmbeddedTemplate(ast: ast.EmbeddedTemplateAst, context: any): any;
|
23 | visitElement(element: ast.ElementAst, context: any): any;
|
24 | visitReference(ast: ast.ReferenceAst, context: any): any;
|
25 | visitVariable(ast: ast.VariableAst, context: any): any;
|
26 | visitEvent(ast: ast.BoundEventAst, context: any): any;
|
27 | visitElementProperty(prop: ast.BoundElementPropertyAst, context: any): any;
|
28 | visitAttr(ast: ast.AttrAst, context: any): any;
|
29 | visitBoundText(text: ast.BoundTextAst, context: any): any;
|
30 | visitText(text: ast.TextAst, context: any): any;
|
31 | visitDirective(ast: ast.DirectiveAst, context: any): any;
|
32 | visitDirectiveProperty(prop: ast.BoundDirectivePropertyAst, context: any): any;
|
33 | protected visitNgTemplateAST(ast: e.AST, templateStart: number, prop?: any): void;
|
34 | }
|