コード例 #1
0
 private function compute(\PHPParser_Node $ast)
 {
     $r = new GraphReachability($graph = $this->getCfg($ast));
     $r->compute($ast);
 }
コード例 #2
0
 public function enterScope(NodeTraversal $t)
 {
     $r = new GraphReachability($cfg = $t->getControlFlowGraph());
     $r->compute($cfg->getEntryPoint()->getAstNode());
 }