use of com.intellij.pom.tree.events.impl.ReplaceChangeInfoImpl in project intellij-community by JetBrains.
the class CompositeElement method replace.
private static void replace(final TreeChangeEvent sourceTreeChange, final TreeElement oldChild, final TreeElement newChild) {
oldChild.rawReplaceWithList(newChild);
final ReplaceChangeInfoImpl change = new ReplaceChangeInfoImpl(newChild);
sourceTreeChange.addElementaryChange(newChild, change);
change.setReplaced(oldChild);
}
use of com.intellij.pom.tree.events.impl.ReplaceChangeInfoImpl in project intellij-community by JetBrains.
the class ASTDiffBuilder method nodeReplaced.
@Override
public void nodeReplaced(@NotNull ASTNode oldNode, @NotNull ASTNode newNode) {
if (oldNode instanceof FileElement && newNode instanceof FileElement) {
} else {
final ReplaceChangeInfoImpl change = new ReplaceChangeInfoImpl(newNode);
change.setReplaced(oldNode);
myEvent.addElementaryChange(newNode, change);
}
}
Aggregations