Fix data dependency
Created by: jacosro
Fixed data dependency. Now it works as before.
Changes:
- Fixed for statement data dependency generation
- Now, when a new
GraphNode
is created, the relatedASTNode
is analyzed for variables, no matter the type theASTNode
is (formerly, the ASTNode was analyzed only if it was aStatement
) - Added
ASTUtils.equalsWithRange()
, which compares equality between two nodes, including its ranges - Added
ASTUtils.equalsWithRangeInCU()
, which compares equality between two nodes, including its ranges and itsCompilationUnit
s -
findNodeByASTNode()
now usesASTUtils.equalsWithRangeInCU()
to check for equality