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;
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:
- FROM which class (and even method) it started (if it comes from a method in a class)
- TO which method

If there:
- was no editing (not even a requirement)
- the next jump starts from within the last "TO"
then the chain is continued

The whole chain needs to be kept => since it go through more than one method in the base class


Just an idea. (one of many)....
May yet need some fine tuning

Martin

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to