You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (ctx.reporter.hasErrors) splice else transform(evaluatedSplice)
432
+
}
433
+
elseif (!ctx.owner.is(Transparent)) { // level 0 outside a transparent definition
434
+
ctx.error(i"splice outside quotes or transparent method", splice.pos)
435
+
splice
436
+
}
437
+
elseif (Splicer.canBeSpliced(splice.qualifier)) { // level 0 inside a transparent definition
438
+
nested(isQuote =false).split(splice.qualifier) // Just check PCP
439
+
splice
440
+
}
441
+
else { // level 0 inside a transparent definition
442
+
ctx.error("Malformed macro call. The contents of the ~ must call a static method and arguments must be quoted or transparent.".stripMargin, splice.pos)
443
+
splice
444
+
}
435
445
}
436
446
437
447
/** Transforms the contents of a nested splice
@@ -549,18 +559,6 @@ class ReifyQuotes extends MacroTransformWithImplicits {
0 commit comments