gumtree-spoon-ast-diff icon indicating copy to clipboard operation
gumtree-spoon-ast-diff copied to clipboard

Computes the AST difference (aka edit script) between two Spoon Java source code abstract syntax trees

Results 42 gumtree-spoon-ast-diff issues
Sort by recently updated
recently updated
newest added

Currently, the edit script doesn't return the diff between import statements from two versions of a compilation unit. This makes sense as import statements are not a part of the...

https://github.com/SpoonLabs/gumtree-spoon-ast-diff/blob/master/src/main/java/gumtree/spoon/diff/DiffImpl.java#L38 I feel that the use of the `Operation` class in the above line, and maybe in the entire file, should be parametrized with `? extends Operation`. This will reduce...

Hi, currently the depending gumtree version is 2.1.2, however, recently gumtree has been updated to 3.0.0 version, though not published on maven central repository any more but on GitHub Packages...

I had a doubt about how the diff algorithm works. I calculated the diff between these two files: **prev.java** ```java class UpdateMe { } ``` **new.java** ```java class Updated {...

If we update the constructor call of a inner class, e.g: (from case `examples/t_225073`) ``` - new Lock.With(directory.makeLock("commit.lock")) {.. + new Lock.With(directory.makeLock("commit.lock"), COMMIT_LOCK_TIMEOUT) { ... ``` when the diff produces...

I wonder if I can reconstruct the left AST by adding the diff resulted operations and then rewrite the code to a file.

I made a simple program to demonstrate the error as the follows. ```Java import java.io.File; import gumtree.spoon.AstComparator; import spoon.reflect.declaration.CtType; import spoon.support.sniper.internal.ElementSourceFragment; public class TestClass { public static void main(String[] args)...

The virtual nodes should have the position inferred from the children or parent (depending the case). For example, for the virtual that groups modifiers, the start position should be taken...

bug

Hi, Is there a standard/convenient way of applying a subset of found actions? I want to apply them on the left spoon ast to evaluate different intermediary version of an...

# Problematic: The ActionClassifier groups Moves into Root Action moves as done with Insert and Actions (The code is almost the same [see here](https://github.com/SpoonLabs/gumtree-spoon-ast-diff/blob/71e41a9d0e91c1011d3a45b0907c81f2229a813e/src/main/java/gumtree/spoon/diff/ActionClassifier.java#L87) ) However, Moves are different from...

bug