| @@ 45-61 (lines=17) @@ | ||
| 42 | ]; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function enterMethodCall(Insert $insert, Location $location, N\Expr\MethodCall $node) { |
|
| 46 | // The 'name' could also be a variable like in $this->$method(); |
|
| 47 | if (is_string($node->name)) { |
|
| 48 | $method_reference = $insert->_method_reference |
|
| 49 | ( $node->name |
|
| 50 | , $location->_file() |
|
| 51 | , $location->_line() |
|
| 52 | , $location->_column() |
|
| 53 | ); |
|
| 54 | $this->insert_relation_into |
|
| 55 | ( $insert |
|
| 56 | , $location |
|
| 57 | , $method_reference |
|
| 58 | , $location->_line() |
|
| 59 | ); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| 63 | public function enterFunctionCall(Insert $insert, Location $location, N\Expr\FuncCall $node) { |
|
| 64 | // Omit calls to closures, we would not be able to |
|
| @@ 43-58 (lines=16) @@ | ||
| 40 | ]; |
|
| 41 | } |
|
| 42 | ||
| 43 | public function enterMethodCall(Insert $insert, Location $location, N\Expr\MethodCall $node) { |
|
| 44 | // The 'name' could also be a variable like in $this->$method(); |
|
| 45 | if (is_string($node->name)) { |
|
| 46 | $method_reference = $insert->_method_reference |
|
| 47 | ( $node->name |
|
| 48 | , $location->_file() |
|
| 49 | , $location->_line() |
|
| 50 | , $location->_column() |
|
| 51 | ); |
|
| 52 | $this->insert_relation_into |
|
| 53 | ( $insert |
|
| 54 | , $location |
|
| 55 | , $method_reference |
|
| 56 | ); |
|
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| 60 | public function enterFunctionCall(Insert $insert, Location $location, N\Expr\FuncCall $node) { |
|
| 61 | // Omit calls to closures, we would not be able to |
|