fix bug in new makeSymbolName()
This commit is contained in:
@@ -642,6 +642,10 @@ class Prelude {
|
||||
#if macro
|
||||
namespace = haxe.io.Path.withoutExtension(haxe.io.Path.withoutDirectory(haxe.macro.Context.getPosInfos(haxe.macro.Context.currentPos()).file));
|
||||
#end
|
||||
|
||||
// I guess currentPos() can return '?' for the file...
|
||||
namespace = namespace.replace("?", "");
|
||||
|
||||
if (!symbols.exists(namespace)) symbols[namespace] = 0;
|
||||
|
||||
return 's${symbols[namespace]++}___${namespace}';
|
||||
|
||||
Reference in New Issue
Block a user