*/
@Override protected void visitFunctionNode(FunctionNode node) {
String fnName = node.getFunctionName();
int numArgs = node.numChildren();
NonpluginFunction nonpluginFn = NonpluginFunction.forFunctionName(fnName);
if (nonpluginFn != null) {
// --- Check nonplugin function. ---
// Check arity.
if (numArgs != nonpluginFn.getNumArgs()) {
throw SoySyntaxException.createWithoutMetaInfo(
"Function '" + fnName + "' called with the wrong number of arguments" +
" (function call \"" + node.toSourceString() + "\").");
}
// Check argument types.