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