org.scalajs.core.ir.Trees
Selects a property inherited from the given superClass on receiver.
superClass
receiver
Given the non-native JS classes
class Bar extends js.Object class Foo extends Bar
The node
JSSuperBrackerSelect(LoadJSConstructor(ClassType(Bar)), qualifier, item)
which is printed as
super(constructorOf[Bar])::qualifier[item]
has the semantics of an ES6 super reference
super[item]
as if it were in an instance method of Foo with qualifier as the this value.
Foo
qualifier
this
Selects a property inherited from the given
superClass
onreceiver
.Given the non-native JS classes
The node
which is printed as
super(constructorOf[Bar])::qualifier[item]
has the semantics of an ES6 super reference
super[item]
as if it were in an instance method of
Foo
withqualifier
as thethis
value.