Is an ICommentAssociater used during serialization (anymore)? [message #1838398] |
Wed, 24 February 2021 07:53 |
Petru-Florin Mihancea Messages: 4 Registered: February 2021 |
Junior Member |
|
|
Hi,
In the language we are developing we can write something like this:
a = b + /*comment1*/ c /*comment2*/
Nothing complicated. However, serialising the EObject associated to the AddExpression (so, not the entire model) results in a string that doesn't contain the second comment (i.e., /*comment2*/). According to the documentation (https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#serialization) I would expect to also have that comment too in the result (as a result of using - the default - ICommentAssociater).
The problem looks to be that the ICommentAssociater is never invoked during serialization (xtext 2.22). The single invocations to it (at the code level) look to come from the old *parsetree.reconstruct* code.
Is there a newer way for comments association for the latest serializer or is this something that was just missed?
Regards,
Petru Mihancea
[Updated on: Fri, 26 February 2021 18:48] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds