if (element instanceof FunctionDefn) {
////
/// Process a function definition
//
final FunctionDefn function = (FunctionDefn)element;
final IdentifierInfo.TopLevel.FunctionOrClassMethod functionIdentifier = new IdentifierInfo.TopLevel.FunctionOrClassMethod(
QualifiedName.make(currentModuleName, function.getName()));
functionAndClassMethodBindings.put(
function.getName(),
Binding.Definition.make(functionIdentifier, function, function.getNameSourceRange()));
if (function instanceof FunctionDefn.Foreign) {
// for a foreign function, we record the foreign descriptor
if (shouldRecordScope) {
handleForeignFunctionDescriptor(