public void resolveContext(ParseContext context) { TopASTNode headerNode = this.getFirstASTChild(); ReferenceItem<FunctionDeclaration> funcR = (ReferenceItem<FunctionDeclaration>) headerNode.generateModule(context); ModuleObjectBaseItem baseFunc = new ModuleObjectBaseItem(funcR.getname()); ReferenceItem<FunctionHolder> holdRef = context.getRefHandler().findLocalObject(baseFunc, ReferenceUtilities.REF_FUNCTION_HOLDER); if (holdRef != null) { BaseFunction base = new BaseFunction(funcR); ReferenceItem<InstanceFunction> instRef = holdRef.getObject().findReference(base.createReferenceItem()); if (instRef != null) { ReferenceItem basR = instRef.getObject().getBody(); if (basR == null) basR = instRef.getObject().getHead(); if (basR != null) { // Add the local reference to the search reference for internal types and other things ReferenceItem localR = context.getRefHandler().getLocalReference(); ReferenceItem searchR = context.getRefHandler().getSearchReference(); // ModuleObjectCompositeHolder hol = ModuleObjectCompositeHolder.dualHolder("", localR, // searchR); // context.getRefHandler().setSearchReference(hol.createReferenceItem()); context.setActiveReference(basR); context.getRefHandler().setLocalReference(basR); } } } }