Community
Participate
Working Groups
Build Identifier: 20100917-0705 Currently, the org.eclipse.jdt.core.dom.ASTMatcher discovers whether two AST nodes, including their subtrees, are the same. Thus, the match methods return booleans. However, it would be much more usual to return something other than booleans here, namely, information pertaining to the difference between the ASTs in the case that they differ. For example, the match methods could return something like an ASTDifferenceDescriptor, which would include information pertaining to the exact nodes and their positions in the tree that were different. Reproducible: Always
Even just returning the first node that was found to be different would be helpful.