addLocalDeclarations(node, flags);
addLocalDeclarations(node, offset, flags);
	public IBinding[] getDeclarationsInScope(CompilationUnit root, int offset, int flags) {		fRoot= root;		try {			NodeFinder finder= new NodeFinder(offset, 0);			root.accept(finder);			ASTNode node= finder.getCoveringNode();			if (node == null) {				return null;			}			ITypeBinding binding= null;			if (node instanceof SimpleName) {				SimpleName selector= (SimpleName) node;								binding= getQualifier(selector);				if (binding == null) {					addLocalDeclarations(selector, flags);					binding= ASTResolving.getBindingOfParentType(selector);				}				} else {				addLocalDeclarations(node, flags);				binding= ASTResolving.getBindingOfParentType(node);							}			if (binding != null) {				addTypeDeclarations(binding, flags);			}					return (IBinding[]) fRequestor.toArray(new IBinding[fRequestor.size()]);		} finally {			clearLists();					}	}