Skip to content

[jsinterop] enforce additional restrictions on @staticInterop classes #49350

@sigmundch

Description

@sigmundch

We'd like to enforce some limitations to ensure the design of staticInterop classes matches static views (the future language feature that will be used to implement JSInterop in the future.) and supports the needs of JSinterop overall.

Some checks may include:

  • Type parameters are not allowed in extensions or extension methods themselves
  • Disallow generative constructors
  • Potentially disallow . delimiters in renaming for non-top level members if such a restriction does not exist already

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions