예제 #1
0
 public ArrayGlobalAllocator(LanguageContext/*!*/ context) {
     _globalArray = Ast.Parameter(typeof(PythonGlobal[]), "$globalArray");
     _scope = new Scope(new PythonDictionary(new GlobalDictionaryStorage(_globalVals)));
     _context = new CodeContext(_scope, context);
     _array = new GlobalArrayConstant();
 }
예제 #2
0
 public ArrayGlobalAllocator(PythonContext/*!*/ context) {
     _globalArray = Ast.Parameter(typeof(PythonGlobal[]), "$globalArray");
     _modContext = new ModuleContext(new PythonDictionary(new GlobalDictionaryStorage(_globalVals)), context);
     _context = _modContext.GlobalContext;
     _array = new GlobalArrayConstant();
 }