Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | /// <amd-module name="@angular/core/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor" />
|
---|
| 9 | import { PropertyWrite } from '@angular/compiler';
|
---|
| 10 | import { BoundEvent, Element, NullVisitor, Template } from '@angular/compiler/src/render3/r3_ast';
|
---|
| 11 | export interface TemplateVariableAssignment {
|
---|
| 12 | start: number;
|
---|
| 13 | end: number;
|
---|
| 14 | node: PropertyWrite;
|
---|
| 15 | }
|
---|
| 16 | /**
|
---|
| 17 | * HTML AST visitor that traverses the Render3 HTML AST in order to find all
|
---|
| 18 | * expressions that write to local template variables within bound events.
|
---|
| 19 | */
|
---|
| 20 | export declare class HtmlVariableAssignmentVisitor extends NullVisitor {
|
---|
| 21 | variableAssignments: TemplateVariableAssignment[];
|
---|
| 22 | private currentVariables;
|
---|
| 23 | private expressionAstVisitor;
|
---|
| 24 | visitElement(element: Element): void;
|
---|
| 25 | visitTemplate(template: Template): void;
|
---|
| 26 | visitBoundEvent(node: BoundEvent): void;
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.