9e5016c845
This commit changes the partial evaluation mechanism to propagate DynamicValue errors internally during evaluation, and not to "poison" entire data structures when a single value is dynamic. For example, previously if any entry in an array was dynamic, evaluating the entire array would return DynamicValue. Now, the array is returned with only the specific dynamic entry as DynamicValue. Instances of DynamicValue also report the node that was determined to be dynamic, as well as a potential reason for the dynamic-ness. These can be nested, so an expression `a + b` may have a DynamicValue that indicates the 'a' term was DynamicValue, which will itself contain a reason for the dynamic-ness. This work was undertaken for the implementation of listLazyRoutes(), which needs to partially evaluate provider arrays, parts of which are dynamic and parts of which contain useful information. PR Close #27697 |
||
---|---|---|
.. | ||
animations | ||
bazel | ||
benchpress | ||
common | ||
compiler | ||
compiler-cli | ||
core | ||
docs | ||
elements | ||
examples | ||
forms | ||
http | ||
language-service | ||
platform-browser | ||
platform-browser-dynamic | ||
platform-server | ||
platform-webworker | ||
platform-webworker-dynamic | ||
private/testing | ||
router | ||
service-worker | ||
upgrade | ||
BUILD.bazel | ||
README.md | ||
empty.ts | ||
es6-subset.d.ts | ||
goog.d.ts | ||
license-banner.txt | ||
rollup.config.js | ||
system.d.ts | ||
tsconfig-build.json | ||
tsconfig-test.json | ||
tsconfig.json | ||
types.d.ts |
README.md
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
License: MIT