File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/php/lang/ast/emit Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ protected function emitArguments($result, $arguments) {
41
41
}
42
42
43
43
protected function emitEnumCase ($ result , $ case ) {
44
+
45
+ // TODO: Once enum PR is merged, remove this conditional and refactor the
46
+ // code into a `RewriteEnums` trait to be included for all other versions
44
47
if (Type::$ ENUMS ) {
45
48
$ result ->out ->write ('case ' .$ case ->name );
46
49
if ($ case ->expression ) {
@@ -54,6 +57,9 @@ protected function emitEnumCase($result, $case) {
54
57
}
55
58
56
59
protected function emitEnum ($ result , $ enum ) {
60
+
61
+ // TODO: Once enum PR is merged, remove this conditional and refactor the
62
+ // code into a `RewriteEnums` trait to be included for all other versions
57
63
if (Type::$ ENUMS ) {
58
64
array_unshift ($ result ->type , $ enum );
59
65
array_unshift ($ result ->meta , []);
You can’t perform that action at this time.
0 commit comments