@@ -16,7 +16,6 @@ |
||
16 | 16 | use Railt\Reflection\Contracts\Reflection; |
17 | 17 | use Railt\Reflection\Document; |
18 | 18 | use Railt\SDL\Exception\VmException; |
19 | -use Railt\SDL\Frontend\IR\Opcode; |
|
20 | 19 | use Railt\SDL\Frontend\IR\OpcodeInterface; |
21 | 20 | |
22 | 21 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param Context $context |
47 | - * @return iterable|OpcodeInterface[] |
|
47 | + * @return \Generator |
|
48 | 48 | */ |
49 | 49 | public function getOpcodes(Context $context): iterable |
50 | 50 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @param NodeInterface|RuleInterface $node |
120 | 120 | * @param Context $context |
121 | - * @return iterable|OpcodeInterface[]|\Generator |
|
121 | + * @return \Generator |
|
122 | 122 | */ |
123 | 123 | private function bypass(NodeInterface $node, Context $context): \Generator |
124 | 124 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @param RuleInterface $key |
167 | 167 | * @param \Generator $iterator |
168 | - * @return \Generator|OpcodeInterface[] |
|
168 | + * @return \Generator |
|
169 | 169 | */ |
170 | 170 | private function extract(RuleInterface $key, \Generator $iterator): \Generator |
171 | 171 | { |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | use Railt\Io\Readable; |
16 | 16 | use Railt\Parser\Ast\NodeInterface; |
17 | 17 | use Railt\Parser\Ast\RuleInterface; |
18 | -use Railt\Parser\Exception\UnexpectedTokenException; |
|
19 | 18 | use Railt\Parser\Exception\UnrecognizedTokenException; |
20 | 19 | use Railt\SDL\Exception\SyntaxException; |
21 | 20 | use Railt\SDL\Frontend\AST\ProvidesOpcode; |
@@ -23,8 +22,6 @@ discard block |
||
23 | 22 | use Railt\SDL\Frontend\IR\Deferred; |
24 | 23 | use Railt\SDL\Frontend\IR\Opcode\OpenOpcode; |
25 | 24 | use Railt\SDL\Frontend\IR\OpcodeInterface; |
26 | -use Railt\SDL\Frontend\IR\Prototype; |
|
27 | -use Railt\SDL\Frontend\IR\UnmountedOpcodeInterface; |
|
28 | 25 | |
29 | 26 | /** |
30 | 27 | * Class Frontend |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | if (! \function_exists('\\iterator_each')) { |
75 | 75 | /** |
76 | - * @param iterable $iterator |
|
76 | + * @param Generator $iterator |
|
77 | 77 | * @param Closure $each |
78 | 78 | * @return Generator |
79 | 79 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | if (! \function_exists('\\iterator_reverse_each')) { |
94 | 94 | /** |
95 | - * @param iterable $iterator |
|
95 | + * @param Generator $iterator |
|
96 | 96 | * @param Closure $each |
97 | 97 | * @return Generator |
98 | 98 | */ |