Skip to content

Snippets showing up on enum constant declaration position #62195

@FMorschel

Description

@FMorschel

Repro:

enum MyEnum {
  v(),
  ^
  ;

  const MyEnum();
}

If you request completion at ^, you'll see:

Image

Since we are in an enum-constant declaration scope (where we write the enum constant name), these should not show up. I'm not sure what the exact AST node we are here, but I believe this may be fixable.

CC @DanTup

Metadata

Metadata

Assignees

Labels

area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-serverIssues related to some aspect of the analysis servertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions