Scope constructor

Scope({
  1. Scope? parent,
  2. LuaObject? context,
})

Generic constructor sets depth to parent's depth + 1.

Implementation

Scope({this.parent, this.context}) : depth = (parent?.depth ?? 0) + 1;