public static function castReflectionGenerator(\ReflectionGenerator $c, array $a, Stub $stub, $isNested)
 {
     $prefix = Caster::PREFIX_VIRTUAL;
     if ($c->getThis()) {
         $a[$prefix . 'this'] = new CutStub($c->getThis());
     }
     $x = $c->getFunction();
     $frame = array('class' => isset($x->class) ? $x->class : null, 'type' => isset($x->class) ? $x->isStatic() ? '::' : '->' : null, 'function' => $x->name, 'file' => $c->getExecutingFile(), 'line' => $c->getExecutingLine());
     if ($trace = $c->getTrace(DEBUG_BACKTRACE_IGNORE_ARGS)) {
         $x = new \ReflectionGenerator($c->getExecutingGenerator());
         array_unshift($trace, array('function' => 'yield', 'file' => $x->getExecutingFile(), 'line' => $x->getExecutingLine() - 1));
         $trace[] = $frame;
         $a[$prefix . 'trace'] = new TraceStub($trace, false, 0, -1, -1);
     } else {
         $x = new FrameStub($frame, false, true);
         $x = ExceptionCaster::castFrameStub($x, array(), $x, true);
         $a[$prefix . 'executing'] = new EnumStub(array($frame['class'] . $frame['type'] . $frame['function'] . '()' => $x[$prefix . 'src']));
     }
     return $a;
 }