Global
org.scalajs.ir.Trees.JSNativeLoadSpec.Global
final case class Global(globalRef: String, path: List[String]) extends JSNativeLoadSpec
Load from the global scope.
The globalRef
is the name of a global variable (found in the global scope). It must be valid according to JSGlobalRef.isValidJSGlobalRefName.
The path
is a series of nested property names starting from that variable.
The path can be empty, in which case this denotes the specified global variable itself.
Examples:
// Foo
Global("Foo", Nil)
// cp.Vect
Global("cp", List("Vect"))
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass JSNativeLoadSpecclass Objecttrait Matchableclass Any
Members list
In this article