@@ -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,7 +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 | 25 | |
| 28 | 26 | /** |
| 29 | 27 | * Class Frontend |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | private function log($value): void |
| 106 | 106 | { |
| 107 | 107 | if ($value instanceof OpcodeInterface) { |
| 108 | - $this->logger->debug((string)$value); |
|
| 108 | + $this->logger->debug((string) $value); |
|
| 109 | 109 | } else { |
| 110 | 110 | $this->logger->info(\gettype($value)); |
| 111 | 111 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | if ($child instanceof ProvidesOpcode) { |
| 132 | 132 | $iterator = $this->extract($child, $child->getOpcodes($context)); |
| 133 | 133 | |
| 134 | - yield from \iterator_reverse_each($iterator, function ($response) use (&$deferred): void { |
|
| 134 | + yield from \iterator_reverse_each($iterator, function($response) use (&$deferred): void { |
|
| 135 | 135 | // In the event that the parent sends a deferred callback |
| 136 | 136 | // back, we memorize the reference to him in order |
| 137 | 137 | // to fulfill in the future. |
@@ -44,11 +44,11 @@ |
||
| 44 | 44 | $parent = $context->create(); |
| 45 | 45 | $current = yield new DefineOpcode($this->getFullNameValue(), new TypeValue($this->getType())); |
| 46 | 46 | |
| 47 | - yield function () use ($current, $parent) { |
|
| 47 | + yield function() use ($current, $parent) { |
|
| 48 | 48 | yield new AddDefinitionOpcode($current, $parent); |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | - if (! ($description = $this->getDescriptionValue()) instanceof NullValue) { |
|
| 51 | + if (!($description = $this->getDescriptionValue()) instanceof NullValue) { |
|
| 52 | 52 | yield new AddDescriptionOpcode($current, $description); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function getOpcodes(Context $context): iterable |
| 43 | 43 | { |
| 44 | - yield from \iterator_each(parent::getOpcodes($context), function ($result): void { |
|
| 44 | + yield from \iterator_each(parent::getOpcodes($context), function($result): void { |
|
| 45 | 45 | if ($result instanceof AddDefinitionOpcode) { |
| 46 | 46 | $result->rebind(OpcodeInterface::RL_ADD_FIELD); |
| 47 | 47 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function getOpcodes(Context $context): iterable |
| 50 | 50 | { |
| 51 | - yield from \iterator_each(parent::getOpcodes($context), function ($result): void { |
|
| 51 | + yield from \iterator_each(parent::getOpcodes($context), function($result): void { |
|
| 52 | 52 | if ($result instanceof AddDefinitionOpcode) { |
| 53 | 53 | $result->rebind(OpcodeInterface::RL_ADD_ARGUMENT); |
| 54 | 54 | } |
@@ -55,11 +55,11 @@ |
||
| 55 | 55 | $parent = $context->create(); |
| 56 | 56 | $current = yield new DefineOpcode($this->getNameValue(), new TypeValue($this->getType())); |
| 57 | 57 | |
| 58 | - yield function () use ($current, $parent) { |
|
| 58 | + yield function() use ($current, $parent) { |
|
| 59 | 59 | yield new AddDefinitionOpcode($current, $parent); |
| 60 | 60 | }; |
| 61 | 61 | |
| 62 | - if (! ($description = $this->getDescriptionValue()) instanceof NullValue) { |
|
| 62 | + if (!($description = $this->getDescriptionValue()) instanceof NullValue) { |
|
| 63 | 63 | yield new AddDescriptionOpcode($current, $description); |
| 64 | 64 | } |
| 65 | 65 | } |