@@ -9,7 +9,7 @@ import haxeparser.Data.EnumConstructor;
99import haxe .macro .Expr ;
1010
1111class ComplexTypeUtils {
12-
12+
1313 public static function walkFile (file : { pack : Array <String >, decls : Array <TypeDecl > }, cb : ComplexTypeCallback ) {
1414 for (decl in file .decls ) walkTypeDecl (decl , cb );
1515 }
@@ -43,7 +43,7 @@ class ComplexTypeUtils {
4343 public static function walkClass (d : Definition <ClassFlag , Array <Field >>, pos : Position , cb : ComplexTypeCallback ) {
4444 walkCommonDefinition (d , pos , cb );
4545 for (f in d .flags ) {
46- switch f {
46+ switch ( f ) {
4747 case HExtends (t ) | HImplements (t ): walkTypePath (t , d .name , pos , cb );
4848 default :
4949 }
@@ -64,7 +64,7 @@ class ComplexTypeUtils {
6464 public static function walkAbstract (d : Definition <AbstractFlag , Array <Field >>, pos : Position , cb : ComplexTypeCallback ) {
6565 walkCommonDefinition (d , pos , cb );
6666 for (f in d .flags ) {
67- switch f {
67+ switch ( f ) {
6868 case AFromType (ct ) | AToType (ct ) | AIsType (ct ): walkComplexType (ct , f .getName (), pos , cb );
6969 default :
7070 }
@@ -133,7 +133,7 @@ class ComplexTypeUtils {
133133 if (e != null ) walkExpr (e , cb );
134134 }
135135 }
136-
136+
137137 public static function walkComplexType (t : ComplexType , name : String , pos : Position , cb : ComplexTypeCallback ) {
138138 cb (t , name , pos );
139139 switch (t ){
0 commit comments