formatting

This commit is contained in:
Djeeberjr 2023-07-30 23:34:43 +02:00
parent 0fc2d4d397
commit 016063e3be
4 changed files with 35 additions and 38 deletions

View File

@ -1,7 +1,6 @@
package macros;
#if macro
import haxe.macro.TypeTools;
import haxe.macro.Expr.Position;
import haxe.macro.Expr.ComplexType;
@ -10,7 +9,8 @@ import haxe.macro.Type;
class Helper {
public static function resolveType(t:ComplexType, pos:Position):Null<ComplexType> {
if (t == null) return null;
if (t == null)
return null;
return TypeTools.toComplexType(Context.resolveType(t, pos));
}
@ -22,7 +22,6 @@ class Helper {
return TPath({name: "Promise", params: [TPType(t)], pack: ["tink", "core"]});
}
public static function isVoidC(t:ComplexType):Bool {
switch (t) {
case TPath(p):
@ -40,7 +39,5 @@ class Helper {
return false;
}
}
}
#end