Files
sdk/pkg/analysis_server
Danny Tuppeny 33d3b5fc21 [analysis_server] Prevent invalid snippets in constant contexts
This splits `SnippetContext.inExpression` to also have `SnippetContext.inConstantExpression` and introduced `inEnumConstants` and `inEnumMembers` to allow snippets to appear in only one or the other.

Fixes https://github.com/dart-lang/sdk/issues/62195

Change-Id: Iefecb88177de9e209ed19513e28230ce1f3a7dd8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467022
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2025-12-09 10:50:26 -08:00
..

analysis_server

A long-running process that provides analysis results to other tools.

The analysis server is designed to provide on-going analysis of one or more code bases as those code bases are changing.

Using the server

The analysis server is not intended to be used stand-alone, and therefore does not have a human-friendly user interface.

Clients (typically tools, such as an editor) are expected to run the analysis server in a separate process and communicate with it using a JSON protocol. The original protocol is specified in the file analysis_server/doc/api.html and Language Server Protocol support is documented in tool/lsp_spec/README.md.

Features and bugs

Please file feature requests and bugs at the issue tracker.