angular-cn/packages/compiler/test/render3
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
..
util fix(compiler): absolute source span for template attribute expressions (#33189) 2019-10-17 18:48:59 -04:00
view fix(ivy): correctly associate output bound events with directives (#31938) 2019-12-17 14:39:33 -08:00
BUILD.bazel 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
README.md feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
r3_ast_absolute_span_spec.ts fix(ivy): record correct absolute source span for ngForOf expressions (#31813) 2019-12-16 08:11:48 -08:00
r3_ast_spans_spec.ts feat(ivy): include value spans for attributes, variables and references (#30181) 2019-07-25 16:36:32 -07:00
r3_template_transform_spec.ts fix(compiler): fix Elements not making a new ParseSourceSpan (#31190) 2019-06-21 12:03:01 -07:00
style_parser_spec.ts refactor(ivy): Switch styling to new reconcile algorithm (#34616) 2020-01-24 12:23:00 -08:00

README.md

Tests in this directory are excluded from running in the browser and only run in node.