@angular/compiler 19.0.6 → 19.0.7
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/fesm2022/compiler.mjs +22 -278
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +22 -73
- package/package.json +2 -2
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.7
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4441,7 +4441,7 @@ class TypeofExpression extends AST {
|
|
|
4441
4441
|
this.expression = expression;
|
|
4442
4442
|
}
|
|
4443
4443
|
visit(visitor, context = null) {
|
|
4444
|
-
return visitor.
|
|
4444
|
+
return visitor.visitTypeofExpression(this, context);
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
4447
|
class NonNullAssert extends AST {
|
|
@@ -4601,7 +4601,7 @@ class RecursiveAstVisitor {
|
|
|
4601
4601
|
visitPrefixNot(ast, context) {
|
|
4602
4602
|
this.visit(ast.expression, context);
|
|
4603
4603
|
}
|
|
4604
|
-
|
|
4604
|
+
visitTypeofExpression(ast, context) {
|
|
4605
4605
|
this.visit(ast.expression, context);
|
|
4606
4606
|
}
|
|
4607
4607
|
visitNonNullAssert(ast, context) {
|
|
@@ -4636,262 +4636,6 @@ class RecursiveAstVisitor {
|
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
class AstTransformer {
|
|
4640
|
-
visitImplicitReceiver(ast, context) {
|
|
4641
|
-
return ast;
|
|
4642
|
-
}
|
|
4643
|
-
visitThisReceiver(ast, context) {
|
|
4644
|
-
return ast;
|
|
4645
|
-
}
|
|
4646
|
-
visitInterpolation(ast, context) {
|
|
4647
|
-
return new Interpolation$1(ast.span, ast.sourceSpan, ast.strings, this.visitAll(ast.expressions));
|
|
4648
|
-
}
|
|
4649
|
-
visitLiteralPrimitive(ast, context) {
|
|
4650
|
-
return new LiteralPrimitive(ast.span, ast.sourceSpan, ast.value);
|
|
4651
|
-
}
|
|
4652
|
-
visitPropertyRead(ast, context) {
|
|
4653
|
-
return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
|
|
4654
|
-
}
|
|
4655
|
-
visitPropertyWrite(ast, context) {
|
|
4656
|
-
return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, ast.value.visit(this));
|
|
4657
|
-
}
|
|
4658
|
-
visitSafePropertyRead(ast, context) {
|
|
4659
|
-
return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
|
|
4660
|
-
}
|
|
4661
|
-
visitLiteralArray(ast, context) {
|
|
4662
|
-
return new LiteralArray(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
|
|
4663
|
-
}
|
|
4664
|
-
visitLiteralMap(ast, context) {
|
|
4665
|
-
return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, this.visitAll(ast.values));
|
|
4666
|
-
}
|
|
4667
|
-
visitUnary(ast, context) {
|
|
4668
|
-
switch (ast.operator) {
|
|
4669
|
-
case '+':
|
|
4670
|
-
return Unary.createPlus(ast.span, ast.sourceSpan, ast.expr.visit(this));
|
|
4671
|
-
case '-':
|
|
4672
|
-
return Unary.createMinus(ast.span, ast.sourceSpan, ast.expr.visit(this));
|
|
4673
|
-
default:
|
|
4674
|
-
throw new Error(`Unknown unary operator ${ast.operator}`);
|
|
4675
|
-
}
|
|
4676
|
-
}
|
|
4677
|
-
visitBinary(ast, context) {
|
|
4678
|
-
return new Binary(ast.span, ast.sourceSpan, ast.operation, ast.left.visit(this), ast.right.visit(this));
|
|
4679
|
-
}
|
|
4680
|
-
visitPrefixNot(ast, context) {
|
|
4681
|
-
return new PrefixNot(ast.span, ast.sourceSpan, ast.expression.visit(this));
|
|
4682
|
-
}
|
|
4683
|
-
visitTypeofExpresion(ast, context) {
|
|
4684
|
-
return new TypeofExpression(ast.span, ast.sourceSpan, ast.expression.visit(this));
|
|
4685
|
-
}
|
|
4686
|
-
visitNonNullAssert(ast, context) {
|
|
4687
|
-
return new NonNullAssert(ast.span, ast.sourceSpan, ast.expression.visit(this));
|
|
4688
|
-
}
|
|
4689
|
-
visitConditional(ast, context) {
|
|
4690
|
-
return new Conditional(ast.span, ast.sourceSpan, ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));
|
|
4691
|
-
}
|
|
4692
|
-
visitPipe(ast, context) {
|
|
4693
|
-
return new BindingPipe(ast.span, ast.sourceSpan, ast.exp.visit(this), ast.name, this.visitAll(ast.args), ast.nameSpan);
|
|
4694
|
-
}
|
|
4695
|
-
visitKeyedRead(ast, context) {
|
|
4696
|
-
return new KeyedRead(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));
|
|
4697
|
-
}
|
|
4698
|
-
visitKeyedWrite(ast, context) {
|
|
4699
|
-
return new KeyedWrite(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this), ast.value.visit(this));
|
|
4700
|
-
}
|
|
4701
|
-
visitCall(ast, context) {
|
|
4702
|
-
return new Call(ast.span, ast.sourceSpan, ast.receiver.visit(this), this.visitAll(ast.args), ast.argumentSpan);
|
|
4703
|
-
}
|
|
4704
|
-
visitSafeCall(ast, context) {
|
|
4705
|
-
return new SafeCall(ast.span, ast.sourceSpan, ast.receiver.visit(this), this.visitAll(ast.args), ast.argumentSpan);
|
|
4706
|
-
}
|
|
4707
|
-
visitAll(asts) {
|
|
4708
|
-
const res = [];
|
|
4709
|
-
for (let i = 0; i < asts.length; ++i) {
|
|
4710
|
-
res[i] = asts[i].visit(this);
|
|
4711
|
-
}
|
|
4712
|
-
return res;
|
|
4713
|
-
}
|
|
4714
|
-
visitChain(ast, context) {
|
|
4715
|
-
return new Chain(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
|
|
4716
|
-
}
|
|
4717
|
-
visitSafeKeyedRead(ast, context) {
|
|
4718
|
-
return new SafeKeyedRead(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));
|
|
4719
|
-
}
|
|
4720
|
-
}
|
|
4721
|
-
// A transformer that only creates new nodes if the transformer makes a change or
|
|
4722
|
-
// a change is made a child node.
|
|
4723
|
-
class AstMemoryEfficientTransformer {
|
|
4724
|
-
visitImplicitReceiver(ast, context) {
|
|
4725
|
-
return ast;
|
|
4726
|
-
}
|
|
4727
|
-
visitThisReceiver(ast, context) {
|
|
4728
|
-
return ast;
|
|
4729
|
-
}
|
|
4730
|
-
visitInterpolation(ast, context) {
|
|
4731
|
-
const expressions = this.visitAll(ast.expressions);
|
|
4732
|
-
if (expressions !== ast.expressions)
|
|
4733
|
-
return new Interpolation$1(ast.span, ast.sourceSpan, ast.strings, expressions);
|
|
4734
|
-
return ast;
|
|
4735
|
-
}
|
|
4736
|
-
visitLiteralPrimitive(ast, context) {
|
|
4737
|
-
return ast;
|
|
4738
|
-
}
|
|
4739
|
-
visitPropertyRead(ast, context) {
|
|
4740
|
-
const receiver = ast.receiver.visit(this);
|
|
4741
|
-
if (receiver !== ast.receiver) {
|
|
4742
|
-
return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
|
|
4743
|
-
}
|
|
4744
|
-
return ast;
|
|
4745
|
-
}
|
|
4746
|
-
visitPropertyWrite(ast, context) {
|
|
4747
|
-
const receiver = ast.receiver.visit(this);
|
|
4748
|
-
const value = ast.value.visit(this);
|
|
4749
|
-
if (receiver !== ast.receiver || value !== ast.value) {
|
|
4750
|
-
return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, value);
|
|
4751
|
-
}
|
|
4752
|
-
return ast;
|
|
4753
|
-
}
|
|
4754
|
-
visitSafePropertyRead(ast, context) {
|
|
4755
|
-
const receiver = ast.receiver.visit(this);
|
|
4756
|
-
if (receiver !== ast.receiver) {
|
|
4757
|
-
return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
|
|
4758
|
-
}
|
|
4759
|
-
return ast;
|
|
4760
|
-
}
|
|
4761
|
-
visitLiteralArray(ast, context) {
|
|
4762
|
-
const expressions = this.visitAll(ast.expressions);
|
|
4763
|
-
if (expressions !== ast.expressions) {
|
|
4764
|
-
return new LiteralArray(ast.span, ast.sourceSpan, expressions);
|
|
4765
|
-
}
|
|
4766
|
-
return ast;
|
|
4767
|
-
}
|
|
4768
|
-
visitLiteralMap(ast, context) {
|
|
4769
|
-
const values = this.visitAll(ast.values);
|
|
4770
|
-
if (values !== ast.values) {
|
|
4771
|
-
return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, values);
|
|
4772
|
-
}
|
|
4773
|
-
return ast;
|
|
4774
|
-
}
|
|
4775
|
-
visitUnary(ast, context) {
|
|
4776
|
-
const expr = ast.expr.visit(this);
|
|
4777
|
-
if (expr !== ast.expr) {
|
|
4778
|
-
switch (ast.operator) {
|
|
4779
|
-
case '+':
|
|
4780
|
-
return Unary.createPlus(ast.span, ast.sourceSpan, expr);
|
|
4781
|
-
case '-':
|
|
4782
|
-
return Unary.createMinus(ast.span, ast.sourceSpan, expr);
|
|
4783
|
-
default:
|
|
4784
|
-
throw new Error(`Unknown unary operator ${ast.operator}`);
|
|
4785
|
-
}
|
|
4786
|
-
}
|
|
4787
|
-
return ast;
|
|
4788
|
-
}
|
|
4789
|
-
visitBinary(ast, context) {
|
|
4790
|
-
const left = ast.left.visit(this);
|
|
4791
|
-
const right = ast.right.visit(this);
|
|
4792
|
-
if (left !== ast.left || right !== ast.right) {
|
|
4793
|
-
return new Binary(ast.span, ast.sourceSpan, ast.operation, left, right);
|
|
4794
|
-
}
|
|
4795
|
-
return ast;
|
|
4796
|
-
}
|
|
4797
|
-
visitPrefixNot(ast, context) {
|
|
4798
|
-
const expression = ast.expression.visit(this);
|
|
4799
|
-
if (expression !== ast.expression) {
|
|
4800
|
-
return new PrefixNot(ast.span, ast.sourceSpan, expression);
|
|
4801
|
-
}
|
|
4802
|
-
return ast;
|
|
4803
|
-
}
|
|
4804
|
-
visitTypeofExpresion(ast, context) {
|
|
4805
|
-
const expression = ast.expression.visit(this);
|
|
4806
|
-
if (expression !== ast.expression) {
|
|
4807
|
-
return new TypeofExpression(ast.span, ast.sourceSpan, expression);
|
|
4808
|
-
}
|
|
4809
|
-
return ast;
|
|
4810
|
-
}
|
|
4811
|
-
visitNonNullAssert(ast, context) {
|
|
4812
|
-
const expression = ast.expression.visit(this);
|
|
4813
|
-
if (expression !== ast.expression) {
|
|
4814
|
-
return new NonNullAssert(ast.span, ast.sourceSpan, expression);
|
|
4815
|
-
}
|
|
4816
|
-
return ast;
|
|
4817
|
-
}
|
|
4818
|
-
visitConditional(ast, context) {
|
|
4819
|
-
const condition = ast.condition.visit(this);
|
|
4820
|
-
const trueExp = ast.trueExp.visit(this);
|
|
4821
|
-
const falseExp = ast.falseExp.visit(this);
|
|
4822
|
-
if (condition !== ast.condition || trueExp !== ast.trueExp || falseExp !== ast.falseExp) {
|
|
4823
|
-
return new Conditional(ast.span, ast.sourceSpan, condition, trueExp, falseExp);
|
|
4824
|
-
}
|
|
4825
|
-
return ast;
|
|
4826
|
-
}
|
|
4827
|
-
visitPipe(ast, context) {
|
|
4828
|
-
const exp = ast.exp.visit(this);
|
|
4829
|
-
const args = this.visitAll(ast.args);
|
|
4830
|
-
if (exp !== ast.exp || args !== ast.args) {
|
|
4831
|
-
return new BindingPipe(ast.span, ast.sourceSpan, exp, ast.name, args, ast.nameSpan);
|
|
4832
|
-
}
|
|
4833
|
-
return ast;
|
|
4834
|
-
}
|
|
4835
|
-
visitKeyedRead(ast, context) {
|
|
4836
|
-
const obj = ast.receiver.visit(this);
|
|
4837
|
-
const key = ast.key.visit(this);
|
|
4838
|
-
if (obj !== ast.receiver || key !== ast.key) {
|
|
4839
|
-
return new KeyedRead(ast.span, ast.sourceSpan, obj, key);
|
|
4840
|
-
}
|
|
4841
|
-
return ast;
|
|
4842
|
-
}
|
|
4843
|
-
visitKeyedWrite(ast, context) {
|
|
4844
|
-
const obj = ast.receiver.visit(this);
|
|
4845
|
-
const key = ast.key.visit(this);
|
|
4846
|
-
const value = ast.value.visit(this);
|
|
4847
|
-
if (obj !== ast.receiver || key !== ast.key || value !== ast.value) {
|
|
4848
|
-
return new KeyedWrite(ast.span, ast.sourceSpan, obj, key, value);
|
|
4849
|
-
}
|
|
4850
|
-
return ast;
|
|
4851
|
-
}
|
|
4852
|
-
visitAll(asts) {
|
|
4853
|
-
const res = [];
|
|
4854
|
-
let modified = false;
|
|
4855
|
-
for (let i = 0; i < asts.length; ++i) {
|
|
4856
|
-
const original = asts[i];
|
|
4857
|
-
const value = original.visit(this);
|
|
4858
|
-
res[i] = value;
|
|
4859
|
-
modified = modified || value !== original;
|
|
4860
|
-
}
|
|
4861
|
-
return modified ? res : asts;
|
|
4862
|
-
}
|
|
4863
|
-
visitChain(ast, context) {
|
|
4864
|
-
const expressions = this.visitAll(ast.expressions);
|
|
4865
|
-
if (expressions !== ast.expressions) {
|
|
4866
|
-
return new Chain(ast.span, ast.sourceSpan, expressions);
|
|
4867
|
-
}
|
|
4868
|
-
return ast;
|
|
4869
|
-
}
|
|
4870
|
-
visitCall(ast, context) {
|
|
4871
|
-
const receiver = ast.receiver.visit(this);
|
|
4872
|
-
const args = this.visitAll(ast.args);
|
|
4873
|
-
if (receiver !== ast.receiver || args !== ast.args) {
|
|
4874
|
-
return new Call(ast.span, ast.sourceSpan, receiver, args, ast.argumentSpan);
|
|
4875
|
-
}
|
|
4876
|
-
return ast;
|
|
4877
|
-
}
|
|
4878
|
-
visitSafeCall(ast, context) {
|
|
4879
|
-
const receiver = ast.receiver.visit(this);
|
|
4880
|
-
const args = this.visitAll(ast.args);
|
|
4881
|
-
if (receiver !== ast.receiver || args !== ast.args) {
|
|
4882
|
-
return new SafeCall(ast.span, ast.sourceSpan, receiver, args, ast.argumentSpan);
|
|
4883
|
-
}
|
|
4884
|
-
return ast;
|
|
4885
|
-
}
|
|
4886
|
-
visitSafeKeyedRead(ast, context) {
|
|
4887
|
-
const obj = ast.receiver.visit(this);
|
|
4888
|
-
const key = ast.key.visit(this);
|
|
4889
|
-
if (obj !== ast.receiver || key !== ast.key) {
|
|
4890
|
-
return new SafeKeyedRead(ast.span, ast.sourceSpan, obj, key);
|
|
4891
|
-
}
|
|
4892
|
-
return ast;
|
|
4893
|
-
}
|
|
4894
|
-
}
|
|
4895
4639
|
// Bindings
|
|
4896
4640
|
class ParsedProperty {
|
|
4897
4641
|
name;
|
|
@@ -7776,7 +7520,7 @@ class ShadowCss {
|
|
|
7776
7520
|
*
|
|
7777
7521
|
* For example, we convert this css:
|
|
7778
7522
|
*
|
|
7779
|
-
* ```
|
|
7523
|
+
* ```scss
|
|
7780
7524
|
* .box {
|
|
7781
7525
|
* animation: box-animation 1s forwards;
|
|
7782
7526
|
* }
|
|
@@ -7790,7 +7534,7 @@ class ShadowCss {
|
|
|
7790
7534
|
*
|
|
7791
7535
|
* to this:
|
|
7792
7536
|
*
|
|
7793
|
-
* ```
|
|
7537
|
+
* ```scss
|
|
7794
7538
|
* .box {
|
|
7795
7539
|
* animation: scopeName_box-animation 1s forwards;
|
|
7796
7540
|
* }
|
|
@@ -7819,7 +7563,7 @@ class ShadowCss {
|
|
|
7819
7563
|
*
|
|
7820
7564
|
* For example, it takes a rule such as:
|
|
7821
7565
|
*
|
|
7822
|
-
* ```
|
|
7566
|
+
* ```scss
|
|
7823
7567
|
* @keyframes box-animation {
|
|
7824
7568
|
* to {
|
|
7825
7569
|
* background-color: green;
|
|
@@ -7829,7 +7573,7 @@ class ShadowCss {
|
|
|
7829
7573
|
*
|
|
7830
7574
|
* and returns:
|
|
7831
7575
|
*
|
|
7832
|
-
* ```
|
|
7576
|
+
* ```scss
|
|
7833
7577
|
* @keyframes scopeName_box-animation {
|
|
7834
7578
|
* to {
|
|
7835
7579
|
* background-color: green;
|
|
@@ -18189,7 +17933,7 @@ class Parser {
|
|
|
18189
17933
|
* parsing errors in case the given expression is invalid.
|
|
18190
17934
|
*
|
|
18191
17935
|
* For example,
|
|
18192
|
-
* ```
|
|
17936
|
+
* ```html
|
|
18193
17937
|
* <div *ngFor="let item of items">
|
|
18194
17938
|
* ^ ^ absoluteValueOffset for `templateValue`
|
|
18195
17939
|
* absoluteKeyOffset for `templateKey`
|
|
@@ -18200,7 +17944,7 @@ class Parser {
|
|
|
18200
17944
|
* 3. ngForOf -> items
|
|
18201
17945
|
*
|
|
18202
17946
|
* This is apparent from the de-sugared template:
|
|
18203
|
-
* ```
|
|
17947
|
+
* ```html
|
|
18204
17948
|
* <ng-template ngFor let-item [ngForOf]="items">
|
|
18205
17949
|
* ```
|
|
18206
17950
|
*
|
|
@@ -19057,7 +18801,7 @@ class _ParseAST {
|
|
|
19057
18801
|
* parsing errors in case the given expression is invalid.
|
|
19058
18802
|
*
|
|
19059
18803
|
* For example,
|
|
19060
|
-
* ```
|
|
18804
|
+
* ```html
|
|
19061
18805
|
* <div *ngFor="let item of items; index as i; trackBy: func">
|
|
19062
18806
|
* ```
|
|
19063
18807
|
* contains five bindings:
|
|
@@ -19448,7 +19192,7 @@ class SerializeExpressionVisitor {
|
|
|
19448
19192
|
.map((e) => e.visit(this, context))
|
|
19449
19193
|
.join(', ')})`;
|
|
19450
19194
|
}
|
|
19451
|
-
|
|
19195
|
+
visitTypeofExpression(ast, context) {
|
|
19452
19196
|
return `typeof ${ast.expression.visit(this, context)}`;
|
|
19453
19197
|
}
|
|
19454
19198
|
visitASTWithSource(ast, context) {
|
|
@@ -26767,7 +26511,7 @@ class BindingParser {
|
|
|
26767
26511
|
}
|
|
26768
26512
|
/**
|
|
26769
26513
|
* Parses the bindings in a microsyntax expression, e.g.
|
|
26770
|
-
* ```
|
|
26514
|
+
* ```html
|
|
26771
26515
|
* <tag *tplKey="let value1 = prop; let value2 = localVar">
|
|
26772
26516
|
* ```
|
|
26773
26517
|
*
|
|
@@ -30883,7 +30627,7 @@ function publishFacade(global) {
|
|
|
30883
30627
|
* @description
|
|
30884
30628
|
* Entry point for all public APIs of the compiler package.
|
|
30885
30629
|
*/
|
|
30886
|
-
const VERSION = new Version('19.0.
|
|
30630
|
+
const VERSION = new Version('19.0.7');
|
|
30887
30631
|
|
|
30888
30632
|
class CompilerConfig {
|
|
30889
30633
|
defaultEncapsulation;
|
|
@@ -32735,7 +32479,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
32735
32479
|
function compileDeclareClassMetadata(metadata) {
|
|
32736
32480
|
const definitionMap = new DefinitionMap();
|
|
32737
32481
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
32738
|
-
definitionMap.set('version', literal('19.0.
|
|
32482
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
32739
32483
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32740
32484
|
definitionMap.set('type', metadata.type);
|
|
32741
32485
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -32753,7 +32497,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
32753
32497
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
32754
32498
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
32755
32499
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
32756
|
-
definitionMap.set('version', literal('19.0.
|
|
32500
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
32757
32501
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32758
32502
|
definitionMap.set('type', metadata.type);
|
|
32759
32503
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -32848,7 +32592,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
32848
32592
|
const definitionMap = new DefinitionMap();
|
|
32849
32593
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
32850
32594
|
definitionMap.set('minVersion', literal(minVersion));
|
|
32851
|
-
definitionMap.set('version', literal('19.0.
|
|
32595
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
32852
32596
|
// e.g. `type: MyDirective`
|
|
32853
32597
|
definitionMap.set('type', meta.type.value);
|
|
32854
32598
|
if (meta.isStandalone !== undefined) {
|
|
@@ -33267,7 +33011,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
33267
33011
|
function compileDeclareFactoryFunction(meta) {
|
|
33268
33012
|
const definitionMap = new DefinitionMap();
|
|
33269
33013
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
33270
|
-
definitionMap.set('version', literal('19.0.
|
|
33014
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
33271
33015
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33272
33016
|
definitionMap.set('type', meta.type.value);
|
|
33273
33017
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -33302,7 +33046,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
33302
33046
|
function createInjectableDefinitionMap(meta) {
|
|
33303
33047
|
const definitionMap = new DefinitionMap();
|
|
33304
33048
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
33305
|
-
definitionMap.set('version', literal('19.0.
|
|
33049
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
33306
33050
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33307
33051
|
definitionMap.set('type', meta.type.value);
|
|
33308
33052
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -33353,7 +33097,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
33353
33097
|
function createInjectorDefinitionMap(meta) {
|
|
33354
33098
|
const definitionMap = new DefinitionMap();
|
|
33355
33099
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
33356
|
-
definitionMap.set('version', literal('19.0.
|
|
33100
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
33357
33101
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33358
33102
|
definitionMap.set('type', meta.type.value);
|
|
33359
33103
|
definitionMap.set('providers', meta.providers);
|
|
@@ -33386,7 +33130,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
33386
33130
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
33387
33131
|
}
|
|
33388
33132
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
33389
|
-
definitionMap.set('version', literal('19.0.
|
|
33133
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
33390
33134
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33391
33135
|
definitionMap.set('type', meta.type.value);
|
|
33392
33136
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -33437,7 +33181,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
33437
33181
|
function createPipeDefinitionMap(meta) {
|
|
33438
33182
|
const definitionMap = new DefinitionMap();
|
|
33439
33183
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
33440
|
-
definitionMap.set('version', literal('19.0.
|
|
33184
|
+
definitionMap.set('version', literal('19.0.7'));
|
|
33441
33185
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33442
33186
|
// e.g. `type: MyPipe`
|
|
33443
33187
|
definitionMap.set('type', meta.type.value);
|
|
@@ -33470,5 +33214,5 @@ publishFacade(_global);
|
|
|
33470
33214
|
|
|
33471
33215
|
// This file is not used to build this module. It is only used during editing
|
|
33472
33216
|
|
|
33473
|
-
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr,
|
|
33217
|
+
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr$1 as EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget$1 as FactoryTarget, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation$1 as Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, LetDeclaration, Lexer, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParseError, ParseErrorLevel, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, R3BoundTarget, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor, ResourceLoader, ReturnStatement, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, TagContentType, TaggedTemplateExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Element$1 as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu$1 as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration$1 as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor$1 as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, Template as TmplAstTemplate, Text$3 as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, splitNsName, visitAll$1 as tmplAstVisitAll, verifyHostBindings, visitAll };
|
|
33474
33218
|
//# sourceMappingURL=compiler.mjs.map
|