getFunction method
ASTFunctionDeclaration?
getFunction(
- String fName,
- ASTFunctionSignature parametersSignature,
- VMContext context, {
- bool caseInsensitive = false,
Returns a function with fName
and parametersSignature
(using context
if needed).
Implementation
ASTFunctionDeclaration? getFunction(
String fName, ASTFunctionSignature parametersSignature, VMContext context,
{bool caseInsensitive = false}) {
for (var cu in _codeUnits) {
var f = cu.root!.getFunction(fName, parametersSignature, context,
caseInsensitive: caseInsensitive);
if (f != null) return f;
}
return null;
}