org.scalajs.core.ir.Trees
Calls a method inherited from the parent class of cls on receiver.
cls
receiver
cls must be a Scala.js-defined JS class.
Given the Scala.js-defined JS class
class Foo extends Bar
The node
JSSuperBrackerCall(ClassType(Foo), receiver, method, args)
which is printed as
receiver.Foo::super[method](...args)
has the following semantics:
Bar.prototype[method].call(receiver, ...args)
If this happens to be located in an instance method of Foo, *and* receiver happens to be This(), this is equivalent to the ES6 statement
Foo
This()
super[method](...args)
Calls a method inherited from the parent class of
cls
onreceiver
.cls
must be a Scala.js-defined JS class.Given the Scala.js-defined JS class
The node
which is printed as
receiver.Foo::super[method](...args)
has the following semantics:
If this happens to be located in an instance method of
Foo
, *and*receiver
happens to beThis()
, this is equivalent to the ES6 statementsuper[method](...args)