Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /// <amd-module name="@angular/compiler-cli/linker/src/file_linker/translator" />
|
---|
| 2 | /**
|
---|
| 3 | * @license
|
---|
| 4 | * Copyright Google LLC All Rights Reserved.
|
---|
| 5 | *
|
---|
| 6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 7 | * found in the LICENSE file at https://angular.io/license
|
---|
| 8 | */
|
---|
| 9 | import * as o from '@angular/compiler';
|
---|
| 10 | import { AstFactory, ImportGenerator, TranslatorOptions } from '@angular/compiler-cli/src/ngtsc/translator';
|
---|
| 11 | /**
|
---|
| 12 | * Generic translator helper class, which exposes methods for translating expressions and
|
---|
| 13 | * statements.
|
---|
| 14 | */
|
---|
| 15 | export declare class Translator<TStatement, TExpression> {
|
---|
| 16 | private factory;
|
---|
| 17 | constructor(factory: AstFactory<TStatement, TExpression>);
|
---|
| 18 | /**
|
---|
| 19 | * Translate the given output AST in the context of an expression.
|
---|
| 20 | */
|
---|
| 21 | translateExpression(expression: o.Expression, imports: ImportGenerator<TExpression>, options?: TranslatorOptions<TExpression>): TExpression;
|
---|
| 22 | /**
|
---|
| 23 | * Translate the given output AST in the context of a statement.
|
---|
| 24 | */
|
---|
| 25 | translateStatement(statement: o.Statement, imports: ImportGenerator<TExpression>, options?: TranslatorOptions<TExpression>): TStatement;
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.