Files
sdk/pkg/_js_interop_checks
Stephen Adams a2312f4776 [js_interop] Use stub for dart2js only when method has annotations
In order to support dart2js pragma annotations on external js_interop
methods, add the ability to generate stubs for getters, setters and
methods. Create stubs for dart2js only when the method has annotations.
Methods can only be handled by stubs when there are a fixed number of
positional arguments,

Move from using a `builder` to using a slightly more general
'treatement' that can also replace the Procedure's function body.

Issue: #60746
Change-Id: I7482f09d430448001d712dd4645d23f78910920d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429203
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2025-05-20 09:34:52 -07:00
..
2021-04-07 10:28:38 +00:00

Shared kernel visitors checking for incorrect usage of @JS() style interop.