Environment constructor

Environment({
  1. Environment? enclosing,
})

Creates a new environment, optionally with an enclosing (parent) environment.

enclosing The parent environment for lexical scoping. If null, this becomes a root environment.

Implementation

Environment({Environment? enclosing}) : _enclosing = enclosing {
  D4rtDiag.envAllocs++;
}