Fix some haxemeta expression errors
This commit is contained in:
@@ -573,7 +573,7 @@ class Kiss {
|
|||||||
case CallExp({pos: _, def: Symbol(ff)}, args) if (fieldForms.exists(ff) && !macroExpandOnly):
|
case CallExp({pos: _, def: Symbol(ff)}, args) if (fieldForms.exists(ff) && !macroExpandOnly):
|
||||||
checkNumArgs(ff);
|
checkNumArgs(ff);
|
||||||
var field = fieldForms[ff](exp, args.copy(), k);
|
var field = fieldForms[ff](exp, args.copy(), k);
|
||||||
if (metaNames != null) {
|
if (metaNames != null && metaNames.length > 0) {
|
||||||
field.meta = [];
|
field.meta = [];
|
||||||
while (metaNames.length > 0) {
|
while (metaNames.length > 0) {
|
||||||
field.meta.push({
|
field.meta.push({
|
||||||
@@ -694,7 +694,7 @@ class Kiss {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
if (metaNames != null && !macroExpandOnly) {
|
if (metaNames != null && metaNames.length > 0 && !macroExpandOnly) {
|
||||||
expr = Right(EMeta({
|
expr = Right(EMeta({
|
||||||
name: metaNames.pop(),
|
name: metaNames.pop(),
|
||||||
params: metaParams.pop(),
|
params: metaParams.pop(),
|
||||||
|
Reference in New Issue
Block a user