Class: Scope

lib/compiler/codegen/actions~Scope(parent, isFunction)

A lexical scope during analysis.

Constructor

new Scope(parent, isFunction)

Parameters:
Name Type Description
parent Scope | null

The enclosing scope.

isFunction boolean

Whether this is a function scope.

Source:

Members

names :Set:.<string:>

Type:
  • Set:.<string:>
Source:

Methods

has(name) → {boolean}

Parameters:
Name Type Description
name string

The name to test.

Source:
Returns:

Whether this scope or any enclosing one declares it.

Type
boolean