@@ -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 }
@@ -42,9 +42,11 @@ class ComplexTypeUtils {
4242
4343 public static function walkClass (d : Definition <ClassFlag , Array <Field >>, pos : Position , cb : ComplexTypeCallback ) {
4444 walkCommonDefinition (d , pos , cb );
45- for (f in d .flags ) switch f {
46- case HExtends (t ) | HImplements (t ): walkTypePath (t , d .name , pos , cb );
47- default :
45+ for (f in d .flags ) {
46+ switch (f ) {
47+ case HExtends (t ) | HImplements (t ): walkTypePath (t , d .name , pos , cb );
48+ default :
49+ }
4850 }
4951 for (f in d .data ) walkField (f , cb );
5052 }
@@ -61,9 +63,11 @@ class ComplexTypeUtils {
6163
6264 public static function walkAbstract (d : Definition <AbstractFlag , Array <Field >>, pos : Position , cb : ComplexTypeCallback ) {
6365 walkCommonDefinition (d , pos , cb );
64- for (f in d .flags ) switch f {
65- case AFromType (ct ) | AToType (ct ) | AIsType (ct ): walkComplexType (ct , f .getName (), pos , cb );
66- default :
66+ for (f in d .flags ) {
67+ switch (f ) {
68+ case AFromType (ct ) | AToType (ct ) | AIsType (ct ): walkComplexType (ct , f .getName (), pos , cb );
69+ default :
70+ }
6771 }
6872 for (f in d .data ) walkField (f , cb );
6973 }
@@ -129,7 +133,7 @@ class ComplexTypeUtils {
129133 if (e != null ) walkExpr (e , cb );
130134 }
131135 }
132-
136+
133137 public static function walkComplexType (t : ComplexType , name : String , pos : Position , cb : ComplexTypeCallback ) {
134138 cb (t , name , pos );
135139 switch (t ){
0 commit comments