Procedure in package body

Hi,
I just wondered why Sigasi is not leading me to the definition of a procedure? The declaration in the package header is recognised and references are found where the procedure is used, but not the definition.
The outline view, as discussed in earlier comments, is working, but it seems like definition and declaration are not connected?

If I search references with the definition as starting point, nothing is found (except the definition itself, of course)

Regards,
Kurt.

[duplicate]

Hi Kurt,
Thanks for asking. Your question comes down to what Ricardo was asking last week. I'll take this as an up-vote for this feature.
http://www.sigasi.com/forum/navigate-package-function-declaration-packag...

Not exactly :-)

It is similar, indeed. But I'd like to stress that the definition is also not highlighted, when the procedure's name is selected anywhere else in the code. That's why I suspect the missing connection...

Thanks for your response
Kurt.

PS: I did a search for 'procedure', but did not find Ricardos entry. :-)

OK, I think I get it now. In

OK, I think I get it now. In the following code snippet, you cannot navigate to function f, because the support for overloaded identifiers is not complete yet. (See http://www.sigasi.com/faq/what-are-overloadables )

package p is
function f (p : integer)
	return integer;
function f (p,q : integer)
	return integer;
 
end package p;
 
use work.p.all;
package t is
	constant c :integer := f(3);
end package t;

Is this what you mean? If not, can you send a code snippet, or a screenshot?

I don't think so

Hi Philippe

I'm back from holidays :-) and found your question (sorry for the delay).

Re-try your snipped, with the body (below) inserted . I also marked the problem on the screenshot.

Regards, Kurt.

package body p is
function f (p : integer) return integer is
begin return p;
end;

end package body p;

Missing bodies...Missing bodies…:

Hi Kurt, Yes, that is a

Hi Kurt,

Yes, that is a slightly different issue. The function specification is not linked to the function implementation, which it should.
Marked as ticket:1645

Philippe

Thanks, and it’s the same for

Thanks, and it's the same for procedures
(and maybe others?)

Kurt.

deferred declaration

Yes, it is the same for all deferred declarations. You can write a constant first and set its value later, in the package body.

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.