Exemplo n.º 1
0
 public Scope(AstNode node, Scope parent)
 {
     Node   = node;
     Parent = parent;
     Level  = (short)(parent == null ? 0 : parent.Level + 1);
 }
Exemplo n.º 2
0
 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;
 }