public GeneratorInfo(FunctionInfo functionInfo) : base(functionInfo.ProjectState._generatorType) { _functionInfo = functionInfo; var nextMeth = VariableDict["next"]; var sendMeth = VariableDict["send"]; _nextMethod = new GeneratorNextBoundBuiltinMethodInfo(this, (BuiltinMethodInfo)nextMeth.First()); _sendMethod = new GeneratorSendBoundBuiltinMethodInfo(this, (BuiltinMethodInfo)sendMeth.First()); _sends = new VariableDef(); }