@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|InputDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * @param Readable $file |
27 | 27 | * @param RuleInterface|InputFieldDefinitionNode $ast |
28 | - * @return \Generator|mixed |
|
28 | + * @return TypeDefinition |
|
29 | 29 | */ |
30 | 30 | public function build(Readable $file, RuleInterface $ast) |
31 | 31 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Railt\Io\Readable; |
13 | 13 | use Railt\Parser\Ast\RuleInterface; |
14 | -use Railt\SDL\Frontend\Ast\Definition\InputDefinitionNode; |
|
15 | 14 | use Railt\SDL\Frontend\Ast\Definition\InputFieldDefinitionNode; |
16 | 15 | use Railt\SDL\Frontend\Builder\DefinitionBuilder; |
17 | 16 | use Railt\SDL\IR\Type; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|InterfaceDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $interface = new TypeDefinition($ast->getFullName()); |
32 | 32 | $interface->in($file, $ast->getOffset()); |
33 | 33 | |
34 | - $interface->type = Type::INTERFACE; |
|
34 | + $interface->type = Type::interface; |
|
35 | 35 | $interface->description = $ast->getDescription(); |
36 | 36 | |
37 | 37 | $this->loadInterfaces($ast, $interface); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|ObjectDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|ScalarDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return TypeDefinition |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @param Readable $file |
28 | 28 | * @param RuleInterface|SchemaDefinitionNode $ast |
29 | - * @return \Generator|mixed |
|
29 | + * @return \Generator |
|
30 | 30 | */ |
31 | 31 | public function build(Readable $file, RuleInterface $ast) |
32 | 32 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Railt\Io\Readable; |
13 | 13 | use Railt\Parser\Ast\RuleInterface; |
14 | 14 | use Railt\Reflection\Contracts\Definition\SchemaDefinition; |
15 | -use Railt\SDL\Frontend\Ast\Definition\ObjectDefinitionNode; |
|
16 | 15 | use Railt\SDL\Frontend\Ast\Definition\SchemaDefinitionNode; |
17 | 16 | use Railt\SDL\Frontend\Builder\DefinitionBuilder; |
18 | 17 | use Railt\SDL\IR\Type; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * @param Readable $file |
27 | 27 | * @param RuleInterface|SchemaFieldDefinitionNode $ast |
28 | - * @return \Generator|mixed |
|
28 | + * @return TypeDefinition |
|
29 | 29 | */ |
30 | 30 | public function build(Readable $file, RuleInterface $ast) |
31 | 31 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Railt\Io\Readable; |
13 | 13 | use Railt\Parser\Ast\RuleInterface; |
14 | -use Railt\SDL\Frontend\Ast\Definition\SchemaDefinitionNode; |
|
15 | 14 | use Railt\SDL\Frontend\Ast\Definition\SchemaFieldDefinitionNode; |
16 | 15 | use Railt\SDL\Frontend\Builder\DefinitionBuilder; |
17 | 16 | use Railt\SDL\IR\Type; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * @param Readable $file |
27 | 27 | * @param RuleInterface|UnionDefinitionNode $ast |
28 | - * @return \Generator|mixed |
|
28 | + * @return TypeDefinition |
|
29 | 29 | */ |
30 | 30 | public function build(Readable $file, RuleInterface $ast) |
31 | 31 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Railt\Io\Readable; |
13 | 13 | use Railt\Parser\Ast\RuleInterface; |
14 | -use Railt\SDL\Frontend\Ast\Definition\ObjectDefinitionNode; |
|
15 | 14 | use Railt\SDL\Frontend\Ast\Definition\UnionDefinitionNode; |
16 | 15 | use Railt\SDL\Frontend\Builder\DefinitionBuilder; |
17 | 16 | use Railt\SDL\IR\Type; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @param Readable $file |
23 | 23 | * @param RuleInterface $ast |
24 | - * @return \Generator|mixed|Definition|\Railt\SDL\IR\TypeDefinition|\Railt\SDL\IR\TypeInvocation |
|
24 | + * @return \Generator |
|
25 | 25 | */ |
26 | 26 | public function build(Readable $file, RuleInterface $ast) |
27 | 27 | { |