Beispiel #1
0
 public int TopIndex()
 {
     if (_localScopesCount > 0)
     {
         return(_moduleCtx.TopIndex() + OUTER_CTX_SIZE);
     }
     else
     {
         return(_outerCtx.TopIndex());
     }
 }
Beispiel #2
0
 public ModuleCompilerContext(CompilerContext outerContext)
 {
     _outerCtx      = outerContext;
     _moduleCtx     = new CompilerContext();
     OUTER_CTX_SIZE = _outerCtx.TopIndex() + 1;
 }
 public ModuleCompilerContext(CompilerContext outerContext)
 {
     _outerCtx = outerContext;
     _moduleCtx = new CompilerContext();
     OUTER_CTX_SIZE = _outerCtx.TopIndex()+1;
 }