Conversation
|
API changes: 4 (Detected by Revapi) Old API: fr.inria.gforge.spoon:spoon-core:jar:7.2.0-20181020.225215-41 / New API: fr.inria.gforge.spoon:spoon-core:jar:7.2.0-SNAPSHOT
|
|
needs merge of #2706 first to pass tests |
3361628 to
23a361e
Compare
|
I rebased on master. Now the test should pass. It is ready for review. |
|
LGTM. We need the corresponding tests to specify this new metamodel concept. |
|
This metamodel concept is used nowhere yet. It will be used in new CtCompilationUnit (PR #2702). So till then it is hard to test it. I have no idea actually what else we should test here. |
|
I made this PR as a minimal baby step, which adds new metamodel element, which is needed by already big enough #2702 |
|
Can we create the node in JDTTreeBuilder in this PR? Then we can test the presence of the node and
the pretty-printing.
|
|
It makes this PR more complicated ... (less baby)
... therefore less compatible with #2707, which is the main purpose of this PR. |
|
I understand.
We can live with that :-) |
This is new Spoon model element, which represents package declaration - the line at top of compilation unit. Example:
It is needed to complete #2702 ... and at the sniper mode of compilation unit header.
Actually it is not used in CompilationUnit. I plan to add it to compilation unit in PR #2702, which changes CompilationUnit a lot so it makes no sense to add it now.