return ((Usage)supposedNode).getDeclarationNode();
}
// TODO getValidNodeForUsageAnalysis - what to do with DotIdents?
else if (supposedNode instanceof BinaryOperaionContainer)
{
BinaryOperaionContainer assign = (BinaryOperaionContainer)supposedNode;
if (offset == -1 ||
assign.getToken().getStartIndex() + assign.getToken().getText().length() > offset)
{
node = assign.getLeftOperand();
}
else
{
node = assign.getRightOperand();
}
}
else if (supposedNode instanceof Slice)
{
return ((Slice)supposedNode).getDeclarationNode();