registerGenericConstructor method
void
registerGenericConstructor(
- String className,
- String constructorName,
- GenericConstructorFactory factory
Registers a generic-constructor factory for className.constructorName.
Used by the interpreter's construction path to build a native instance
of a generic bridged class from interpreted arguments and type
arguments. Use '' for the unnamed constructor. Delegates to
D4.registerGenericConstructor; registration is idempotent on factory
identity and chains new-first.
Intended for use inside a registerExtensions body.
Implementation
void registerGenericConstructor(
String className,
String constructorName,
GenericConstructorFactory factory,
) => D4.registerGenericConstructor(className, constructorName, factory);