throw new AssertionError("Unrecognized nonplugin fn " + nonpluginFn);
}
} else {
// --- Check plugin function. ---
SoyFunction signature = soyFunctionsByName.get(fnName);
if (signature != null) {
Set<Integer> arities = signature.getValidArgsSizes();
// Check arity.
if (!arities.contains(numArgs)) {
throw SoySyntaxException.createWithoutMetaInfo(
"Function '" + fnName + "' called with the wrong number of arguments" +
" (function call \"" + node.toSourceString() + "\").");