<p><br>
Am 14.03.2011 17:15 schrieb "Sven Brauch" <<a href="mailto:svenbrauch@googlemail.com">svenbrauch@googlemail.com</a>>:<br>
><br>
> Hi,<br>
><br>
> I tried wrapping a context around every file, but for some reason that<br>
> screws up about everything. So if possible, I'd like to avoid that.</p>
<p>In what way does it screw up?</p>
<p>> Could you maybe explain again which conditions must be met so a<br>
> declaration can be found by findDeclaration()? I tried opening a new<br>
> context when processing the import statement, then adding the imported<br>
> files top-context into that newly opened one (using<br>
> addImportedParentContext), but when doing a search for a declaration<br>
> from the added context it apparently still fails. Why?</p>
<p>The declaration has to be in the symbol table, then it should work. Try looking into findDeclaration and check at which point it fails.</p>
<p>Greetings, David</p>