@auscope/angular2parse 4.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +49 -49
  2. package/{esm2020 → esm2022}/auscope-angular2parse.mjs +4 -4
  3. package/esm2022/lib/angular/compiler/assertions.mjs +45 -0
  4. package/{esm2020 → esm2022}/lib/angular/compiler/ast.mjs +393 -393
  5. package/{esm2020 → esm2022}/lib/angular/compiler/chars.mjs +78 -78
  6. package/esm2022/lib/angular/compiler/interpolation-config.mjs +24 -0
  7. package/esm2022/lib/angular/compiler/lexer.mjs +344 -0
  8. package/esm2022/lib/angular/compiler/parser.mjs +721 -0
  9. package/{esm2020 → esm2022}/lib/angular/compiler.mjs +7 -7
  10. package/esm2022/lib/angular/facade/lang.mjs +85 -0
  11. package/{esm2020 → esm2022}/lib/angular/facade.mjs +1 -1
  12. package/{esm2020 → esm2022}/lib/angular.mjs +3 -3
  13. package/esm2022/lib/module.mjs +18 -0
  14. package/esm2022/lib/parse.mjs +66 -0
  15. package/{esm2020 → esm2022}/lib/util/binary-operations.mjs +18 -18
  16. package/{esm2020 → esm2022}/lib/util/lang.mjs +13 -13
  17. package/{esm2020 → esm2022}/lib/util.mjs +3 -3
  18. package/esm2022/lib/visitors/parse-visitor-compiler.mjs +96 -0
  19. package/esm2022/lib/visitors/parse-visitor-resolver.mjs +141 -0
  20. package/{esm2020 → esm2022}/lib/visitors.mjs +3 -3
  21. package/{esm2020 → esm2022}/public-api.mjs +6 -6
  22. package/{fesm2020 → fesm2022}/auscope-angular2parse.mjs +1999 -1999
  23. package/fesm2022/auscope-angular2parse.mjs.map +1 -0
  24. package/index.d.ts +5 -5
  25. package/lib/angular/compiler/assertions.d.ts +9 -9
  26. package/lib/angular/compiler/ast.d.ts +242 -242
  27. package/lib/angular/compiler/chars.d.ts +69 -69
  28. package/lib/angular/compiler/interpolation-config.d.ts +14 -14
  29. package/lib/angular/compiler/lexer.d.ts +44 -44
  30. package/lib/angular/compiler/parser.d.ts +92 -92
  31. package/lib/angular/compiler.d.ts +6 -6
  32. package/lib/angular/facade/lang.d.ts +44 -44
  33. package/lib/angular/facade.d.ts +1 -1
  34. package/lib/angular.d.ts +2 -2
  35. package/lib/module.d.ts +9 -9
  36. package/lib/parse.d.ts +21 -21
  37. package/lib/util/binary-operations.d.ts +1 -1
  38. package/lib/util/lang.d.ts +4 -4
  39. package/lib/util.d.ts +2 -2
  40. package/lib/visitors/parse-visitor-compiler.d.ts +23 -23
  41. package/lib/visitors/parse-visitor-resolver.d.ts +25 -25
  42. package/lib/visitors.d.ts +2 -2
  43. package/package.json +9 -14
  44. package/public-api.d.ts +2 -2
  45. package/esm2020/lib/angular/compiler/assertions.mjs +0 -45
  46. package/esm2020/lib/angular/compiler/interpolation-config.mjs +0 -24
  47. package/esm2020/lib/angular/compiler/lexer.mjs +0 -344
  48. package/esm2020/lib/angular/compiler/parser.mjs +0 -721
  49. package/esm2020/lib/angular/facade/lang.mjs +0 -85
  50. package/esm2020/lib/module.mjs +0 -18
  51. package/esm2020/lib/parse.mjs +0 -66
  52. package/esm2020/lib/visitors/parse-visitor-compiler.mjs +0 -96
  53. package/esm2020/lib/visitors/parse-visitor-resolver.mjs +0 -141
  54. package/fesm2015/auscope-angular2parse.mjs +0 -2035
  55. package/fesm2015/auscope-angular2parse.mjs.map +0 -1
  56. package/fesm2020/auscope-angular2parse.mjs.map +0 -1
@@ -1,242 +1,242 @@
1
- /**
2
- * @license
3
- * Copyright Google Inc. 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
- export declare class ParserError {
9
- input: string;
10
- errLocation: string;
11
- ctxLocation?: any;
12
- message: string;
13
- constructor(message: string, input: string, errLocation: string, ctxLocation?: any);
14
- }
15
- export declare class ParseSpan {
16
- start: number;
17
- end: number;
18
- constructor(start: number, end: number);
19
- }
20
- export declare class AST {
21
- span: ParseSpan;
22
- constructor(span: ParseSpan);
23
- visit(visitor: AstVisitor, context?: any): any;
24
- toString(): string;
25
- }
26
- /**
27
- * Represents a quoted expression of the form:
28
- *
29
- * quote = prefix `:` uninterpretedExpression
30
- * prefix = identifier
31
- * uninterpretedExpression = arbitrary string
32
- *
33
- * A quoted expression is meant to be pre-processed by an AST transformer that
34
- * converts it into another AST that no longer contains quoted expressions.
35
- * It is meant to allow third-party developers to extend Angular template
36
- * expression language. The `uninterpretedExpression` part of the quote is
37
- * therefore not interpreted by the Angular's own expression parser.
38
- */
39
- export declare class Quote extends AST {
40
- prefix: string;
41
- uninterpretedExpression: string;
42
- location: any;
43
- constructor(span: ParseSpan, prefix: string, uninterpretedExpression: string, location: any);
44
- visit(visitor: AstVisitor, context?: any): any;
45
- toString(): string;
46
- }
47
- export declare class EmptyExpr extends AST {
48
- visit(visitor: AstVisitor, context?: any): void;
49
- }
50
- export declare class ImplicitReceiver extends AST {
51
- visit(visitor: AstVisitor, context?: any): any;
52
- }
53
- /**
54
- * Multiple expressions separated by a semicolon.
55
- */
56
- export declare class Chain extends AST {
57
- expressions: any[];
58
- constructor(span: ParseSpan, expressions: any[]);
59
- visit(visitor: AstVisitor, context?: any): any;
60
- }
61
- export declare class Conditional extends AST {
62
- condition: AST;
63
- trueExp: AST;
64
- falseExp: AST;
65
- constructor(span: ParseSpan, condition: AST, trueExp: AST, falseExp: AST);
66
- visit(visitor: AstVisitor, context?: any): any;
67
- }
68
- export declare class PropertyRead extends AST {
69
- receiver: AST;
70
- name: string;
71
- constructor(span: ParseSpan, receiver: AST, name: string);
72
- visit(visitor: AstVisitor, context?: any): any;
73
- }
74
- export declare class PropertyWrite extends AST {
75
- receiver: AST;
76
- name: string;
77
- value: AST;
78
- constructor(span: ParseSpan, receiver: AST, name: string, value: AST);
79
- visit(visitor: AstVisitor, context?: any): any;
80
- }
81
- export declare class SafePropertyRead extends AST {
82
- receiver: AST;
83
- name: string;
84
- constructor(span: ParseSpan, receiver: AST, name: string);
85
- visit(visitor: AstVisitor, context?: any): any;
86
- }
87
- export declare class KeyedRead extends AST {
88
- obj: AST;
89
- key: AST;
90
- constructor(span: ParseSpan, obj: AST, key: AST);
91
- visit(visitor: AstVisitor, context?: any): any;
92
- }
93
- export declare class KeyedWrite extends AST {
94
- obj: AST;
95
- key: AST;
96
- value: AST;
97
- constructor(span: ParseSpan, obj: AST, key: AST, value: AST);
98
- visit(visitor: AstVisitor, context?: any): any;
99
- }
100
- export declare class BindingPipe extends AST {
101
- exp: AST;
102
- name: string;
103
- args: any[];
104
- constructor(span: ParseSpan, exp: AST, name: string, args: any[]);
105
- visit(visitor: AstVisitor, context?: any): any;
106
- }
107
- export declare class LiteralPrimitive extends AST {
108
- value: any;
109
- constructor(span: ParseSpan, value: any);
110
- visit(visitor: AstVisitor, context?: any): any;
111
- }
112
- export declare class LiteralArray extends AST {
113
- expressions: any[];
114
- constructor(span: ParseSpan, expressions: any[]);
115
- visit(visitor: AstVisitor, context?: any): any;
116
- }
117
- export declare class LiteralMap extends AST {
118
- keys: any[];
119
- values: any[];
120
- constructor(span: ParseSpan, keys: any[], values: any[]);
121
- visit(visitor: AstVisitor, context?: any): any;
122
- }
123
- export declare class Interpolation extends AST {
124
- strings: any[];
125
- expressions: any[];
126
- constructor(span: ParseSpan, strings: any[], expressions: any[]);
127
- visit(visitor: AstVisitor, context?: any): any;
128
- }
129
- export declare class Binary extends AST {
130
- operation: string;
131
- left: AST;
132
- right: AST;
133
- constructor(span: ParseSpan, operation: string, left: AST, right: AST);
134
- visit(visitor: AstVisitor, context?: any): any;
135
- }
136
- export declare class PrefixNot extends AST {
137
- expression: AST;
138
- constructor(span: ParseSpan, expression: AST);
139
- visit(visitor: AstVisitor, context?: any): any;
140
- }
141
- export declare class MethodCall extends AST {
142
- receiver: AST;
143
- name: string;
144
- args: any[];
145
- constructor(span: ParseSpan, receiver: AST, name: string, args: any[]);
146
- visit(visitor: AstVisitor, context?: any): any;
147
- }
148
- export declare class SafeMethodCall extends AST {
149
- receiver: AST;
150
- name: string;
151
- args: any[];
152
- constructor(span: ParseSpan, receiver: AST, name: string, args: any[]);
153
- visit(visitor: AstVisitor, context?: any): any;
154
- }
155
- export declare class FunctionCall extends AST {
156
- target: AST;
157
- args: any[];
158
- constructor(span: ParseSpan, target: AST, args: any[]);
159
- visit(visitor: AstVisitor, context?: any): any;
160
- }
161
- export declare class ASTWithSource extends AST {
162
- ast: AST;
163
- source: string;
164
- location: string;
165
- errors: ParserError[];
166
- constructor(ast: AST, source: string, location: string, errors: ParserError[]);
167
- visit(visitor: AstVisitor, context?: any): any;
168
- toString(): string;
169
- }
170
- export declare class TemplateBinding {
171
- span: ParseSpan;
172
- key: string;
173
- keyIsVar: boolean;
174
- name: string;
175
- expression: ASTWithSource;
176
- constructor(span: ParseSpan, key: string, keyIsVar: boolean, name: string, expression: ASTWithSource);
177
- }
178
- export interface AstVisitor {
179
- visitBinary(ast: Binary, context: any): any;
180
- visitChain(ast: Chain, context: any): any;
181
- visitConditional(ast: Conditional, context: any): any;
182
- visitFunctionCall(ast: FunctionCall, context: any): any;
183
- visitImplicitReceiver(ast: ImplicitReceiver, context: any): any;
184
- visitInterpolation(ast: Interpolation, context: any): any;
185
- visitKeyedRead(ast: KeyedRead, context: any): any;
186
- visitKeyedWrite(ast: KeyedWrite, context: any): any;
187
- visitLiteralArray(ast: LiteralArray, context: any): any;
188
- visitLiteralMap(ast: LiteralMap, context: any): any;
189
- visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
190
- visitMethodCall(ast: MethodCall, context: any): any;
191
- visitPipe(ast: BindingPipe, context: any): any;
192
- visitPrefixNot(ast: PrefixNot, context: any): any;
193
- visitPropertyRead(ast: PropertyRead, context: any): any;
194
- visitPropertyWrite(ast: PropertyWrite, context: any): any;
195
- visitQuote(ast: Quote, context: any): any;
196
- visitSafeMethodCall(ast: SafeMethodCall, context: any): any;
197
- visitSafePropertyRead(ast: SafePropertyRead, context: any): any;
198
- }
199
- export declare class RecursiveAstVisitor implements AstVisitor {
200
- visitBinary(ast: Binary, context: any): any;
201
- visitChain(ast: Chain, context: any): any;
202
- visitConditional(ast: Conditional, context: any): any;
203
- visitPipe(ast: BindingPipe, context: any): any;
204
- visitFunctionCall(ast: FunctionCall, context: any): any;
205
- visitImplicitReceiver(ast: ImplicitReceiver, context: any): any;
206
- visitInterpolation(ast: Interpolation, context: any): any;
207
- visitKeyedRead(ast: KeyedRead, context: any): any;
208
- visitKeyedWrite(ast: KeyedWrite, context: any): any;
209
- visitLiteralArray(ast: LiteralArray, context: any): any;
210
- visitLiteralMap(ast: LiteralMap, context: any): any;
211
- visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
212
- visitMethodCall(ast: MethodCall, context: any): any;
213
- visitPrefixNot(ast: PrefixNot, context: any): any;
214
- visitPropertyRead(ast: PropertyRead, context: any): any;
215
- visitPropertyWrite(ast: PropertyWrite, context: any): any;
216
- visitSafePropertyRead(ast: SafePropertyRead, context: any): any;
217
- visitSafeMethodCall(ast: SafeMethodCall, context: any): any;
218
- visitAll(asts: AST[], context: any): any;
219
- visitQuote(ast: Quote, context: any): any;
220
- }
221
- export declare class AstTransformer implements AstVisitor {
222
- visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST;
223
- visitInterpolation(ast: Interpolation, context: any): AST;
224
- visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST;
225
- visitPropertyRead(ast: PropertyRead, context: any): AST;
226
- visitPropertyWrite(ast: PropertyWrite, context: any): AST;
227
- visitSafePropertyRead(ast: SafePropertyRead, context: any): AST;
228
- visitMethodCall(ast: MethodCall, context: any): AST;
229
- visitSafeMethodCall(ast: SafeMethodCall, context: any): AST;
230
- visitFunctionCall(ast: FunctionCall, context: any): AST;
231
- visitLiteralArray(ast: LiteralArray, context: any): AST;
232
- visitLiteralMap(ast: LiteralMap, context: any): AST;
233
- visitBinary(ast: Binary, context: any): AST;
234
- visitPrefixNot(ast: PrefixNot, context: any): AST;
235
- visitConditional(ast: Conditional, context: any): AST;
236
- visitPipe(ast: BindingPipe, context: any): AST;
237
- visitKeyedRead(ast: KeyedRead, context: any): AST;
238
- visitKeyedWrite(ast: KeyedWrite, context: any): AST;
239
- visitAll(asts: any[]): any[];
240
- visitChain(ast: Chain, context: any): AST;
241
- visitQuote(ast: Quote, context: any): AST;
242
- }
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. 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
+ export declare class ParserError {
9
+ input: string;
10
+ errLocation: string;
11
+ ctxLocation?: any;
12
+ message: string;
13
+ constructor(message: string, input: string, errLocation: string, ctxLocation?: any);
14
+ }
15
+ export declare class ParseSpan {
16
+ start: number;
17
+ end: number;
18
+ constructor(start: number, end: number);
19
+ }
20
+ export declare class AST {
21
+ span: ParseSpan;
22
+ constructor(span: ParseSpan);
23
+ visit(visitor: AstVisitor, context?: any): any;
24
+ toString(): string;
25
+ }
26
+ /**
27
+ * Represents a quoted expression of the form:
28
+ *
29
+ * quote = prefix `:` uninterpretedExpression
30
+ * prefix = identifier
31
+ * uninterpretedExpression = arbitrary string
32
+ *
33
+ * A quoted expression is meant to be pre-processed by an AST transformer that
34
+ * converts it into another AST that no longer contains quoted expressions.
35
+ * It is meant to allow third-party developers to extend Angular template
36
+ * expression language. The `uninterpretedExpression` part of the quote is
37
+ * therefore not interpreted by the Angular's own expression parser.
38
+ */
39
+ export declare class Quote extends AST {
40
+ prefix: string;
41
+ uninterpretedExpression: string;
42
+ location: any;
43
+ constructor(span: ParseSpan, prefix: string, uninterpretedExpression: string, location: any);
44
+ visit(visitor: AstVisitor, context?: any): any;
45
+ toString(): string;
46
+ }
47
+ export declare class EmptyExpr extends AST {
48
+ visit(visitor: AstVisitor, context?: any): void;
49
+ }
50
+ export declare class ImplicitReceiver extends AST {
51
+ visit(visitor: AstVisitor, context?: any): any;
52
+ }
53
+ /**
54
+ * Multiple expressions separated by a semicolon.
55
+ */
56
+ export declare class Chain extends AST {
57
+ expressions: any[];
58
+ constructor(span: ParseSpan, expressions: any[]);
59
+ visit(visitor: AstVisitor, context?: any): any;
60
+ }
61
+ export declare class Conditional extends AST {
62
+ condition: AST;
63
+ trueExp: AST;
64
+ falseExp: AST;
65
+ constructor(span: ParseSpan, condition: AST, trueExp: AST, falseExp: AST);
66
+ visit(visitor: AstVisitor, context?: any): any;
67
+ }
68
+ export declare class PropertyRead extends AST {
69
+ receiver: AST;
70
+ name: string;
71
+ constructor(span: ParseSpan, receiver: AST, name: string);
72
+ visit(visitor: AstVisitor, context?: any): any;
73
+ }
74
+ export declare class PropertyWrite extends AST {
75
+ receiver: AST;
76
+ name: string;
77
+ value: AST;
78
+ constructor(span: ParseSpan, receiver: AST, name: string, value: AST);
79
+ visit(visitor: AstVisitor, context?: any): any;
80
+ }
81
+ export declare class SafePropertyRead extends AST {
82
+ receiver: AST;
83
+ name: string;
84
+ constructor(span: ParseSpan, receiver: AST, name: string);
85
+ visit(visitor: AstVisitor, context?: any): any;
86
+ }
87
+ export declare class KeyedRead extends AST {
88
+ obj: AST;
89
+ key: AST;
90
+ constructor(span: ParseSpan, obj: AST, key: AST);
91
+ visit(visitor: AstVisitor, context?: any): any;
92
+ }
93
+ export declare class KeyedWrite extends AST {
94
+ obj: AST;
95
+ key: AST;
96
+ value: AST;
97
+ constructor(span: ParseSpan, obj: AST, key: AST, value: AST);
98
+ visit(visitor: AstVisitor, context?: any): any;
99
+ }
100
+ export declare class BindingPipe extends AST {
101
+ exp: AST;
102
+ name: string;
103
+ args: any[];
104
+ constructor(span: ParseSpan, exp: AST, name: string, args: any[]);
105
+ visit(visitor: AstVisitor, context?: any): any;
106
+ }
107
+ export declare class LiteralPrimitive extends AST {
108
+ value: any;
109
+ constructor(span: ParseSpan, value: any);
110
+ visit(visitor: AstVisitor, context?: any): any;
111
+ }
112
+ export declare class LiteralArray extends AST {
113
+ expressions: any[];
114
+ constructor(span: ParseSpan, expressions: any[]);
115
+ visit(visitor: AstVisitor, context?: any): any;
116
+ }
117
+ export declare class LiteralMap extends AST {
118
+ keys: any[];
119
+ values: any[];
120
+ constructor(span: ParseSpan, keys: any[], values: any[]);
121
+ visit(visitor: AstVisitor, context?: any): any;
122
+ }
123
+ export declare class Interpolation extends AST {
124
+ strings: any[];
125
+ expressions: any[];
126
+ constructor(span: ParseSpan, strings: any[], expressions: any[]);
127
+ visit(visitor: AstVisitor, context?: any): any;
128
+ }
129
+ export declare class Binary extends AST {
130
+ operation: string;
131
+ left: AST;
132
+ right: AST;
133
+ constructor(span: ParseSpan, operation: string, left: AST, right: AST);
134
+ visit(visitor: AstVisitor, context?: any): any;
135
+ }
136
+ export declare class PrefixNot extends AST {
137
+ expression: AST;
138
+ constructor(span: ParseSpan, expression: AST);
139
+ visit(visitor: AstVisitor, context?: any): any;
140
+ }
141
+ export declare class MethodCall extends AST {
142
+ receiver: AST;
143
+ name: string;
144
+ args: any[];
145
+ constructor(span: ParseSpan, receiver: AST, name: string, args: any[]);
146
+ visit(visitor: AstVisitor, context?: any): any;
147
+ }
148
+ export declare class SafeMethodCall extends AST {
149
+ receiver: AST;
150
+ name: string;
151
+ args: any[];
152
+ constructor(span: ParseSpan, receiver: AST, name: string, args: any[]);
153
+ visit(visitor: AstVisitor, context?: any): any;
154
+ }
155
+ export declare class FunctionCall extends AST {
156
+ target: AST;
157
+ args: any[];
158
+ constructor(span: ParseSpan, target: AST, args: any[]);
159
+ visit(visitor: AstVisitor, context?: any): any;
160
+ }
161
+ export declare class ASTWithSource extends AST {
162
+ ast: AST;
163
+ source: string;
164
+ location: string;
165
+ errors: ParserError[];
166
+ constructor(ast: AST, source: string, location: string, errors: ParserError[]);
167
+ visit(visitor: AstVisitor, context?: any): any;
168
+ toString(): string;
169
+ }
170
+ export declare class TemplateBinding {
171
+ span: ParseSpan;
172
+ key: string;
173
+ keyIsVar: boolean;
174
+ name: string;
175
+ expression: ASTWithSource;
176
+ constructor(span: ParseSpan, key: string, keyIsVar: boolean, name: string, expression: ASTWithSource);
177
+ }
178
+ export interface AstVisitor {
179
+ visitBinary(ast: Binary, context: any): any;
180
+ visitChain(ast: Chain, context: any): any;
181
+ visitConditional(ast: Conditional, context: any): any;
182
+ visitFunctionCall(ast: FunctionCall, context: any): any;
183
+ visitImplicitReceiver(ast: ImplicitReceiver, context: any): any;
184
+ visitInterpolation(ast: Interpolation, context: any): any;
185
+ visitKeyedRead(ast: KeyedRead, context: any): any;
186
+ visitKeyedWrite(ast: KeyedWrite, context: any): any;
187
+ visitLiteralArray(ast: LiteralArray, context: any): any;
188
+ visitLiteralMap(ast: LiteralMap, context: any): any;
189
+ visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
190
+ visitMethodCall(ast: MethodCall, context: any): any;
191
+ visitPipe(ast: BindingPipe, context: any): any;
192
+ visitPrefixNot(ast: PrefixNot, context: any): any;
193
+ visitPropertyRead(ast: PropertyRead, context: any): any;
194
+ visitPropertyWrite(ast: PropertyWrite, context: any): any;
195
+ visitQuote(ast: Quote, context: any): any;
196
+ visitSafeMethodCall(ast: SafeMethodCall, context: any): any;
197
+ visitSafePropertyRead(ast: SafePropertyRead, context: any): any;
198
+ }
199
+ export declare class RecursiveAstVisitor implements AstVisitor {
200
+ visitBinary(ast: Binary, context: any): any;
201
+ visitChain(ast: Chain, context: any): any;
202
+ visitConditional(ast: Conditional, context: any): any;
203
+ visitPipe(ast: BindingPipe, context: any): any;
204
+ visitFunctionCall(ast: FunctionCall, context: any): any;
205
+ visitImplicitReceiver(ast: ImplicitReceiver, context: any): any;
206
+ visitInterpolation(ast: Interpolation, context: any): any;
207
+ visitKeyedRead(ast: KeyedRead, context: any): any;
208
+ visitKeyedWrite(ast: KeyedWrite, context: any): any;
209
+ visitLiteralArray(ast: LiteralArray, context: any): any;
210
+ visitLiteralMap(ast: LiteralMap, context: any): any;
211
+ visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
212
+ visitMethodCall(ast: MethodCall, context: any): any;
213
+ visitPrefixNot(ast: PrefixNot, context: any): any;
214
+ visitPropertyRead(ast: PropertyRead, context: any): any;
215
+ visitPropertyWrite(ast: PropertyWrite, context: any): any;
216
+ visitSafePropertyRead(ast: SafePropertyRead, context: any): any;
217
+ visitSafeMethodCall(ast: SafeMethodCall, context: any): any;
218
+ visitAll(asts: AST[], context: any): any;
219
+ visitQuote(ast: Quote, context: any): any;
220
+ }
221
+ export declare class AstTransformer implements AstVisitor {
222
+ visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST;
223
+ visitInterpolation(ast: Interpolation, context: any): AST;
224
+ visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST;
225
+ visitPropertyRead(ast: PropertyRead, context: any): AST;
226
+ visitPropertyWrite(ast: PropertyWrite, context: any): AST;
227
+ visitSafePropertyRead(ast: SafePropertyRead, context: any): AST;
228
+ visitMethodCall(ast: MethodCall, context: any): AST;
229
+ visitSafeMethodCall(ast: SafeMethodCall, context: any): AST;
230
+ visitFunctionCall(ast: FunctionCall, context: any): AST;
231
+ visitLiteralArray(ast: LiteralArray, context: any): AST;
232
+ visitLiteralMap(ast: LiteralMap, context: any): AST;
233
+ visitBinary(ast: Binary, context: any): AST;
234
+ visitPrefixNot(ast: PrefixNot, context: any): AST;
235
+ visitConditional(ast: Conditional, context: any): AST;
236
+ visitPipe(ast: BindingPipe, context: any): AST;
237
+ visitKeyedRead(ast: KeyedRead, context: any): AST;
238
+ visitKeyedWrite(ast: KeyedWrite, context: any): AST;
239
+ visitAll(asts: any[]): any[];
240
+ visitChain(ast: Chain, context: any): AST;
241
+ visitQuote(ast: Quote, context: any): AST;
242
+ }
@@ -1,69 +1,69 @@
1
- /**
2
- * @license
3
- * Copyright Google Inc. 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
- export declare const $EOF = 0;
9
- export declare const $TAB = 9;
10
- export declare const $LF = 10;
11
- export declare const $VTAB = 11;
12
- export declare const $FF = 12;
13
- export declare const $CR = 13;
14
- export declare const $SPACE = 32;
15
- export declare const $BANG = 33;
16
- export declare const $DQ = 34;
17
- export declare const $HASH = 35;
18
- export declare const $$ = 36;
19
- export declare const $PERCENT = 37;
20
- export declare const $AMPERSAND = 38;
21
- export declare const $SQ = 39;
22
- export declare const $LPAREN = 40;
23
- export declare const $RPAREN = 41;
24
- export declare const $STAR = 42;
25
- export declare const $PLUS = 43;
26
- export declare const $COMMA = 44;
27
- export declare const $MINUS = 45;
28
- export declare const $PERIOD = 46;
29
- export declare const $SLASH = 47;
30
- export declare const $COLON = 58;
31
- export declare const $SEMICOLON = 59;
32
- export declare const $LT = 60;
33
- export declare const $EQ = 61;
34
- export declare const $GT = 62;
35
- export declare const $QUESTION = 63;
36
- export declare const $0 = 48;
37
- export declare const $9 = 57;
38
- export declare const $A = 65;
39
- export declare const $E = 69;
40
- export declare const $F = 70;
41
- export declare const $X = 88;
42
- export declare const $Z = 90;
43
- export declare const $LBRACKET = 91;
44
- export declare const $BACKSLASH = 92;
45
- export declare const $RBRACKET = 93;
46
- export declare const $CARET = 94;
47
- export declare const $_ = 95;
48
- export declare const $a = 97;
49
- export declare const $e = 101;
50
- export declare const $f = 102;
51
- export declare const $n = 110;
52
- export declare const $r = 114;
53
- export declare const $t = 116;
54
- export declare const $u = 117;
55
- export declare const $v = 118;
56
- export declare const $x = 120;
57
- export declare const $z = 122;
58
- export declare const $LBRACE = 123;
59
- export declare const $BAR = 124;
60
- export declare const $RBRACE = 125;
61
- export declare const $NBSP = 160;
62
- export declare const $PIPE = 124;
63
- export declare const $TILDA = 126;
64
- export declare const $AT = 64;
65
- export declare const $BT = 96;
66
- export declare function isWhitespace(code: number): boolean;
67
- export declare function isDigit(code: number): boolean;
68
- export declare function isAsciiLetter(code: number): boolean;
69
- export declare function isAsciiHexDigit(code: number): boolean;
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. 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
+ export declare const $EOF = 0;
9
+ export declare const $TAB = 9;
10
+ export declare const $LF = 10;
11
+ export declare const $VTAB = 11;
12
+ export declare const $FF = 12;
13
+ export declare const $CR = 13;
14
+ export declare const $SPACE = 32;
15
+ export declare const $BANG = 33;
16
+ export declare const $DQ = 34;
17
+ export declare const $HASH = 35;
18
+ export declare const $$ = 36;
19
+ export declare const $PERCENT = 37;
20
+ export declare const $AMPERSAND = 38;
21
+ export declare const $SQ = 39;
22
+ export declare const $LPAREN = 40;
23
+ export declare const $RPAREN = 41;
24
+ export declare const $STAR = 42;
25
+ export declare const $PLUS = 43;
26
+ export declare const $COMMA = 44;
27
+ export declare const $MINUS = 45;
28
+ export declare const $PERIOD = 46;
29
+ export declare const $SLASH = 47;
30
+ export declare const $COLON = 58;
31
+ export declare const $SEMICOLON = 59;
32
+ export declare const $LT = 60;
33
+ export declare const $EQ = 61;
34
+ export declare const $GT = 62;
35
+ export declare const $QUESTION = 63;
36
+ export declare const $0 = 48;
37
+ export declare const $9 = 57;
38
+ export declare const $A = 65;
39
+ export declare const $E = 69;
40
+ export declare const $F = 70;
41
+ export declare const $X = 88;
42
+ export declare const $Z = 90;
43
+ export declare const $LBRACKET = 91;
44
+ export declare const $BACKSLASH = 92;
45
+ export declare const $RBRACKET = 93;
46
+ export declare const $CARET = 94;
47
+ export declare const $_ = 95;
48
+ export declare const $a = 97;
49
+ export declare const $e = 101;
50
+ export declare const $f = 102;
51
+ export declare const $n = 110;
52
+ export declare const $r = 114;
53
+ export declare const $t = 116;
54
+ export declare const $u = 117;
55
+ export declare const $v = 118;
56
+ export declare const $x = 120;
57
+ export declare const $z = 122;
58
+ export declare const $LBRACE = 123;
59
+ export declare const $BAR = 124;
60
+ export declare const $RBRACE = 125;
61
+ export declare const $NBSP = 160;
62
+ export declare const $PIPE = 124;
63
+ export declare const $TILDA = 126;
64
+ export declare const $AT = 64;
65
+ export declare const $BT = 96;
66
+ export declare function isWhitespace(code: number): boolean;
67
+ export declare function isDigit(code: number): boolean;
68
+ export declare function isAsciiLetter(code: number): boolean;
69
+ export declare function isAsciiHexDigit(code: number): boolean;
@@ -1,14 +1,14 @@
1
- /**
2
- * @license
3
- * Copyright Google Inc. 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
- export declare class InterpolationConfig {
9
- start: string;
10
- end: string;
11
- static fromArray(markers: [string, string]): InterpolationConfig;
12
- constructor(start: string, end: string);
13
- }
14
- export declare const DEFAULT_INTERPOLATION_CONFIG: InterpolationConfig;
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. 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
+ export declare class InterpolationConfig {
9
+ start: string;
10
+ end: string;
11
+ static fromArray(markers: [string, string]): InterpolationConfig;
12
+ constructor(start: string, end: string);
13
+ }
14
+ export declare const DEFAULT_INTERPOLATION_CONFIG: InterpolationConfig;