Skip to content

Commit

Permalink
skip problematic modules when looking for classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Nov 14, 2023
1 parent 79eba84 commit d14fcd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions haxe/ui/macros/MacroHelpers.hx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ class MacroHelpers {
for (file in files) {
if (StringTools.endsWith(file, ".hx") && !StringTools.startsWith(file, ".")) {
var name:String = file.substr(0, file.length - 3);
var temp:Array<haxe.macro.Type> = Context.getModule(pack + "." + name);
types = types.concat(temp);
try {
var temp:Array<haxe.macro.Type> = Context.getModule(pack + "." + name);
types = types.concat(temp);
} catch (e:Dynamic) { }
}
}
}
Expand Down

0 comments on commit d14fcd6

Please sign in to comment.