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(); }
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(); }