Skip to content

Commit 24f95be

Browse files
committed
Move types to lang.ast.emit package
1 parent aca3aad commit 24f95be

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/main/php/lang/ast/Result.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php namespace lang\ast;
22

3-
use lang\ast\types\{Declaration, Reflection};
3+
use lang\ast\emit\{Declaration, Reflection};
44

55
class Result {
66
public $out;
@@ -36,7 +36,7 @@ public function temp() {
3636
* Looks up a given type
3737
*
3838
* @param string $type
39-
* @return lang.ast.types.Type
39+
* @return lang.ast.emit.Type
4040
*/
4141
public function lookup($type) {
4242
if ('self' === $type || 'static' === $type || $type === $this->type[0]->name) {

src/main/php/lang/ast/types/Declaration.class.php renamed to src/main/php/lang/ast/emit/Declaration.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace lang\ast\types;
1+
<?php namespace lang\ast\emit;
22

33
use lang\ast\nodes\{EnumCase, Property};
44

src/main/php/lang/ast/emit/PHP81.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php namespace lang\ast\emit;
22

33
use lang\ast\Node;
4-
use lang\ast\types\Type;
54
use lang\ast\types\{IsUnion, IsFunction, IsArray, IsMap, IsNullable, IsValue, IsLiteral};
65

76
/**

src/main/php/lang/ast/types/Reflection.class.php renamed to src/main/php/lang/ast/emit/Reflection.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace lang\ast\types;
1+
<?php namespace lang\ast\emit;
22

33
use lang\{Enum, ClassNotFoundException};
44

src/main/php/lang/ast/types/Type.class.php renamed to src/main/php/lang/ast/emit/Type.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace lang\ast\types;
1+
<?php namespace lang\ast\emit;
22

33
abstract class Type {
44
public static $ENUMS;

0 commit comments

Comments
 (0)