source: trip-planner-front/node_modules/@angular/compiler-cli/linker/babel/src/ast/babel_ast_host.d.ts@ 6a3a178

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.4 KB
Line 
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/linker/babel/src/ast/babel_ast_host" />
9import * as t from '@babel/types';
10import { AstHost, Range } from '../../../../linker';
11/**
12 * This implementation of `AstHost` is able to get information from Babel AST nodes.
13 */
14export declare class BabelAstHost implements AstHost<t.Expression> {
15 getSymbolName(node: t.Expression): string | null;
16 isStringLiteral: typeof t.isStringLiteral;
17 parseStringLiteral(str: t.Expression): string;
18 isNumericLiteral: typeof t.isNumericLiteral;
19 parseNumericLiteral(num: t.Expression): number;
20 isBooleanLiteral(bool: t.Expression): boolean;
21 parseBooleanLiteral(bool: t.Expression): boolean;
22 isArrayLiteral: typeof t.isArrayExpression;
23 parseArrayLiteral(array: t.Expression): t.Expression[];
24 isObjectLiteral: typeof t.isObjectExpression;
25 parseObjectLiteral(obj: t.Expression): Map<string, t.Expression>;
26 isFunctionExpression(node: t.Expression): node is Extract<t.Function, t.Expression>;
27 parseReturnValue(fn: t.Expression): t.Expression;
28 isCallExpression: typeof t.isCallExpression;
29 parseCallee(call: t.Expression): t.Expression;
30 parseArguments(call: t.Expression): t.Expression[];
31 getRange(node: t.Expression): Range;
32}
Note: See TracBrowser for help on using the repository browser.