Global

dotty.tools.sjs.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

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product