getFunction method

ASTFunctionDeclaration? getFunction(
  1. String fName,
  2. ASTFunctionSignature parametersSignature,
  3. VMContext context, {
  4. 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;
}