source: trip-planner-front/node_modules/@angular/compiler/src/expression_parser/ast.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 127.9 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(function (factory) {
9 if (typeof module === "object" && typeof module.exports === "object") {
10 var v = factory(require, exports);
11 if (v !== undefined) module.exports = v;
12 }
13 else if (typeof define === "function" && define.amd) {
14 define("@angular/compiler/src/expression_parser/ast", ["require", "exports", "tslib"], factory);
15 }
16})(function (require, exports) {
17 "use strict";
18 Object.defineProperty(exports, "__esModule", { value: true });
19 exports.BoundElementProperty = exports.ParsedVariable = exports.ParsedEvent = exports.ParsedPropertyType = exports.ParsedProperty = exports.AstMemoryEfficientTransformer = exports.AstTransformer = exports.RecursiveAstVisitor = exports.ExpressionBinding = exports.VariableBinding = exports.ASTWithSource = exports.AbsoluteSourceSpan = exports.FunctionCall = exports.SafeMethodCall = exports.MethodCall = exports.NonNullAssert = exports.PrefixNot = exports.Unary = exports.Binary = exports.Interpolation = exports.LiteralMap = exports.LiteralArray = exports.LiteralPrimitive = exports.BindingPipe = exports.KeyedWrite = exports.SafeKeyedRead = exports.KeyedRead = exports.SafePropertyRead = exports.PropertyWrite = exports.PropertyRead = exports.Conditional = exports.Chain = exports.ThisReceiver = exports.ImplicitReceiver = exports.EmptyExpr = exports.Quote = exports.ASTWithName = exports.AST = exports.ParseSpan = exports.ParserError = void 0;
20 var tslib_1 = require("tslib");
21 var ParserError = /** @class */ (function () {
22 function ParserError(message, input, errLocation, ctxLocation) {
23 this.input = input;
24 this.errLocation = errLocation;
25 this.ctxLocation = ctxLocation;
26 this.message = "Parser Error: " + message + " " + errLocation + " [" + input + "] in " + ctxLocation;
27 }
28 return ParserError;
29 }());
30 exports.ParserError = ParserError;
31 var ParseSpan = /** @class */ (function () {
32 function ParseSpan(start, end) {
33 this.start = start;
34 this.end = end;
35 }
36 ParseSpan.prototype.toAbsolute = function (absoluteOffset) {
37 return new AbsoluteSourceSpan(absoluteOffset + this.start, absoluteOffset + this.end);
38 };
39 return ParseSpan;
40 }());
41 exports.ParseSpan = ParseSpan;
42 var AST = /** @class */ (function () {
43 function AST(span,
44 /**
45 * Absolute location of the expression AST in a source code file.
46 */
47 sourceSpan) {
48 this.span = span;
49 this.sourceSpan = sourceSpan;
50 }
51 AST.prototype.toString = function () {
52 return 'AST';
53 };
54 return AST;
55 }());
56 exports.AST = AST;
57 var ASTWithName = /** @class */ (function (_super) {
58 tslib_1.__extends(ASTWithName, _super);
59 function ASTWithName(span, sourceSpan, nameSpan) {
60 var _this = _super.call(this, span, sourceSpan) || this;
61 _this.nameSpan = nameSpan;
62 return _this;
63 }
64 return ASTWithName;
65 }(AST));
66 exports.ASTWithName = ASTWithName;
67 /**
68 * Represents a quoted expression of the form:
69 *
70 * quote = prefix `:` uninterpretedExpression
71 * prefix = identifier
72 * uninterpretedExpression = arbitrary string
73 *
74 * A quoted expression is meant to be pre-processed by an AST transformer that
75 * converts it into another AST that no longer contains quoted expressions.
76 * It is meant to allow third-party developers to extend Angular template
77 * expression language. The `uninterpretedExpression` part of the quote is
78 * therefore not interpreted by the Angular's own expression parser.
79 */
80 var Quote = /** @class */ (function (_super) {
81 tslib_1.__extends(Quote, _super);
82 function Quote(span, sourceSpan, prefix, uninterpretedExpression, location) {
83 var _this = _super.call(this, span, sourceSpan) || this;
84 _this.prefix = prefix;
85 _this.uninterpretedExpression = uninterpretedExpression;
86 _this.location = location;
87 return _this;
88 }
89 Quote.prototype.visit = function (visitor, context) {
90 if (context === void 0) { context = null; }
91 return visitor.visitQuote(this, context);
92 };
93 Quote.prototype.toString = function () {
94 return 'Quote';
95 };
96 return Quote;
97 }(AST));
98 exports.Quote = Quote;
99 var EmptyExpr = /** @class */ (function (_super) {
100 tslib_1.__extends(EmptyExpr, _super);
101 function EmptyExpr() {
102 return _super !== null && _super.apply(this, arguments) || this;
103 }
104 EmptyExpr.prototype.visit = function (visitor, context) {
105 if (context === void 0) { context = null; }
106 // do nothing
107 };
108 return EmptyExpr;
109 }(AST));
110 exports.EmptyExpr = EmptyExpr;
111 var ImplicitReceiver = /** @class */ (function (_super) {
112 tslib_1.__extends(ImplicitReceiver, _super);
113 function ImplicitReceiver() {
114 return _super !== null && _super.apply(this, arguments) || this;
115 }
116 ImplicitReceiver.prototype.visit = function (visitor, context) {
117 if (context === void 0) { context = null; }
118 return visitor.visitImplicitReceiver(this, context);
119 };
120 return ImplicitReceiver;
121 }(AST));
122 exports.ImplicitReceiver = ImplicitReceiver;
123 /**
124 * Receiver when something is accessed through `this` (e.g. `this.foo`). Note that this class
125 * inherits from `ImplicitReceiver`, because accessing something through `this` is treated the
126 * same as accessing it implicitly inside of an Angular template (e.g. `[attr.title]="this.title"`
127 * is the same as `[attr.title]="title"`.). Inheriting allows for the `this` accesses to be treated
128 * the same as implicit ones, except for a couple of exceptions like `$event` and `$any`.
129 * TODO: we should find a way for this class not to extend from `ImplicitReceiver` in the future.
130 */
131 var ThisReceiver = /** @class */ (function (_super) {
132 tslib_1.__extends(ThisReceiver, _super);
133 function ThisReceiver() {
134 return _super !== null && _super.apply(this, arguments) || this;
135 }
136 ThisReceiver.prototype.visit = function (visitor, context) {
137 var _a;
138 if (context === void 0) { context = null; }
139 return (_a = visitor.visitThisReceiver) === null || _a === void 0 ? void 0 : _a.call(visitor, this, context);
140 };
141 return ThisReceiver;
142 }(ImplicitReceiver));
143 exports.ThisReceiver = ThisReceiver;
144 /**
145 * Multiple expressions separated by a semicolon.
146 */
147 var Chain = /** @class */ (function (_super) {
148 tslib_1.__extends(Chain, _super);
149 function Chain(span, sourceSpan, expressions) {
150 var _this = _super.call(this, span, sourceSpan) || this;
151 _this.expressions = expressions;
152 return _this;
153 }
154 Chain.prototype.visit = function (visitor, context) {
155 if (context === void 0) { context = null; }
156 return visitor.visitChain(this, context);
157 };
158 return Chain;
159 }(AST));
160 exports.Chain = Chain;
161 var Conditional = /** @class */ (function (_super) {
162 tslib_1.__extends(Conditional, _super);
163 function Conditional(span, sourceSpan, condition, trueExp, falseExp) {
164 var _this = _super.call(this, span, sourceSpan) || this;
165 _this.condition = condition;
166 _this.trueExp = trueExp;
167 _this.falseExp = falseExp;
168 return _this;
169 }
170 Conditional.prototype.visit = function (visitor, context) {
171 if (context === void 0) { context = null; }
172 return visitor.visitConditional(this, context);
173 };
174 return Conditional;
175 }(AST));
176 exports.Conditional = Conditional;
177 var PropertyRead = /** @class */ (function (_super) {
178 tslib_1.__extends(PropertyRead, _super);
179 function PropertyRead(span, sourceSpan, nameSpan, receiver, name) {
180 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
181 _this.receiver = receiver;
182 _this.name = name;
183 return _this;
184 }
185 PropertyRead.prototype.visit = function (visitor, context) {
186 if (context === void 0) { context = null; }
187 return visitor.visitPropertyRead(this, context);
188 };
189 return PropertyRead;
190 }(ASTWithName));
191 exports.PropertyRead = PropertyRead;
192 var PropertyWrite = /** @class */ (function (_super) {
193 tslib_1.__extends(PropertyWrite, _super);
194 function PropertyWrite(span, sourceSpan, nameSpan, receiver, name, value) {
195 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
196 _this.receiver = receiver;
197 _this.name = name;
198 _this.value = value;
199 return _this;
200 }
201 PropertyWrite.prototype.visit = function (visitor, context) {
202 if (context === void 0) { context = null; }
203 return visitor.visitPropertyWrite(this, context);
204 };
205 return PropertyWrite;
206 }(ASTWithName));
207 exports.PropertyWrite = PropertyWrite;
208 var SafePropertyRead = /** @class */ (function (_super) {
209 tslib_1.__extends(SafePropertyRead, _super);
210 function SafePropertyRead(span, sourceSpan, nameSpan, receiver, name) {
211 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
212 _this.receiver = receiver;
213 _this.name = name;
214 return _this;
215 }
216 SafePropertyRead.prototype.visit = function (visitor, context) {
217 if (context === void 0) { context = null; }
218 return visitor.visitSafePropertyRead(this, context);
219 };
220 return SafePropertyRead;
221 }(ASTWithName));
222 exports.SafePropertyRead = SafePropertyRead;
223 var KeyedRead = /** @class */ (function (_super) {
224 tslib_1.__extends(KeyedRead, _super);
225 function KeyedRead(span, sourceSpan, receiver, key) {
226 var _this = _super.call(this, span, sourceSpan) || this;
227 _this.receiver = receiver;
228 _this.key = key;
229 return _this;
230 }
231 KeyedRead.prototype.visit = function (visitor, context) {
232 if (context === void 0) { context = null; }
233 return visitor.visitKeyedRead(this, context);
234 };
235 return KeyedRead;
236 }(AST));
237 exports.KeyedRead = KeyedRead;
238 var SafeKeyedRead = /** @class */ (function (_super) {
239 tslib_1.__extends(SafeKeyedRead, _super);
240 function SafeKeyedRead(span, sourceSpan, receiver, key) {
241 var _this = _super.call(this, span, sourceSpan) || this;
242 _this.receiver = receiver;
243 _this.key = key;
244 return _this;
245 }
246 SafeKeyedRead.prototype.visit = function (visitor, context) {
247 if (context === void 0) { context = null; }
248 return visitor.visitSafeKeyedRead(this, context);
249 };
250 return SafeKeyedRead;
251 }(AST));
252 exports.SafeKeyedRead = SafeKeyedRead;
253 var KeyedWrite = /** @class */ (function (_super) {
254 tslib_1.__extends(KeyedWrite, _super);
255 function KeyedWrite(span, sourceSpan, receiver, key, value) {
256 var _this = _super.call(this, span, sourceSpan) || this;
257 _this.receiver = receiver;
258 _this.key = key;
259 _this.value = value;
260 return _this;
261 }
262 KeyedWrite.prototype.visit = function (visitor, context) {
263 if (context === void 0) { context = null; }
264 return visitor.visitKeyedWrite(this, context);
265 };
266 return KeyedWrite;
267 }(AST));
268 exports.KeyedWrite = KeyedWrite;
269 var BindingPipe = /** @class */ (function (_super) {
270 tslib_1.__extends(BindingPipe, _super);
271 function BindingPipe(span, sourceSpan, exp, name, args, nameSpan) {
272 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
273 _this.exp = exp;
274 _this.name = name;
275 _this.args = args;
276 return _this;
277 }
278 BindingPipe.prototype.visit = function (visitor, context) {
279 if (context === void 0) { context = null; }
280 return visitor.visitPipe(this, context);
281 };
282 return BindingPipe;
283 }(ASTWithName));
284 exports.BindingPipe = BindingPipe;
285 var LiteralPrimitive = /** @class */ (function (_super) {
286 tslib_1.__extends(LiteralPrimitive, _super);
287 function LiteralPrimitive(span, sourceSpan, value) {
288 var _this = _super.call(this, span, sourceSpan) || this;
289 _this.value = value;
290 return _this;
291 }
292 LiteralPrimitive.prototype.visit = function (visitor, context) {
293 if (context === void 0) { context = null; }
294 return visitor.visitLiteralPrimitive(this, context);
295 };
296 return LiteralPrimitive;
297 }(AST));
298 exports.LiteralPrimitive = LiteralPrimitive;
299 var LiteralArray = /** @class */ (function (_super) {
300 tslib_1.__extends(LiteralArray, _super);
301 function LiteralArray(span, sourceSpan, expressions) {
302 var _this = _super.call(this, span, sourceSpan) || this;
303 _this.expressions = expressions;
304 return _this;
305 }
306 LiteralArray.prototype.visit = function (visitor, context) {
307 if (context === void 0) { context = null; }
308 return visitor.visitLiteralArray(this, context);
309 };
310 return LiteralArray;
311 }(AST));
312 exports.LiteralArray = LiteralArray;
313 var LiteralMap = /** @class */ (function (_super) {
314 tslib_1.__extends(LiteralMap, _super);
315 function LiteralMap(span, sourceSpan, keys, values) {
316 var _this = _super.call(this, span, sourceSpan) || this;
317 _this.keys = keys;
318 _this.values = values;
319 return _this;
320 }
321 LiteralMap.prototype.visit = function (visitor, context) {
322 if (context === void 0) { context = null; }
323 return visitor.visitLiteralMap(this, context);
324 };
325 return LiteralMap;
326 }(AST));
327 exports.LiteralMap = LiteralMap;
328 var Interpolation = /** @class */ (function (_super) {
329 tslib_1.__extends(Interpolation, _super);
330 function Interpolation(span, sourceSpan, strings, expressions) {
331 var _this = _super.call(this, span, sourceSpan) || this;
332 _this.strings = strings;
333 _this.expressions = expressions;
334 return _this;
335 }
336 Interpolation.prototype.visit = function (visitor, context) {
337 if (context === void 0) { context = null; }
338 return visitor.visitInterpolation(this, context);
339 };
340 return Interpolation;
341 }(AST));
342 exports.Interpolation = Interpolation;
343 var Binary = /** @class */ (function (_super) {
344 tslib_1.__extends(Binary, _super);
345 function Binary(span, sourceSpan, operation, left, right) {
346 var _this = _super.call(this, span, sourceSpan) || this;
347 _this.operation = operation;
348 _this.left = left;
349 _this.right = right;
350 return _this;
351 }
352 Binary.prototype.visit = function (visitor, context) {
353 if (context === void 0) { context = null; }
354 return visitor.visitBinary(this, context);
355 };
356 return Binary;
357 }(AST));
358 exports.Binary = Binary;
359 /**
360 * For backwards compatibility reasons, `Unary` inherits from `Binary` and mimics the binary AST
361 * node that was originally used. This inheritance relation can be deleted in some future major,
362 * after consumers have been given a chance to fully support Unary.
363 */
364 var Unary = /** @class */ (function (_super) {
365 tslib_1.__extends(Unary, _super);
366 /**
367 * During the deprecation period this constructor is private, to avoid consumers from creating
368 * a `Unary` with the fallback properties for `Binary`.
369 */
370 function Unary(span, sourceSpan, operator, expr, binaryOp, binaryLeft, binaryRight) {
371 var _this = _super.call(this, span, sourceSpan, binaryOp, binaryLeft, binaryRight) || this;
372 _this.operator = operator;
373 _this.expr = expr;
374 return _this;
375 }
376 /**
377 * Creates a unary minus expression "-x", represented as `Binary` using "0 - x".
378 */
379 Unary.createMinus = function (span, sourceSpan, expr) {
380 return new Unary(span, sourceSpan, '-', expr, '-', new LiteralPrimitive(span, sourceSpan, 0), expr);
381 };
382 /**
383 * Creates a unary plus expression "+x", represented as `Binary` using "x - 0".
384 */
385 Unary.createPlus = function (span, sourceSpan, expr) {
386 return new Unary(span, sourceSpan, '+', expr, '-', expr, new LiteralPrimitive(span, sourceSpan, 0));
387 };
388 Unary.prototype.visit = function (visitor, context) {
389 if (context === void 0) { context = null; }
390 if (visitor.visitUnary !== undefined) {
391 return visitor.visitUnary(this, context);
392 }
393 return visitor.visitBinary(this, context);
394 };
395 return Unary;
396 }(Binary));
397 exports.Unary = Unary;
398 var PrefixNot = /** @class */ (function (_super) {
399 tslib_1.__extends(PrefixNot, _super);
400 function PrefixNot(span, sourceSpan, expression) {
401 var _this = _super.call(this, span, sourceSpan) || this;
402 _this.expression = expression;
403 return _this;
404 }
405 PrefixNot.prototype.visit = function (visitor, context) {
406 if (context === void 0) { context = null; }
407 return visitor.visitPrefixNot(this, context);
408 };
409 return PrefixNot;
410 }(AST));
411 exports.PrefixNot = PrefixNot;
412 var NonNullAssert = /** @class */ (function (_super) {
413 tslib_1.__extends(NonNullAssert, _super);
414 function NonNullAssert(span, sourceSpan, expression) {
415 var _this = _super.call(this, span, sourceSpan) || this;
416 _this.expression = expression;
417 return _this;
418 }
419 NonNullAssert.prototype.visit = function (visitor, context) {
420 if (context === void 0) { context = null; }
421 return visitor.visitNonNullAssert(this, context);
422 };
423 return NonNullAssert;
424 }(AST));
425 exports.NonNullAssert = NonNullAssert;
426 var MethodCall = /** @class */ (function (_super) {
427 tslib_1.__extends(MethodCall, _super);
428 function MethodCall(span, sourceSpan, nameSpan, receiver, name, args, argumentSpan) {
429 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
430 _this.receiver = receiver;
431 _this.name = name;
432 _this.args = args;
433 _this.argumentSpan = argumentSpan;
434 return _this;
435 }
436 MethodCall.prototype.visit = function (visitor, context) {
437 if (context === void 0) { context = null; }
438 return visitor.visitMethodCall(this, context);
439 };
440 return MethodCall;
441 }(ASTWithName));
442 exports.MethodCall = MethodCall;
443 var SafeMethodCall = /** @class */ (function (_super) {
444 tslib_1.__extends(SafeMethodCall, _super);
445 function SafeMethodCall(span, sourceSpan, nameSpan, receiver, name, args, argumentSpan) {
446 var _this = _super.call(this, span, sourceSpan, nameSpan) || this;
447 _this.receiver = receiver;
448 _this.name = name;
449 _this.args = args;
450 _this.argumentSpan = argumentSpan;
451 return _this;
452 }
453 SafeMethodCall.prototype.visit = function (visitor, context) {
454 if (context === void 0) { context = null; }
455 return visitor.visitSafeMethodCall(this, context);
456 };
457 return SafeMethodCall;
458 }(ASTWithName));
459 exports.SafeMethodCall = SafeMethodCall;
460 var FunctionCall = /** @class */ (function (_super) {
461 tslib_1.__extends(FunctionCall, _super);
462 function FunctionCall(span, sourceSpan, target, args) {
463 var _this = _super.call(this, span, sourceSpan) || this;
464 _this.target = target;
465 _this.args = args;
466 return _this;
467 }
468 FunctionCall.prototype.visit = function (visitor, context) {
469 if (context === void 0) { context = null; }
470 return visitor.visitFunctionCall(this, context);
471 };
472 return FunctionCall;
473 }(AST));
474 exports.FunctionCall = FunctionCall;
475 /**
476 * Records the absolute position of a text span in a source file, where `start` and `end` are the
477 * starting and ending byte offsets, respectively, of the text span in a source file.
478 */
479 var AbsoluteSourceSpan = /** @class */ (function () {
480 function AbsoluteSourceSpan(start, end) {
481 this.start = start;
482 this.end = end;
483 }
484 return AbsoluteSourceSpan;
485 }());
486 exports.AbsoluteSourceSpan = AbsoluteSourceSpan;
487 var ASTWithSource = /** @class */ (function (_super) {
488 tslib_1.__extends(ASTWithSource, _super);
489 function ASTWithSource(ast, source, location, absoluteOffset, errors) {
490 var _this = _super.call(this, new ParseSpan(0, source === null ? 0 : source.length), new AbsoluteSourceSpan(absoluteOffset, source === null ? absoluteOffset : absoluteOffset + source.length)) || this;
491 _this.ast = ast;
492 _this.source = source;
493 _this.location = location;
494 _this.errors = errors;
495 return _this;
496 }
497 ASTWithSource.prototype.visit = function (visitor, context) {
498 if (context === void 0) { context = null; }
499 if (visitor.visitASTWithSource) {
500 return visitor.visitASTWithSource(this, context);
501 }
502 return this.ast.visit(visitor, context);
503 };
504 ASTWithSource.prototype.toString = function () {
505 return this.source + " in " + this.location;
506 };
507 return ASTWithSource;
508 }(AST));
509 exports.ASTWithSource = ASTWithSource;
510 var VariableBinding = /** @class */ (function () {
511 /**
512 * @param sourceSpan entire span of the binding.
513 * @param key name of the LHS along with its span.
514 * @param value optional value for the RHS along with its span.
515 */
516 function VariableBinding(sourceSpan, key, value) {
517 this.sourceSpan = sourceSpan;
518 this.key = key;
519 this.value = value;
520 }
521 return VariableBinding;
522 }());
523 exports.VariableBinding = VariableBinding;
524 var ExpressionBinding = /** @class */ (function () {
525 /**
526 * @param sourceSpan entire span of the binding.
527 * @param key binding name, like ngForOf, ngForTrackBy, ngIf, along with its
528 * span. Note that the length of the span may not be the same as
529 * `key.source.length`. For example,
530 * 1. key.source = ngFor, key.span is for "ngFor"
531 * 2. key.source = ngForOf, key.span is for "of"
532 * 3. key.source = ngForTrackBy, key.span is for "trackBy"
533 * @param value optional expression for the RHS.
534 */
535 function ExpressionBinding(sourceSpan, key, value) {
536 this.sourceSpan = sourceSpan;
537 this.key = key;
538 this.value = value;
539 }
540 return ExpressionBinding;
541 }());
542 exports.ExpressionBinding = ExpressionBinding;
543 var RecursiveAstVisitor = /** @class */ (function () {
544 function RecursiveAstVisitor() {
545 }
546 RecursiveAstVisitor.prototype.visit = function (ast, context) {
547 // The default implementation just visits every node.
548 // Classes that extend RecursiveAstVisitor should override this function
549 // to selectively visit the specified node.
550 ast.visit(this, context);
551 };
552 RecursiveAstVisitor.prototype.visitUnary = function (ast, context) {
553 this.visit(ast.expr, context);
554 };
555 RecursiveAstVisitor.prototype.visitBinary = function (ast, context) {
556 this.visit(ast.left, context);
557 this.visit(ast.right, context);
558 };
559 RecursiveAstVisitor.prototype.visitChain = function (ast, context) {
560 this.visitAll(ast.expressions, context);
561 };
562 RecursiveAstVisitor.prototype.visitConditional = function (ast, context) {
563 this.visit(ast.condition, context);
564 this.visit(ast.trueExp, context);
565 this.visit(ast.falseExp, context);
566 };
567 RecursiveAstVisitor.prototype.visitPipe = function (ast, context) {
568 this.visit(ast.exp, context);
569 this.visitAll(ast.args, context);
570 };
571 RecursiveAstVisitor.prototype.visitFunctionCall = function (ast, context) {
572 if (ast.target) {
573 this.visit(ast.target, context);
574 }
575 this.visitAll(ast.args, context);
576 };
577 RecursiveAstVisitor.prototype.visitImplicitReceiver = function (ast, context) { };
578 RecursiveAstVisitor.prototype.visitThisReceiver = function (ast, context) { };
579 RecursiveAstVisitor.prototype.visitInterpolation = function (ast, context) {
580 this.visitAll(ast.expressions, context);
581 };
582 RecursiveAstVisitor.prototype.visitKeyedRead = function (ast, context) {
583 this.visit(ast.receiver, context);
584 this.visit(ast.key, context);
585 };
586 RecursiveAstVisitor.prototype.visitKeyedWrite = function (ast, context) {
587 this.visit(ast.receiver, context);
588 this.visit(ast.key, context);
589 this.visit(ast.value, context);
590 };
591 RecursiveAstVisitor.prototype.visitLiteralArray = function (ast, context) {
592 this.visitAll(ast.expressions, context);
593 };
594 RecursiveAstVisitor.prototype.visitLiteralMap = function (ast, context) {
595 this.visitAll(ast.values, context);
596 };
597 RecursiveAstVisitor.prototype.visitLiteralPrimitive = function (ast, context) { };
598 RecursiveAstVisitor.prototype.visitMethodCall = function (ast, context) {
599 this.visit(ast.receiver, context);
600 this.visitAll(ast.args, context);
601 };
602 RecursiveAstVisitor.prototype.visitPrefixNot = function (ast, context) {
603 this.visit(ast.expression, context);
604 };
605 RecursiveAstVisitor.prototype.visitNonNullAssert = function (ast, context) {
606 this.visit(ast.expression, context);
607 };
608 RecursiveAstVisitor.prototype.visitPropertyRead = function (ast, context) {
609 this.visit(ast.receiver, context);
610 };
611 RecursiveAstVisitor.prototype.visitPropertyWrite = function (ast, context) {
612 this.visit(ast.receiver, context);
613 this.visit(ast.value, context);
614 };
615 RecursiveAstVisitor.prototype.visitSafePropertyRead = function (ast, context) {
616 this.visit(ast.receiver, context);
617 };
618 RecursiveAstVisitor.prototype.visitSafeMethodCall = function (ast, context) {
619 this.visit(ast.receiver, context);
620 this.visitAll(ast.args, context);
621 };
622 RecursiveAstVisitor.prototype.visitSafeKeyedRead = function (ast, context) {
623 this.visit(ast.receiver, context);
624 this.visit(ast.key, context);
625 };
626 RecursiveAstVisitor.prototype.visitQuote = function (ast, context) { };
627 // This is not part of the AstVisitor interface, just a helper method
628 RecursiveAstVisitor.prototype.visitAll = function (asts, context) {
629 var e_1, _a;
630 try {
631 for (var asts_1 = tslib_1.__values(asts), asts_1_1 = asts_1.next(); !asts_1_1.done; asts_1_1 = asts_1.next()) {
632 var ast = asts_1_1.value;
633 this.visit(ast, context);
634 }
635 }
636 catch (e_1_1) { e_1 = { error: e_1_1 }; }
637 finally {
638 try {
639 if (asts_1_1 && !asts_1_1.done && (_a = asts_1.return)) _a.call(asts_1);
640 }
641 finally { if (e_1) throw e_1.error; }
642 }
643 };
644 return RecursiveAstVisitor;
645 }());
646 exports.RecursiveAstVisitor = RecursiveAstVisitor;
647 var AstTransformer = /** @class */ (function () {
648 function AstTransformer() {
649 }
650 AstTransformer.prototype.visitImplicitReceiver = function (ast, context) {
651 return ast;
652 };
653 AstTransformer.prototype.visitThisReceiver = function (ast, context) {
654 return ast;
655 };
656 AstTransformer.prototype.visitInterpolation = function (ast, context) {
657 return new Interpolation(ast.span, ast.sourceSpan, ast.strings, this.visitAll(ast.expressions));
658 };
659 AstTransformer.prototype.visitLiteralPrimitive = function (ast, context) {
660 return new LiteralPrimitive(ast.span, ast.sourceSpan, ast.value);
661 };
662 AstTransformer.prototype.visitPropertyRead = function (ast, context) {
663 return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
664 };
665 AstTransformer.prototype.visitPropertyWrite = function (ast, context) {
666 return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, ast.value.visit(this));
667 };
668 AstTransformer.prototype.visitSafePropertyRead = function (ast, context) {
669 return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
670 };
671 AstTransformer.prototype.visitMethodCall = function (ast, context) {
672 return new MethodCall(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, this.visitAll(ast.args), ast.argumentSpan);
673 };
674 AstTransformer.prototype.visitSafeMethodCall = function (ast, context) {
675 return new SafeMethodCall(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, this.visitAll(ast.args), ast.argumentSpan);
676 };
677 AstTransformer.prototype.visitFunctionCall = function (ast, context) {
678 return new FunctionCall(ast.span, ast.sourceSpan, ast.target.visit(this), this.visitAll(ast.args));
679 };
680 AstTransformer.prototype.visitLiteralArray = function (ast, context) {
681 return new LiteralArray(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
682 };
683 AstTransformer.prototype.visitLiteralMap = function (ast, context) {
684 return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, this.visitAll(ast.values));
685 };
686 AstTransformer.prototype.visitUnary = function (ast, context) {
687 switch (ast.operator) {
688 case '+':
689 return Unary.createPlus(ast.span, ast.sourceSpan, ast.expr.visit(this));
690 case '-':
691 return Unary.createMinus(ast.span, ast.sourceSpan, ast.expr.visit(this));
692 default:
693 throw new Error("Unknown unary operator " + ast.operator);
694 }
695 };
696 AstTransformer.prototype.visitBinary = function (ast, context) {
697 return new Binary(ast.span, ast.sourceSpan, ast.operation, ast.left.visit(this), ast.right.visit(this));
698 };
699 AstTransformer.prototype.visitPrefixNot = function (ast, context) {
700 return new PrefixNot(ast.span, ast.sourceSpan, ast.expression.visit(this));
701 };
702 AstTransformer.prototype.visitNonNullAssert = function (ast, context) {
703 return new NonNullAssert(ast.span, ast.sourceSpan, ast.expression.visit(this));
704 };
705 AstTransformer.prototype.visitConditional = function (ast, context) {
706 return new Conditional(ast.span, ast.sourceSpan, ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));
707 };
708 AstTransformer.prototype.visitPipe = function (ast, context) {
709 return new BindingPipe(ast.span, ast.sourceSpan, ast.exp.visit(this), ast.name, this.visitAll(ast.args), ast.nameSpan);
710 };
711 AstTransformer.prototype.visitKeyedRead = function (ast, context) {
712 return new KeyedRead(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));
713 };
714 AstTransformer.prototype.visitKeyedWrite = function (ast, context) {
715 return new KeyedWrite(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this), ast.value.visit(this));
716 };
717 AstTransformer.prototype.visitAll = function (asts) {
718 var res = [];
719 for (var i = 0; i < asts.length; ++i) {
720 res[i] = asts[i].visit(this);
721 }
722 return res;
723 };
724 AstTransformer.prototype.visitChain = function (ast, context) {
725 return new Chain(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
726 };
727 AstTransformer.prototype.visitQuote = function (ast, context) {
728 return new Quote(ast.span, ast.sourceSpan, ast.prefix, ast.uninterpretedExpression, ast.location);
729 };
730 AstTransformer.prototype.visitSafeKeyedRead = function (ast, context) {
731 return new SafeKeyedRead(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));
732 };
733 return AstTransformer;
734 }());
735 exports.AstTransformer = AstTransformer;
736 // A transformer that only creates new nodes if the transformer makes a change or
737 // a change is made a child node.
738 var AstMemoryEfficientTransformer = /** @class */ (function () {
739 function AstMemoryEfficientTransformer() {
740 }
741 AstMemoryEfficientTransformer.prototype.visitImplicitReceiver = function (ast, context) {
742 return ast;
743 };
744 AstMemoryEfficientTransformer.prototype.visitThisReceiver = function (ast, context) {
745 return ast;
746 };
747 AstMemoryEfficientTransformer.prototype.visitInterpolation = function (ast, context) {
748 var expressions = this.visitAll(ast.expressions);
749 if (expressions !== ast.expressions)
750 return new Interpolation(ast.span, ast.sourceSpan, ast.strings, expressions);
751 return ast;
752 };
753 AstMemoryEfficientTransformer.prototype.visitLiteralPrimitive = function (ast, context) {
754 return ast;
755 };
756 AstMemoryEfficientTransformer.prototype.visitPropertyRead = function (ast, context) {
757 var receiver = ast.receiver.visit(this);
758 if (receiver !== ast.receiver) {
759 return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
760 }
761 return ast;
762 };
763 AstMemoryEfficientTransformer.prototype.visitPropertyWrite = function (ast, context) {
764 var receiver = ast.receiver.visit(this);
765 var value = ast.value.visit(this);
766 if (receiver !== ast.receiver || value !== ast.value) {
767 return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, value);
768 }
769 return ast;
770 };
771 AstMemoryEfficientTransformer.prototype.visitSafePropertyRead = function (ast, context) {
772 var receiver = ast.receiver.visit(this);
773 if (receiver !== ast.receiver) {
774 return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
775 }
776 return ast;
777 };
778 AstMemoryEfficientTransformer.prototype.visitMethodCall = function (ast, context) {
779 var receiver = ast.receiver.visit(this);
780 var args = this.visitAll(ast.args);
781 if (receiver !== ast.receiver || args !== ast.args) {
782 return new MethodCall(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, args, ast.argumentSpan);
783 }
784 return ast;
785 };
786 AstMemoryEfficientTransformer.prototype.visitSafeMethodCall = function (ast, context) {
787 var receiver = ast.receiver.visit(this);
788 var args = this.visitAll(ast.args);
789 if (receiver !== ast.receiver || args !== ast.args) {
790 return new SafeMethodCall(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, args, ast.argumentSpan);
791 }
792 return ast;
793 };
794 AstMemoryEfficientTransformer.prototype.visitFunctionCall = function (ast, context) {
795 var target = ast.target && ast.target.visit(this);
796 var args = this.visitAll(ast.args);
797 if (target !== ast.target || args !== ast.args) {
798 return new FunctionCall(ast.span, ast.sourceSpan, target, args);
799 }
800 return ast;
801 };
802 AstMemoryEfficientTransformer.prototype.visitLiteralArray = function (ast, context) {
803 var expressions = this.visitAll(ast.expressions);
804 if (expressions !== ast.expressions) {
805 return new LiteralArray(ast.span, ast.sourceSpan, expressions);
806 }
807 return ast;
808 };
809 AstMemoryEfficientTransformer.prototype.visitLiteralMap = function (ast, context) {
810 var values = this.visitAll(ast.values);
811 if (values !== ast.values) {
812 return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, values);
813 }
814 return ast;
815 };
816 AstMemoryEfficientTransformer.prototype.visitUnary = function (ast, context) {
817 var expr = ast.expr.visit(this);
818 if (expr !== ast.expr) {
819 switch (ast.operator) {
820 case '+':
821 return Unary.createPlus(ast.span, ast.sourceSpan, expr);
822 case '-':
823 return Unary.createMinus(ast.span, ast.sourceSpan, expr);
824 default:
825 throw new Error("Unknown unary operator " + ast.operator);
826 }
827 }
828 return ast;
829 };
830 AstMemoryEfficientTransformer.prototype.visitBinary = function (ast, context) {
831 var left = ast.left.visit(this);
832 var right = ast.right.visit(this);
833 if (left !== ast.left || right !== ast.right) {
834 return new Binary(ast.span, ast.sourceSpan, ast.operation, left, right);
835 }
836 return ast;
837 };
838 AstMemoryEfficientTransformer.prototype.visitPrefixNot = function (ast, context) {
839 var expression = ast.expression.visit(this);
840 if (expression !== ast.expression) {
841 return new PrefixNot(ast.span, ast.sourceSpan, expression);
842 }
843 return ast;
844 };
845 AstMemoryEfficientTransformer.prototype.visitNonNullAssert = function (ast, context) {
846 var expression = ast.expression.visit(this);
847 if (expression !== ast.expression) {
848 return new NonNullAssert(ast.span, ast.sourceSpan, expression);
849 }
850 return ast;
851 };
852 AstMemoryEfficientTransformer.prototype.visitConditional = function (ast, context) {
853 var condition = ast.condition.visit(this);
854 var trueExp = ast.trueExp.visit(this);
855 var falseExp = ast.falseExp.visit(this);
856 if (condition !== ast.condition || trueExp !== ast.trueExp || falseExp !== ast.falseExp) {
857 return new Conditional(ast.span, ast.sourceSpan, condition, trueExp, falseExp);
858 }
859 return ast;
860 };
861 AstMemoryEfficientTransformer.prototype.visitPipe = function (ast, context) {
862 var exp = ast.exp.visit(this);
863 var args = this.visitAll(ast.args);
864 if (exp !== ast.exp || args !== ast.args) {
865 return new BindingPipe(ast.span, ast.sourceSpan, exp, ast.name, args, ast.nameSpan);
866 }
867 return ast;
868 };
869 AstMemoryEfficientTransformer.prototype.visitKeyedRead = function (ast, context) {
870 var obj = ast.receiver.visit(this);
871 var key = ast.key.visit(this);
872 if (obj !== ast.receiver || key !== ast.key) {
873 return new KeyedRead(ast.span, ast.sourceSpan, obj, key);
874 }
875 return ast;
876 };
877 AstMemoryEfficientTransformer.prototype.visitKeyedWrite = function (ast, context) {
878 var obj = ast.receiver.visit(this);
879 var key = ast.key.visit(this);
880 var value = ast.value.visit(this);
881 if (obj !== ast.receiver || key !== ast.key || value !== ast.value) {
882 return new KeyedWrite(ast.span, ast.sourceSpan, obj, key, value);
883 }
884 return ast;
885 };
886 AstMemoryEfficientTransformer.prototype.visitAll = function (asts) {
887 var res = [];
888 var modified = false;
889 for (var i = 0; i < asts.length; ++i) {
890 var original = asts[i];
891 var value = original.visit(this);
892 res[i] = value;
893 modified = modified || value !== original;
894 }
895 return modified ? res : asts;
896 };
897 AstMemoryEfficientTransformer.prototype.visitChain = function (ast, context) {
898 var expressions = this.visitAll(ast.expressions);
899 if (expressions !== ast.expressions) {
900 return new Chain(ast.span, ast.sourceSpan, expressions);
901 }
902 return ast;
903 };
904 AstMemoryEfficientTransformer.prototype.visitQuote = function (ast, context) {
905 return ast;
906 };
907 AstMemoryEfficientTransformer.prototype.visitSafeKeyedRead = function (ast, context) {
908 var obj = ast.receiver.visit(this);
909 var key = ast.key.visit(this);
910 if (obj !== ast.receiver || key !== ast.key) {
911 return new SafeKeyedRead(ast.span, ast.sourceSpan, obj, key);
912 }
913 return ast;
914 };
915 return AstMemoryEfficientTransformer;
916 }());
917 exports.AstMemoryEfficientTransformer = AstMemoryEfficientTransformer;
918 // Bindings
919 var ParsedProperty = /** @class */ (function () {
920 function ParsedProperty(name, expression, type,
921 // TODO(FW-2095): `keySpan` should really be required but allows `undefined` so VE does
922 // not need to be updated. Make `keySpan` required when VE is removed.
923 sourceSpan, keySpan, valueSpan) {
924 this.name = name;
925 this.expression = expression;
926 this.type = type;
927 this.sourceSpan = sourceSpan;
928 this.keySpan = keySpan;
929 this.valueSpan = valueSpan;
930 this.isLiteral = this.type === ParsedPropertyType.LITERAL_ATTR;
931 this.isAnimation = this.type === ParsedPropertyType.ANIMATION;
932 }
933 return ParsedProperty;
934 }());
935 exports.ParsedProperty = ParsedProperty;
936 var ParsedPropertyType;
937 (function (ParsedPropertyType) {
938 ParsedPropertyType[ParsedPropertyType["DEFAULT"] = 0] = "DEFAULT";
939 ParsedPropertyType[ParsedPropertyType["LITERAL_ATTR"] = 1] = "LITERAL_ATTR";
940 ParsedPropertyType[ParsedPropertyType["ANIMATION"] = 2] = "ANIMATION";
941 })(ParsedPropertyType = exports.ParsedPropertyType || (exports.ParsedPropertyType = {}));
942 var ParsedEvent = /** @class */ (function () {
943 // Regular events have a target
944 // Animation events have a phase
945 function ParsedEvent(name, targetOrPhase, type, handler, sourceSpan,
946 // TODO(FW-2095): keySpan should be required but was made optional to avoid changing VE
947 handlerSpan, keySpan) {
948 this.name = name;
949 this.targetOrPhase = targetOrPhase;
950 this.type = type;
951 this.handler = handler;
952 this.sourceSpan = sourceSpan;
953 this.handlerSpan = handlerSpan;
954 this.keySpan = keySpan;
955 }
956 return ParsedEvent;
957 }());
958 exports.ParsedEvent = ParsedEvent;
959 /**
960 * ParsedVariable represents a variable declaration in a microsyntax expression.
961 */
962 var ParsedVariable = /** @class */ (function () {
963 function ParsedVariable(name, value, sourceSpan, keySpan, valueSpan) {
964 this.name = name;
965 this.value = value;
966 this.sourceSpan = sourceSpan;
967 this.keySpan = keySpan;
968 this.valueSpan = valueSpan;
969 }
970 return ParsedVariable;
971 }());
972 exports.ParsedVariable = ParsedVariable;
973 var BoundElementProperty = /** @class */ (function () {
974 function BoundElementProperty(name, type, securityContext, value, unit, sourceSpan, keySpan, valueSpan) {
975 this.name = name;
976 this.type = type;
977 this.securityContext = securityContext;
978 this.value = value;
979 this.unit = unit;
980 this.sourceSpan = sourceSpan;
981 this.keySpan = keySpan;
982 this.valueSpan = valueSpan;
983 }
984 return BoundElementProperty;
985 }());
986 exports.BoundElementProperty = BoundElementProperty;
987});
988//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXIvc3JjL2V4cHJlc3Npb25fcGFyc2VyL2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7Ozs7Ozs7Ozs7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