|
@@ -38,15 +38,11 @@ class ExprTools {
|
|
|
/**
|
|
|
Returns the `Position` where the caller of `makeMacroPosition` is.
|
|
|
**/
|
|
|
- macro public static function makeMacroPosition():ExprOf<Position>
|
|
|
- {
|
|
|
+ macro public static function makeMacroPosition():ExprOf<Position> {
|
|
|
var positionExpr = Context.makeExpr(Context.getPosInfos(Context.currentPos()), Context.currentPos());
|
|
|
- if (Context.defined("macro"))
|
|
|
- {
|
|
|
+ if (Context.defined("macro")) {
|
|
|
return macro Context.makePosition($positionExpr);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
+ } else {
|
|
|
return positionExpr;
|
|
|
}
|
|
|
}
|