Attach better position info to embeddedscript commands
This commit is contained in:
@@ -181,11 +181,13 @@ class AsyncEmbeddedScript {
|
|||||||
|
|
||||||
#if debug
|
#if debug
|
||||||
expr = macro { Prelude.print($v{exprString}); $expr; };
|
expr = macro { Prelude.print($v{exprString}); $expr; };
|
||||||
|
expr = expr.expr.withMacroPosOf(nextExp);
|
||||||
#end
|
#end
|
||||||
if (expr != null) {
|
if (expr != null) {
|
||||||
commandList.push(macro function(self, cc) {
|
var c = macro function(self, cc) {
|
||||||
$expr;
|
$expr;
|
||||||
});
|
};
|
||||||
|
commandList.push(c.expr.withMacroPosOf(nextExp));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This return is essential for type unification of concat() and push() above... ugh.
|
// This return is essential for type unification of concat() and push() above... ugh.
|
||||||
|
@@ -71,9 +71,10 @@ class EmbeddedScript {
|
|||||||
var expr = Kiss.readerExpToHaxeExpr(nextExp, k);
|
var expr = Kiss.readerExpToHaxeExpr(nextExp, k);
|
||||||
|
|
||||||
if (expr != null) {
|
if (expr != null) {
|
||||||
commandList.push(macro function(self) {
|
var c = macro function(self) {
|
||||||
$expr;
|
$expr;
|
||||||
});
|
};
|
||||||
|
commandList.push(c.expr.withMacroPosOf(nextExp));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This return is essential for type unification of concat() and push() above... ugh.
|
// This return is essential for type unification of concat() and push() above... ugh.
|
||||||
|
Reference in New Issue
Block a user