[Lazarus] Jump to implementation (inspired by Bernd Kreuss Codetool ideas "what is an "identifier"")

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jul 29 00:41:17 CEST 2010


On Wed, 28 Jul 2010 19:56:13 +0100
Martin <lazarus at mfriebe.de> wrote:

> On 28/07/2010 19:27, Martin wrote:
> > I am making this a separate thread, because it got nothing to do with 
> > the old subject "[Lazarus] CodeTools: what is an "identifier""
> >
> > The idea discussed there, fails due to the fact that 
> > "ObjectOfClass_BaseFoo.SomeMethod" can only be resolved to that base 
> > class's SomeMethod.
> >
> > One case where this is annoying is:
> >
> > procedure TSpecialFoo.OtherMethod;
> > begin
> >   BaseOnlyMethod();
> > end;
> >
> > procedure TBaseFoo.OtherMethod;
> should be : procedure TBaseFoo.BaseOnlyMethod;
> > begin
> >   SomeMethod();
> > end;
> >
> > And SomeMethod exists in both => base and specialised class.
> >
> > You (the human reader) knows you started in TSpecialFoo => but 
> > codetool doesn't know.
> >
> > Yet codetool  could know.
> >
> > Codetool could remeber when a "implementation jump happens:

Just to clarify: The IDE jumps, not the codetools. The find declaration
function is not only called to jump. The IDE must remember.

The above can be annoying if not intended or confusing if the user
does not know/understand the feature.

I intend to use the history for the sort of the overrides.

Mattias




More information about the Lazarus mailing list