1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fixes to get Firefox Fast indexed, at least the easy fixes :(.

This commit is contained in:
Doug Schaefer 2006-04-29 17:39:58 +00:00
parent 8bdc08f6f6
commit 8710a1aaa2
2 changed files with 4 additions and 2 deletions

View file

@ -87,7 +87,9 @@ public class CPPFunctionScope extends CPPScope implements ICPPFunctionScope {
IASTName [] ns = qual.getNames(); IASTName [] ns = qual.getNames();
if( ns.length > 1){ if( ns.length > 1){
IBinding binding = ns[ ns.length - 2 ].resolveBinding(); IBinding binding = ns[ ns.length - 2 ].resolveBinding();
if( binding instanceof ICPPClassType ) if (binding == null)
return null;
else if( binding instanceof ICPPClassType )
return ((ICPPClassType)binding).getCompositeScope(); return ((ICPPClassType)binding).getCompositeScope();
else if( binding instanceof ICPPNamespace ) else if( binding instanceof ICPPNamespace )
return ((ICPPNamespace)binding).getNamespaceScope(); return ((ICPPNamespace)binding).getNamespaceScope();

View file

@ -166,7 +166,7 @@ public class PDOMCPPClassType extends PDOMMemberOwner implements ICPPClassType,
} }
public IScope getParent() throws DOMException { public IScope getParent() throws DOMException {
throw new PDOMNotImplementedError(); return null;
} }
public IASTNode getPhysicalNode() throws DOMException { public IASTNode getPhysicalNode() throws DOMException {