@angular/compiler-cli 10.1.2 → 10.1.3
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/ngcc/src/host/esm2015_host.d.ts +13 -4
- package/ngcc/src/host/esm2015_host.js +38 -8
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/ngcc/src/packages/build_marker.js +1 -1
- package/ngcc/src/rendering/renderer.js +9 -10
- package/package.json +2 -2
- package/src/ngtsc/indexer/src/template.js +10 -24
- package/src/ngtsc/modulewithproviders/src/scanner.js +2 -2
- package/src/ngtsc/translator/index.d.ts +1 -1
- package/src/ngtsc/translator/index.js +3 -2
- package/src/ngtsc/translator/src/translator.d.ts +8 -1
- package/src/ngtsc/translator/src/translator.js +79 -25
- package/src/ngtsc/typecheck/src/environment.js +2 -2
- package/src/transformers/node_emitter.d.ts +2 -8
- package/src/transformers/node_emitter.js +54 -68
- package/src/transformers/node_emitter_transform.js +8 -8
- package/src/transformers/util.d.ts +6 -0
- package/src/transformers/util.js +11 -2
- package/src/version.js +1 -1
|
@@ -563,12 +563,21 @@ export declare class Esm2015ReflectionHost extends TypeScriptReflectionHost impl
|
|
|
563
563
|
/**
|
|
564
564
|
* Compute the `TypeValueReference` for the given `typeExpression`.
|
|
565
565
|
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
566
|
+
* Although `typeExpression` is a valid `ts.Expression` that could be emitted directly into the
|
|
567
|
+
* generated code, ngcc still needs to resolve the declaration and create an `IMPORTED` type
|
|
568
|
+
* value reference as the compiler has specialized handling for some symbols, for example
|
|
569
|
+
* `ChangeDetectorRef` from `@angular/core`. Such an `IMPORTED` type value reference will result
|
|
570
|
+
* in a newly generated namespace import, instead of emitting the original `typeExpression` as is.
|
|
570
571
|
*/
|
|
571
572
|
private typeToValue;
|
|
573
|
+
/**
|
|
574
|
+
* Determines where the `expression` is imported from.
|
|
575
|
+
*
|
|
576
|
+
* @param expression the expression to determine the import details for.
|
|
577
|
+
* @returns the `Import` for the expression, or `null` if the expression is not imported or the
|
|
578
|
+
* expression syntax is not supported.
|
|
579
|
+
*/
|
|
580
|
+
private getImportOfExpression;
|
|
572
581
|
/**
|
|
573
582
|
* Get the parameter type and decorators for the constructor of a class,
|
|
574
583
|
* where the information is stored on a static property of the class.
|