Rename facade and update code to deal with that.

This commit is contained in:
back2dos
2013-09-29 13:07:10 +02:00
parent 8dc700b434
commit fe51e127f2
9 changed files with 13 additions and 13 deletions

21
src/tink/MacroApi.hx Normal file
View File

@@ -0,0 +1,21 @@
package tink;
typedef Positions = tink.macro.Positions;
typedef ExprTools = haxe.macro.ExprTools;
typedef Exprs = tink.macro.Exprs;
typedef Functions = tink.macro.Functions;
typedef Metadatas = tink.macro.Metadatas;
typedef Bouncer = tink.macro.Bouncer;
typedef Types = tink.macro.Types;
typedef Binops = tink.macro.Ops.Binary;
typedef Unops = tink.macro.Ops.Unary;
typedef Outcome<D, F> = tink.core.Outcome<D, F>;
typedef OutcomeTools = tink.core.Outcome.OutcomeTools;
//TODO: consider adding stuff from haxe.macro.Expr here
class MacroApi {
static var idCounter = 0;
static public inline function tempName(?prefix = '__tinkTmp'):String
return prefix + Std.string(idCounter++);
static public function pos() return haxe.macro.Context.currentPos();
}