@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Railt\Io\Readable; |
| 15 | 15 | use Railt\Reflection\Contracts\Reflection; |
| 16 | 16 | use Railt\Reflection\Document; |
| 17 | -use Railt\SDL\Frontend\Context\LocalContext; |
|
| 18 | 17 | use Railt\SDL\Frontend\Record\RecordInterface; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -14,14 +14,12 @@ |
||
| 14 | 14 | use Psr\Log\LoggerInterface; |
| 15 | 15 | use Railt\Io\File; |
| 16 | 16 | use Railt\Io\Readable; |
| 17 | -use Railt\Reflection\Contracts\Document as DocumentInterface; |
|
| 18 | 17 | use Railt\Reflection\Contracts\Document; |
| 19 | 18 | use Railt\Reflection\Reflection; |
| 20 | 19 | use Railt\SDL\Compiler\Dictionary; |
| 21 | 20 | use Railt\SDL\Compiler\Store; |
| 22 | 21 | use Railt\SDL\Exception\CompilerException; |
| 23 | 22 | use Railt\SDL\Exception\InternalException; |
| 24 | -use Railt\SDL\Frontend\Context\LocalContext; |
|
| 25 | 23 | use Railt\SDL\Frontend\Record\RecordInterface; |
| 26 | 24 | |
| 27 | 25 | /** |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * @param Readable $file |
| 88 | 88 | * @param RuleInterface $ast |
| 89 | - * @return iterable|RecordInterface[] |
|
| 89 | + * @return \Generator |
|
| 90 | 90 | */ |
| 91 | 91 | public function build(Readable $file, RuleInterface $ast): iterable |
| 92 | 92 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * @param ContextInterface $context |
| 116 | 116 | * @param RuleInterface $ast |
| 117 | - * @return mixed|\Traversable|void |
|
| 117 | + * @return ContextInterface |
|
| 118 | 118 | * @throws \Railt\Io\Exception\ExternalFileException |
| 119 | 119 | */ |
| 120 | 120 | private function resolve(ContextInterface $context, RuleInterface $ast) |