@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.2.4
2
+ * @license Angular v13.3.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "13.2.4",
3
+ "version": "13.3.0-rc.0",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -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;