UNPKG

642 BTypeScriptView Raw
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/compiler-cli/src/ngtsc/translator/src/context" />
9/**
10 * The current context of a translator visitor as it traverses the AST tree.
11 *
12 * It tracks whether we are in the process of outputting a statement or an expression.
13 */
14export declare class Context {
15 readonly isStatement: boolean;
16 constructor(isStatement: boolean);
17 get withExpressionMode(): Context;
18 get withStatementMode(): Context;
19}