Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Is an ICommentAssociater used during serialization (anymore)?
Is an ICommentAssociater used during serialization (anymore)? [message #1838398] Wed, 24 February 2021 07:53
Petru-Florin Mihancea is currently offline Petru-Florin MihanceaFriend
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

Previous Topic:Xtext integration with Sirius and Papyrus
Next Topic:Real time synchronization between GMF and Xtext
Goto Forum:
  


Current Time: Fri May 14 11:35:14 GMT 2021

Powered by FUDForum. Page generated in 0.01525 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top