JSSuperSelect
org.scalajs.ir.Trees$.JSSuperSelect
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.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AssignLhsclass Treetrait TreeOrJSSpreadclass IRNodeclass Objecttrait Matchableclass Any
Members list
In this article