An object for computing adjusted source ranges for AST nodes that are being replaced or deleted.
For example, a refactoring like inline method may choose to replace calls to the method but leave intact any comments immediately preceding the calls. On the other hand, a refactoring like extract method may choose to extract not only the nodes for the selected code but also any comments preceding or following them.
Clients should subclass if they need to influence the the source range to be affected when replacing or deleting a particular node. An instance of the subclass should be registered with {@link ASTRewrite#setTargetSourceRangeComputer(TargetSourceRangeComputer)}. During a call to {@link ASTRewrite#rewriteAST(org.eclipse.jface.text.IDocument,java.util.Map)}, the {@link #computeSourceRange(ASTNode)} method on this object will beused to compute the source range for a node being deleted or replaced.
@since 3.1