angular-docs-cn/packages/compiler-cli/test/compliance/test_cases
JoostK c18c7e23ec fix(compiler): exclude trailing whitespace from element source spans (#40513)
If the template parse option `leadingTriviaChars` is configured to
consider whitespace as trivia, any trailing whitespace of an element
would be considered as leading trivia of the subsequent element, such
that its `start` span would start _after_ the whitespace. This means
that the start span cannot be used to mark the end of the current
element, as its trailing whitespace would then be included in its span.
Instead, the full start of the subsequent element should be used.

To harden the tests that for the Ivy parser, the test utility `parseR3`
has been adjusted to use the same configuration for `leadingTriviaChars`
as would be the case in its production counterpart `parseTemplate`. This
uncovered another bug in offset handling of the interpolation parser,
where the absolute offset was computed from the start source span
(which excludes leading trivia) whereas the interpolation expression
would include the leading trivia. As such, the absolute offset now also
uses the full start span.

Fixes #39148

PR Close #40513
2021-01-28 08:53:02 -08:00
..
r3_compiler_compliance refactor(core): Remove the need for explicit static query instruction (#40091) 2021-01-14 13:55:02 -08:00
r3_view_compiler refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_bindings refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_di/di refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_directives/matching refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_i18n test(compiler-cli): reset i18n message index in compliance test macro (#40529) 2021-01-25 10:55:42 -08:00
r3_view_compiler_input_outputs refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_listener refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_providers refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_styling refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
r3_view_compiler_template refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
source_mapping fix(compiler): exclude trailing whitespace from element source spans (#40513) 2021-01-28 08:53:02 -08:00
BUILD.bazel test(compiler-cli): generate golden files for partial compilation (#39617) 2020-11-13 11:25:56 -08:00
list_golden_update_rules.ts refactor(compiler-cli): use semver range checking for partial versions (#39847) 2020-12-04 10:26:17 -08:00
test_case_schema.json test(compiler-cli): improve compliance test compile mode filtering (#39939) 2020-12-07 16:21:04 -08:00