appendTypeName(sb, typeNamesAppended, ((Macro) tm).isFunction() ? "function" : "macro");
static String formatLocationForEvaluationError(Macro macro, int line, int column) { Template t = macro.getTemplate(); return formatLocation("at", t != null ? t.getSourceName() : null, macro.getName(), macro.isFunction(), line, column); }
if (tm instanceof Macro) { Macro macro = (Macro) tm; if (macro.isFunction() && !legacySyntax) { throw new _MiscTemplateException(env, "Routine ", new _DelayedJQuote(macro.getName()), " is a function, not a directive. "
(macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " has no parameter with name ", new _DelayedJQuote(argName), "."); if (argNames.length < argsCnt && catchAllParamName == null) { throw new _MiscTemplateException(this, (macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " only accepts ", new _DelayedToString(argNames.length), " parameters, but got ", new _DelayedToString(argsCnt), ".");
throw new _MiscTemplateException(env, new _ErrorDescriptionBuilder( "When calling ", (isFunction() ? "function" : "macro"), " ", new _DelayedJQuote(name), ", required parameter ", new _DelayedJQuote(argName),
Macro func = (Macro) targetModel; env.setLastReturnValue(null); if (!func.isFunction()) { throw new _MiscTemplateException(env, "A macro cannot be called in an expression. (Functions can be.)");
public String getDescription() { return (isFunction() ? "function " : "macro ") + name; }
appendTypeName(sb, typeNamesAppended, ((Macro) tm).isFunction() ? "function" : "macro");
appendTypeName(sb, typeNamesAppended, ((Macro) tm).isFunction() ? "function" : "macro");
static String formatLocationForEvaluationError(Macro macro, int line, int column) { Template t = macro.getTemplate(); return formatLocation("at", t != null ? t.getSourceName() : null, macro.getName(), macro.isFunction(), line, column); }
static String formatLocationForEvaluationError(Macro macro, int line, int column) { Template t = macro.getTemplate(); return formatLocation("at", t != null ? t.getSourceName() : null, macro.getName(), macro.isFunction(), line, column); }
if (tm instanceof Macro) { Macro macro = (Macro) tm; if (macro.isFunction() && !legacySyntax) { throw new _MiscTemplateException(env, "Routine ", new _DelayedJQuote(macro.getName()), " is a function, not a directive. "
if (tm instanceof Macro) { Macro macro = (Macro) tm; if (macro.isFunction() && !legacySyntax) { throw new _MiscTemplateException(env, "Routine ", new _DelayedJQuote(macro.getName()), " is a function, not a directive. "
(macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " has no parameter with name ", new _DelayedJQuote(argName), "."); if (argNames.length < argsCnt && catchAllParamName == null) { throw new _MiscTemplateException(this, (macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " only accepts ", new _DelayedToString(argNames.length), " parameters, but got ", new _DelayedToString(argsCnt), ".");
(macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " has no parameter with name ", new _DelayedJQuote(argName), "."); if (argNames.length < argsCnt && catchAllParamName == null) { throw new _MiscTemplateException(this, (macro.isFunction() ? "Function " : "Macro "), new _DelayedJQuote(macro.getName()), " only accepts ", new _DelayedToString(argNames.length), " parameters, but got ", new _DelayedToString(argsCnt), ".");
throw new _MiscTemplateException(env, new _ErrorDescriptionBuilder( "When calling ", (isFunction() ? "function" : "macro"), " ", new _DelayedJQuote(name), ", required parameter ", new _DelayedJQuote(argName),
throw new _MiscTemplateException(env, new _ErrorDescriptionBuilder( "When calling ", (isFunction() ? "function" : "macro"), " ", new _DelayedJQuote(name), ", required parameter ", new _DelayedJQuote(argName),
Macro func = (Macro) targetModel; env.setLastReturnValue(null); if (!func.isFunction()) { throw new _MiscTemplateException(env, "A macro cannot be called in an expression. (Functions can be.)");
Macro func = (Macro) targetModel; env.setLastReturnValue(null); if (!func.isFunction()) { throw new _MiscTemplateException(env, "A macro cannot be called in an expression. (Functions can be.)");