source: trip-planner-front/node_modules/@angular/compiler-cli/linker/babel/src/ast/babel_ast_factory.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: 2.7 KB
Line 
1/// <amd-module name="@angular/compiler-cli/linker/babel/src/ast/babel_ast_factory" />
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 */
9import * as t from '@babel/types';
10import { AstFactory, BinaryOperator, LeadingComment, ObjectLiteralProperty, SourceMapRange, TemplateLiteral, VariableDeclarationType } from '../../../../src/ngtsc/translator';
11/**
12 * A Babel flavored implementation of the AstFactory.
13 */
14export declare class BabelAstFactory implements AstFactory<t.Statement, t.Expression> {
15 /** The absolute path to the source file being compiled. */
16 private sourceUrl;
17 constructor(
18 /** The absolute path to the source file being compiled. */
19 sourceUrl: string);
20 attachComments(statement: t.Statement, leadingComments: LeadingComment[]): void;
21 createArrayLiteral: typeof t.arrayExpression;
22 createAssignment(target: t.Expression, value: t.Expression): t.Expression;
23 createBinaryExpression(leftOperand: t.Expression, operator: BinaryOperator, rightOperand: t.Expression): t.Expression;
24 createBlock: typeof t.blockStatement;
25 createCallExpression(callee: t.Expression, args: t.Expression[], pure: boolean): t.Expression;
26 createConditional: typeof t.conditionalExpression;
27 createElementAccess(expression: t.Expression, element: t.Expression): t.Expression;
28 createExpressionStatement: typeof t.expressionStatement;
29 createFunctionDeclaration(functionName: string, parameters: string[], body: t.Statement): t.Statement;
30 createFunctionExpression(functionName: string | null, parameters: string[], body: t.Statement): t.Expression;
31 createIdentifier: typeof t.identifier;
32 createIfStatement: typeof t.ifStatement;
33 createLiteral(value: string | number | boolean | null | undefined): t.Expression;
34 createNewExpression: typeof t.newExpression;
35 createObjectLiteral(properties: ObjectLiteralProperty<t.Expression>[]): t.Expression;
36 createParenthesizedExpression: typeof t.parenthesizedExpression;
37 createPropertyAccess(expression: t.Expression, propertyName: string): t.Expression;
38 createReturnStatement: typeof t.returnStatement;
39 createTaggedTemplate(tag: t.Expression, template: TemplateLiteral<t.Expression>): t.Expression;
40 createThrowStatement: typeof t.throwStatement;
41 createTypeOfExpression(expression: t.Expression): t.Expression;
42 createUnaryExpression: typeof t.unaryExpression;
43 createVariableDeclaration(variableName: string, initializer: t.Expression | null, type: VariableDeclarationType): t.Statement;
44 setSourceMapRange<T extends t.Statement | t.Expression | t.TemplateElement>(node: T, sourceMapRange: SourceMapRange | null): T;
45}
Note: See TracBrowser for help on using the repository browser.