DUChain questions

Niko Sams niko.sams at gmail.com
Thu Sep 4 06:13:39 UTC 2008


Hi,

I have a few issues for the php language support:

1. two declarations with different types and the same identifier
within one scope,
example:
class A {}
class B {}
$foo = new A();
$foo = new B();

Currently I create a new declaration on every assignment operation. In
that example
there are two declarations. But the uses don't work correctly - once I
add uses to one declaration
both return them in uses().
What is the correct way to go here?


2. include paths. There is no make-system I could ask about include
paths, those are either
server-configuration or set dynamically in the code. So I think we
need an ui for setting those
include paths.
How/Where should this be implemented, or any other ideas?

3. When a class is used it doesn't necessarily have to be included -
instead i look it up in
the CodeModel. (done so far) But this works only if the used class has
been parsed. Even with whole project
parsing activated it can happen that the used class is parsed after the use.
How can I fix this?

thanks,
Niko




More information about the KDevelop-devel mailing list