Closed stephan-herrmann closed 3 weeks ago
@jarthana while this already produces desired results (and passes even JDT/UI tests), I'm a short in additional tests. From the experience of previous AST additions, can you recommend which test would be good to extend here?
Documenting one oddity:
To cleanly separate strategies before vs since JLS23 I had to let JLS23-mode represent all modifiers using list modifiers()
.
ASTConverter
can use valid source positions (thanks to a small addition in Parser) to create the Modifier
instanceCreateImportOperation
still want to use setStatic(boolean)
Modifier
without source positionsFor code manipulation those synthesized Modifier
s work fine, we just need to be sure, that setStatic(boolean)
is never called in a situation where valid source positions are needed (I made a corresponding note in the method's javadoc).
@jarthana while this already produces desired results (and passes even JDT/UI tests), I'm a short in additional tests. From the experience of previous AST additions, can you recommend which test would be good to extend here?
I'm still open to suggestions :)
fixes https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2834