Skip to content

Completion for RegExp class name and specific members (not inherited) shows as deprecated #62013

@FMorschel

Description

@FMorschel

Coming from #62012:


After the first steps for #60504 and #55608, now we have:

@Deprecated.implement(
  "This class will become 'final' in a future release. "
  "'Pattern' may be a more appropriate interface to implement.",
)
abstract interface class RegExp implements Pattern {

Small repro:

void foo(RegExp myRegExp) {
  foo(RegExp('.'));
  myRegExp.;
}
Image Image

But with this, all RegExp completions, including RegExp specific members, show as deprecated. This is somewhat related to:

FYI @srawlins @lrhn @bwilkerson @mraleph

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestarea-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