envrec

package
v0.0.0-...-d03bbad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decl

type Decl struct {
	// contains filtered or unexported fields
}

Declarative environment record https://es5.github.io/#x10.2.1

func NewDeclEnv

func NewDeclEnv() *Decl

func (*Decl) Del

func (env *Decl) Del(name utf16.Str) bool

func (*Decl) Get

func (env *Decl) Get(name utf16.Str, musterr bool) (types.Value, error)

func (*Decl) Has

func (env *Decl) Has(name utf16.Str) bool

func (*Decl) ImplicitThis

func (env *Decl) ImplicitThis() types.Value

func (*Decl) New

func (env *Decl) New(name utf16.Str, candelete bool) error

func (*Decl) Set

func (env *Decl) Set(name utf16.Str, v types.Value, musterr bool) error

type Env

type Env interface {
	Has(name utf16.Str) bool
	New(name utf16.Str, candelete bool) error
	Set(name utf16.Str, value types.Value, musterr bool) error
	Get(name utf16.Str, musterr bool) (types.Value, error)
	Del(name utf16.Str) bool

	ImplicitThis() types.Value
}

Env is an environment record storage

type Record

type Record struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL