JSSuperSelect
sealed case class JSSuperSelect(superClass: Tree, receiver: Tree, item: Tree)(pos: Position) extends AssignLhs
Selects a property inherited from the given superClass on receiver.
Selects a property inherited from the given superClass on receiver.
Given the non-native JS classes
class Bar extends js.Object
class Foo extends Bar
The node
JSSuperBrackerSelect(LoadJSConstructor(ClassName("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.
trait Serializable
trait Product
trait Equals
trait AssignLhs
class Tree
trait TreeOrJSSpread
class IRNode
class Object
trait Matchable
class Any