mapExternalFunction3<A, B, C, R> method
void
mapExternalFunction3<A, B, C, R>()
Maps an external function with 3 parameters.
Implementation
void mapExternalFunction3<A, B, C, R>(
ASTType<R> fReturn,
String fName,
ASTType<A> pType1,
String pName1,
ASTType<B> pType2,
String pName2,
ASTType<B> pType3,
String pName3,
Function(A p1, B p2) f) {
var fParameters = ASTParametersDeclaration([
ASTFunctionParameterDeclaration(pType1, pName1, 0, false),
ASTFunctionParameterDeclaration(pType2, pName2, 1, false),
ASTFunctionParameterDeclaration(pType3, pName3, 1, false),
], null, null);
var fExternal = ASTExternalFunction(fName, fParameters, fReturn, f);
addExternalFunction(fExternal);
}