@angular/compiler 13.2.4 → 13.3.0-rc.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.
- package/esm2020/src/expression_parser/parser.mjs +43 -5
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +1 -1
- package/esm2020/src/render3/partial/factory.mjs +1 -1
- package/esm2020/src/render3/partial/injectable.mjs +1 -1
- package/esm2020/src/render3/partial/injector.mjs +1 -1
- package/esm2020/src/render3/partial/ng_module.mjs +1 -1
- package/esm2020/src/render3/partial/pipe.mjs +1 -1
- package/esm2020/src/render3/r3_template_transform.mjs +6 -6
- package/esm2020/src/template_parser/binding_parser.mjs +5 -5
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +62 -22
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +60 -22
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/package.json +1 -1
- package/src/expression_parser/parser.d.ts +3 -2
- package/src/template_parser/binding_parser.d.ts +3 -2
package/fesm2020/testing.mjs
CHANGED
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { InterpolationConfig } from '../ml_parser/interpolation_config';
|
|
9
|
+
import { InterpolatedAttributeToken, InterpolatedTextToken } from '../ml_parser/tokens';
|
|
9
10
|
import { AbsoluteSourceSpan, AST, ASTWithSource, BindingPipe, LiteralMap, ParserError, ParseSpan, TemplateBinding, TemplateBindingIdentifier } from './ast';
|
|
10
11
|
import { Lexer, Token } from './lexer';
|
|
11
12
|
export interface InterpolationPiece {
|
|
@@ -78,7 +79,7 @@ export declare class Parser {
|
|
|
78
79
|
* @param absoluteValueOffset start of the `templateValue`
|
|
79
80
|
*/
|
|
80
81
|
parseTemplateBindings(templateKey: string, templateValue: string, templateUrl: string, absoluteKeyOffset: number, absoluteValueOffset: number): TemplateBindingParseResult;
|
|
81
|
-
parseInterpolation(input: string, location: string, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource | null;
|
|
82
|
+
parseInterpolation(input: string, location: string, absoluteOffset: number, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null, interpolationConfig?: InterpolationConfig): ASTWithSource | null;
|
|
82
83
|
/**
|
|
83
84
|
* Similar to `parseInterpolation`, but treats the provided string as a single expression
|
|
84
85
|
* element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
|
|
@@ -93,7 +94,7 @@ export declare class Parser {
|
|
|
93
94
|
* `SplitInterpolation` with splits that look like
|
|
94
95
|
* <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>
|
|
95
96
|
*/
|
|
96
|
-
splitInterpolation(input: string, location: string, interpolationConfig?: InterpolationConfig): SplitInterpolation;
|
|
97
|
+
splitInterpolation(input: string, location: string, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null, interpolationConfig?: InterpolationConfig): SplitInterpolation;
|
|
97
98
|
wrapLiteralPrimitive(input: string | null, location: string, absoluteOffset: number): ASTWithSource;
|
|
98
99
|
private _stripComments;
|
|
99
100
|
private _commentStart;
|
|
@@ -9,6 +9,7 @@ import { SecurityContext } from '../core';
|
|
|
9
9
|
import { ASTWithSource, BindingPipe, BoundElementProperty, ParsedEvent, ParsedProperty, ParsedVariable, RecursiveAstVisitor } from '../expression_parser/ast';
|
|
10
10
|
import { Parser } from '../expression_parser/parser';
|
|
11
11
|
import { InterpolationConfig } from '../ml_parser/interpolation_config';
|
|
12
|
+
import { InterpolatedAttributeToken, InterpolatedTextToken } from '../ml_parser/tokens';
|
|
12
13
|
import { ParseError, ParseSourceSpan } from '../parse_util';
|
|
13
14
|
import { ElementSchemaRegistry } from '../schema/element_schema_registry';
|
|
14
15
|
export interface HostProperties {
|
|
@@ -29,7 +30,7 @@ export declare class BindingParser {
|
|
|
29
30
|
get interpolationConfig(): InterpolationConfig;
|
|
30
31
|
createBoundHostProperties(properties: HostProperties, sourceSpan: ParseSourceSpan): ParsedProperty[] | null;
|
|
31
32
|
createDirectiveHostEventAsts(hostListeners: HostListeners, sourceSpan: ParseSourceSpan): ParsedEvent[] | null;
|
|
32
|
-
parseInterpolation(value: string, sourceSpan: ParseSourceSpan): ASTWithSource;
|
|
33
|
+
parseInterpolation(value: string, sourceSpan: ParseSourceSpan, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): ASTWithSource;
|
|
33
34
|
/**
|
|
34
35
|
* Similar to `parseInterpolation`, but treats the provided string as a single expression
|
|
35
36
|
* element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
|
|
@@ -64,7 +65,7 @@ export declare class BindingParser {
|
|
|
64
65
|
private _parseTemplateBindings;
|
|
65
66
|
parseLiteralAttr(name: string, value: string | null, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): void;
|
|
66
67
|
parsePropertyBinding(name: string, expression: string, isHost: boolean, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): void;
|
|
67
|
-
parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): boolean;
|
|
68
|
+
parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): boolean;
|
|
68
69
|
private _parsePropertyAst;
|
|
69
70
|
private _parseAnimation;
|
|
70
71
|
private _parseBinding;
|