Files
sdk/pkg/analysis_server/test
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
..
2025-10-20 20:59:40 -07:00
2025-09-03 12:56:29 -07:00