@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.
@@ -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
- * In ngcc, all the `typeExpression` are guaranteed to be "values" because it is working in JS and
567
- * not TS. This means that the TS compiler is not going to remove the "type" import and so we can
568
- * always use a LOCAL `TypeValueReference` kind, rather than trying to force an additional import
569
- * for non-local expressions.
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.