angular-docs-cn/packages/compiler/test
Miško Hevery 5aabe93abe refactor(ivy): Switch styling to new reconcile algorithm (#34616)
NOTE: This change must be reverted with previous deletes so that it code remains in build-able state.

This change deletes old styling code and replaces it with a simplified styling algorithm.

The mental model for the new algorithm is:
- Create a linked list of styling bindings in the order of priority. All styling bindings ere executed in compiled order and than a linked list of bindings is created in priority order.
- Flush the style bindings at the end of `advance()` instruction. This implies that there are two flush events. One at the end of template `advance` instruction in the template. Second one at the end of `hostBindings` `advance` instruction when processing host bindings (if any).
- Each binding instructions effectively updates the string to represent the string at that location. Because most of the bindings are additive, this is a cheap strategy in most cases. In rare cases the strategy requires removing tokens from the styling up to this point. (We expect that to be rare case)S Because, the bindings are presorted in the order of priority, it is safe to resume the processing of the concatenated string from the last change binding.

PR Close #34616
2020-01-24 12:23:00 -08:00
..
aot perf: don't create holey arrays (#32155) 2019-08-21 08:27:43 -07:00
css_parser build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
expression_parser build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
i18n fix(compiler): i18n - trim whitespace from i18n custom ids (#34154) 2019-12-03 10:16:56 -08:00
ml_parser build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
output fix(compiler): ensure localized strings are ES5 compatible for JIT mode (#34265) 2019-12-06 13:03:46 -08:00
render3 refactor(ivy): Switch styling to new reconcile algorithm (#34616) 2020-01-24 12:23:00 -08:00
schema
selector build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
template_parser fix(compiler): correctly parse attributes with a dot in the name (#32256) 2019-11-07 01:02:56 +00:00
BUILD.bazel test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
compiler_facade_interface_spec.ts refactor(ivy): remove ngBaseDef (#33264) 2019-10-25 13:11:34 -07:00
config_spec.ts
core_spec.ts test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
directive_lifecycle_spec.ts
directive_normalizer_spec.ts
directive_resolver_mock_spec.ts
directive_resolver_spec.ts test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
integration_spec.ts
metadata_resolver_fixture.ts
metadata_resolver_spec.ts
ng_module_resolver_mock_spec.ts
ng_module_resolver_spec.ts
parse_util_spec.ts
pipe_resolver_mock_spec.ts
pipe_resolver_spec.ts
resource_loader_mock_spec.ts
runtime_compiler_spec.ts
shadow_css_spec.ts
spies.ts
style_url_resolver_spec.ts
test_bindings.ts
url_resolver_spec.ts
util_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00