|
@@ 266-268 (lines=3) @@
|
| 263 |
|
return; |
| 264 |
|
} |
| 265 |
|
$method = new Class_Method_Declaration( $this->current_relative_path, $node->getLine(), $this->current_class, $node->name->name, $node->isStatic() ); |
| 266 |
|
foreach ( $node->getParams() as $param ) { |
| 267 |
|
$method->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic ); |
| 268 |
|
} |
| 269 |
|
$this->declarations->add( $method ); |
| 270 |
|
} |
| 271 |
|
if ( $node instanceof Node\Stmt\Function_ ) { |
|
@@ 273-275 (lines=3) @@
|
| 270 |
|
} |
| 271 |
|
if ( $node instanceof Node\Stmt\Function_ ) { |
| 272 |
|
$function = new Function_Declaration( $this->current_relative_path, $node->getLine(), $node->name->name ); |
| 273 |
|
foreach ( $node->getParams() as $param ) { |
| 274 |
|
$function->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic ); |
| 275 |
|
} |
| 276 |
|
$this->declarations->add( $function ); |
| 277 |
|
} |
| 278 |
|
} |