| 1 | <?php |
||
| 18 | class Analyzer |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * A list of parsed rules |
||
| 22 | * |
||
| 23 | * @var array|Symbol[]|Terminal[]|Production[] |
||
| 24 | */ |
||
| 25 | private $parsed; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * A list of kept rule names. |
||
| 29 | * |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $keep; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Analyzer constructor. |
||
| 36 | * @param array $parsed |
||
| 37 | * @param array $keep |
||
| 38 | */ |
||
| 39 | public function __construct(array $parsed, array $keep) |
||
| 44 | |||
| 45 | public function add(string $rule, iterable $tokens) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function getResult(): array |
||
| 57 | } |
||
| 58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.