getMappedFunction<R> method
ASTExternalFunction<R> ?
getMappedFunction<R>(
- VMContext context,
- String fName, [
- ASTFunctionSignature? parametersSignature
Returns a mapped functions with fName
and optional parametersSignature
.
Implementation
ASTExternalFunction<R>? getMappedFunction<R>(VMContext context, String fName,
[ASTFunctionSignature? parametersSignature]) {
var fSet = _functions[fName];
if (fSet == null) return null;
if (parametersSignature != null) {
return fSet.get(parametersSignature, false) as ASTExternalFunction<R>;
} else {
return fSet.firstFunction as ASTExternalFunction<R>;
}
}