| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | namespace Lechimp\Dicto\App; | 
| 12 | 12 | |
| 13 | 13 | use Lechimp\Dicto\App\RuleFromFSLoader; | 
| 14 | - | |
| 15 | 14 | use Symfony\Component\Yaml\Yaml; | 
| 16 | 15 | use Pimple\Container; | 
| 17 | 16 | use PhpParser\ParserFactory; | 
| @@ -75,7 +75,6 @@ discard block | ||
| 75 | 75 | |
| 76 | 76 | /** | 
| 77 | 77 | * @param string $project_root_path | 
| 78 | - * @param Schema[] $rule_schemas | |
| 79 | 78 | */ | 
| 80 | 79 |      public function __construct(\PhpParser\Parser $parser, $project_root_path, Insert $insert) { | 
| 81 | 80 | $this->parser = $parser; | 
| @@ -170,6 +169,10 @@ discard block | ||
| 170 | 169 | } | 
| 171 | 170 | |
| 172 | 171 | // generalizes over over on_enter/leave_xx | 
| 172 | + | |
| 173 | + /** | |
| 174 | + * @param string $what | |
| 175 | + */ | |
| 173 | 176 |      protected function on_enter_or_leave_something($what, $things, \Closure $listener) { | 
| 174 | 177 | $loc = &$this->$what; | 
| 175 | 178 |          if ($things === null) { | 
| @@ -187,6 +190,11 @@ discard block | ||
| 187 | 190 | } | 
| 188 | 191 | |
| 189 | 192 | // generalizes over calls to misc listeners | 
| 193 | + | |
| 194 | + /** | |
| 195 | + * @param string $which | |
| 196 | + * @param N $node | |
| 197 | + */ | |
| 190 | 198 |      protected function call_misc_listener($which, $node) { | 
| 191 | 199 | $listeners = &$this->$which; | 
| 192 | 200 |          foreach ($listeners[0] as $listener) { | 
| @@ -200,6 +208,10 @@ discard block | ||
| 200 | 208 | } | 
| 201 | 209 | } | 
| 202 | 210 | |
| 211 | + /** | |
| 212 | + * @param string $which | |
| 213 | + * @param null|N $node | |
| 214 | + */ | |
| 203 | 215 |      protected function call_entity_listener($which, $type, $id, $node) { | 
| 204 | 216 | $listeners = &$this->$which; | 
| 205 | 217 |          foreach ($listeners[0] as $listener) { | 
| @@ -85,7 +85,6 @@ | ||
| 85 | 85 | * @param int $reference_id | 
| 86 | 86 | * @param string $file where the dependency was created | 
| 87 | 87 | * @param int $line where the dependency was created | 
| 88 | - * @param string $source_line | |
| 89 | 88 | * @return null | 
| 90 | 89 | */ | 
| 91 | 90 | public function relation($name, $entity_id, $reference_id, $file, $line); |