gumtree-spoon-ast-diff
gumtree-spoon-ast-diff copied to clipboard
Computes the AST difference (aka edit script) between two Spoon Java source code abstract syntax trees
The AST diff in the literal value of return is not being reported. ```diff public class NestedLambda { public int iHaveNestedLambda() { Function1 f1 = () -> { Function2 f2...
When applying gumtree-spoon-ast diff to extract the edit scripts between buggy file and fixed one in Defects4j Chart 14, the edit scripts returned have some wrong or meaningless edit script....
https://mvnrepository.com/artifact/fr.inria.gforge.spoon.labs/gumtree-spoon-ast-diff/1.50
**left.java** ```java class Invocation { int a = 1; void checkForSign() { if (a > 0) { System.out.println("y"); } else if (a < 0) { System.out.println("z"); } else { System.out.println("x");...
@monperrus should we make `diffmin` a module inside gumtree-spoon exactly like spoon has multiple modules - `spoon-smpl`, etc? I think it would be better to do it this way because...
`AstComparator.compare(File, File)` only compares the first type of the compilation unit. So, given a file with multiple type declarations, such as this: ```java public class Klass {} class OtherClass {}...
# Summary of the problem The ActionClassifier (probably, IMO) produces an incorrect outputs when **Updates** operations are the **root** operations. # Description of the problem: There are two mains problems....
Same rationale as https://github.com/INRIA/spoon/issues/3919#issue-887351734 behind this issue. We can use [laughing-train](https://github.com/MartinWitt/laughing-train) (@MartinWitt's initiative) to transform the imports and their uses. For more thorough use of Junit5, we can combine some...
We can integrate code coverage using Codecov, which is free for public repositories. Its configuration can be taken from [diffmin](https://github.com/SpoonLabs/diffmin/blob/main/codecov.yml).
`CtVirtualElement.getPosition()` returns an instance of `NoSourcePosition` and that's why the position of such nodes can't be retrieved. This is not a priority issue because it doesn't break any feature of...