Consider code like:
---
package test;
public static void test() {
return test;
}
---
This will produce two erroneous trees, and the second one only has empty modifiers as its erroneous sub-trees, and as a consequence the start position of the erroneous tree will be -1, which leads to various bad effects. It would be better to use tree.pos.
---
package test;
public static void test() {
return test;
}
---
This will produce two erroneous trees, and the second one only has empty modifiers as its erroneous sub-trees, and as a consequence the start position of the erroneous tree will be -1, which leads to various bad effects. It would be better to use tree.pos.