[ddc] Duplicated member signature information on some classes #52867
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
P3
A lower priority bug or feature request
web-dev-compiler
In the compiled output, some classes have duplicated member signature information attached to them. For example, see the Iterable class in the compiled output:
Each method has the same signature added twice, once with just a name and once with a "symbolized" name. I couldn't remove either of them without some tests failing so there must be some inconsistency in how we access the signatures at runtime.
Not all classes exhibit this pattern. Most have either just a name or just a symbol. It looks like the duplication was added long ago in the analyzer based version and it persisted when ported to kernel 749d298.
With the new runtime type system this issue also appears with the default type arguments for the instance methods that have type parameters. In order to be consistent with the method signature I had to duplicate them in the same way to get all of the lookups to work at runtime.
The text was updated successfully, but these errors were encountered: