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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product