a2312f4776
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>