public Scope(AstNode node, Scope parent) { Node = node; Parent = parent; Level = (short)(parent == null ? 0 : parent.Level + 1); }
public Type Type; //for use in typed languages or for type inference //we allow slot creation only through Scope.CreateSlot method internal SlotInfo(Scope scope, string name, int index) { Scope = scope; Name = name; Index = index; }