dart-sdk/pkg/analysis_server/test/integration
Brian Wilkerson 9db372e6f4 Make Location.endLine and Location.endColumn optional fields in the protocol
In https://dart-review.googlesource.com/c/sdk/+/191862 we added two new
required fields to `Location`. Unfortunately this was a breaking change
because plugins using an older version of the `analyzer_plugin` produce
location objects without those fields, leading to deserialization failures.

This CL makes those fields optional in order to fix the deserialization
issue.

Unfortunately, the `analyzer_plugin` package was published after the
required fields were added. Making them optional is a breaking change
because the constructor parameters go from being positional to being
named parameters.

We also neglected to update the version number of the protocol as part
of the previous CL. Technically this is also a breaking change for clients
of the analysis server, but given that they had no way to test to see
whether these fields existed they would need to have been written as if
the fields were optional in order to reference them at all, so I think
that from a practical standpoint it isn't a breaking change. That does,
however, raise the question of whether we should increment the version
numbers as part of this CL.

Change-Id: I35fc1f8e950669a3d8dd33cee6b81890261b5c47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206942
Reviewed-by: Danny Tuppeny <danny@tuppeny.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-07-15 17:35:55 +00:00
..
analysis Add supertype to enum classes. 2021-06-25 14:08:16 +00:00
analytics Migrate more analysis_server/test/integration/ tests. 2021-04-05 06:19:15 +00:00
completion Migrate more analysis_server/test/integration/ tests. 2021-04-05 06:19:15 +00:00
diagnostic Migrate more analysis_server/test/integration/ tests. 2021-04-05 06:19:15 +00:00
edit Remove support for the deprecated dartfix tool 2021-07-02 18:30:24 +00:00
execution Update integration/analysis/navigation_test for non-function type aliases. 2021-04-05 15:24:26 +00:00
kythe Migrate a few random analysis_server libraries. 2021-04-05 16:06:36 +00:00
linter Migrate more analysis_server/test/integration/ tests. 2021-04-05 06:19:15 +00:00
lsp_server [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
search Migrate more analysis_server/test/integration/ tests. 2021-04-05 06:19:15 +00:00
server React when Bazel/Blaze prefix changes 2021-05-03 07:35:58 +00:00
support Make Location.endLine and Location.endColumn optional fields in the protocol 2021-07-15 17:35:55 +00:00
coverage.md Remove support for the deprecated dartfix tool 2021-07-02 18:30:24 +00:00
coverage_test.dart Migrate a few random analysis_server libraries. 2021-04-05 16:06:36 +00:00
test_all.dart Migrate all remaining server libraries except the library in bin 2021-04-24 04:19:22 +00:00