Home Reference Source
import Scope from 'esper.js/src/Scope.js'
public class | source

Scope

Constructor Summary

Public Constructor
public

constructor(realm: *)

Member Summary

Public Members
public

global: *

public

object: *

public

parent: *

public

realm: *

public
public

thiz: *

public

top: *

public

writeTo: *

public

Method Summary

Public Methods
public

add(name: *, value: *)

public

addBlock(name: *, value: *)

public

addConst(name: *, value: *)

public
public
public

fromNative(value: *, x: *): *

public

get(name: string): Value

public
public

has(name: *): *

public

put(name: string, value: Value, s: Scope): *

Set the identifier in its nearest scope, or create a global.

public

ref(name: *): *

public

set(name: string, value: Value): *

Set the identifier in its nearest scope, or create a global.

Public Constructors

public constructor(realm: *) source

Params:

NameTypeAttributeDescription
realm *

Public Members

public global: * source

public object: * source

public parent: * source

public realm: * source

public strict: boolean source

public thiz: * source

public top: * source

public writeTo: * source

public writeToBlock: * source

Public Methods

public add(name: *, value: *) source

Params:

NameTypeAttributeDescription
name *
value *

public addBlock(name: *, value: *) source

Params:

NameTypeAttributeDescription
name *
value *

public addConst(name: *, value: *) source

Params:

NameTypeAttributeDescription
name *
value *

public createBlockChild(): * source

Return:

*

public createChild(): * source

Return:

*

public fromNative(value: *, x: *): * source

Params:

NameTypeAttributeDescription
value *
x *

Return:

*

public get(name: string): Value source

Params:

NameTypeAttributeDescription
name string

Identifier to retreive

Return:

Value

public getVariableNames(): * source

Return:

*

public has(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public put(name: string, value: Value, s: Scope): * source

Set the identifier in its nearest scope, or create a global.

Params:

NameTypeAttributeDescription
name string

Identifier to retreive

value Value

New vaalue of variable

s Scope

Code scope to run setter functions in

Return:

*

public ref(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public set(name: string, value: Value): * source

Set the identifier in its nearest scope, or create a global.

Params:

NameTypeAttributeDescription
name string

Identifier to retreive

value Value

New vaalue of variable

Return:

*