JSConstructorGen

class Object
trait Matchable
class Any

Value members

Concrete methods

def buildJSConstructorDef(dispatch: JSMethodDef, ctors: List[MethodDef], overloadIdent: LocalIdent)(reportError: String => Unit)(implicit pos: Position): JSMethodDef

Builds one JS constructor out of several "init" methods and their dispatcher.

Builds one JS constructor out of several "init" methods and their dispatcher.

This method and the rest of this file are copied verbatim from GenJSCode for scalac, since there is no dependency on the compiler trees/symbols/etc. We are only manipulating IR trees and types.

The only difference is the two parameters overloadIdent and reportError, which are added so that this entire file can be even more isolated.