Lexical scopes

Internal properties

NameDescription
[[Parent]]Optional parent scope.
[[OpenNamespaces]]Open namespace list.
[[Properties]]The scope properties.
[[Imports]]The import list.

Import list

The import list may contain package single imports, package wildcard imports, and package recursive imports.

Scope variants

With scope

The with scope is created by the with statement, causing the wildcard * expression to resolve to the parenthesized object.

with (object.from.somewhere)
    *.x *= 10,
    *.y *= 3;

Added internal properties

NameDescription
[[Object]]Object used in the with statement.

Class scope

Added internal properties

NameDescription
[[Class]]Class object.

Enum scope

Added internal properties

NameDescription
[[Class]]Class object.

Interface scope

Added internal properties

NameDescription
[[Interface]]The interface.

Package scope

Added internal properties

NameDescription
[[Package]]Package.

Activation

Method bodies create an activation as scope. The filter operator creates an activation specifying a [[FilterBase]] to create a wildcard * binding.

Added internal properties

NameDescription
[[This]]The this object.
[[Method]]Method.
[[FilterBase]]Base object of the filter operator.