angular-docs-cn/packages/language-service/ivy/test/legacy
Andrew Scott 1bf1b685d6 fix(language-service): Prevent matching nodes after finding a keySpan (#40047)
If we've already identified that we are within a `keySpan` of a node, we
exit the visitor logic early. It can be the case that we have two nodes
which technically match a given location when the end span of one node
touches the start of the keySpan for the candidate node. Because
our `isWithin` logic is inclusive on both ends, we can match both nodes.
This change exits the visitor logic once we've identified a node where
the position is within its `keySpan`.

PR Close #40047
2020-12-10 13:44:18 -08:00
..
BUILD.bazel test(language-service): move existing tests to legacy directory (#39594) 2020-11-17 11:59:56 -08:00
adapters_spec.ts test(language-service): add renamed, deleted test file (#39742) 2020-11-18 11:11:14 -08:00
compiler_factory_spec.ts test(language-service): move existing tests to legacy directory (#39594) 2020-11-17 11:59:56 -08:00
daignostic_spec.ts test(language-service): convert ivy diagnostics tests from legacy (#39957) 2020-12-04 10:16:43 -08:00
definitions_spec.ts refactor(compiler-cli): Return addEventListener symbol for native output bindings (#39312) 2020-12-08 16:18:24 -08:00
language_service_spec.ts refactor(compiler-cli): provide a host to readConfiguration (#39619) 2020-11-17 14:45:09 -08:00
mock_host.ts refactor(compiler-cli): provide a host to readConfiguration (#39619) 2020-11-17 14:45:09 -08:00
mock_host_spec.ts test(language-service): move existing tests to legacy directory (#39594) 2020-11-17 11:59:56 -08:00
template_target_spec.ts fix(language-service): Prevent matching nodes after finding a keySpan (#40047) 2020-12-10 13:44:18 -08:00
test_utils.ts test(language-service): move existing tests to legacy directory (#39594) 2020-11-17 11:59:56 -08:00
type_definitions_spec.ts refactor(compiler-cli): Return addEventListener symbol for native output bindings (#39312) 2020-12-08 16:18:24 -08:00