You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comment property not working in the object model #99
Hi,
I'm trying to use comment property from bounded context, but they are always empty (I tried on other types and it's the same). It works for doc property, but that is not available on all DSL object types (and it's not in bounded context object).
This is how I defined the BC.
/Comment line1
Comment line 2/
BoundedContext Test implements TestDomain {
type FEATURE
}
From Freemaker template I get the BC, but the comment property is not working ${bc.comment}
The comment syntax is actually the same as in Java:
// one line comment/* multi line comment */
However, it is unfortunately a known issue that the comments content are not parsed. You have to use the doc property if you want to parse the content. That was actually the reason why we introduced it.
I would be happy if someone could tell me how the comments can be parsed with Xtext :)
Ok - I like using doc, but it's not available on important objects. I want to generate nice diagrams with documentation and it's important to have the doc property especially on context map and business context.
I'm not sure I understand the way it works. I actually want to modify many things :), but I'm rusty with java and the other frameworks used are completely new to me. This one is just about changing ContextMappingDSL.xtext?
Is it possible to make the change and see how it works locally with the Visual Studio extension?
thx
Activity
listrate77 commentedon Feb 5, 2025
I see that * "star" char was removed from my comment - I'm using correct notation for multi line comments
stefan-ka commentedon Feb 5, 2025
Hi @listrate77
The comment syntax is actually the same as in Java:
However, it is unfortunately a known issue that the comments content are not parsed. You have to use the doc property if you want to parse the content. That was actually the reason why we introduced it.
I would be happy if someone could tell me how the comments can be parsed with Xtext :)
Best regards,
Stefan
listrate77 commentedon Feb 5, 2025
Ok - I like using doc, but it's not available on important objects. I want to generate nice diagrams with documentation and it's important to have the doc property especially on context map and business context.
stefan-ka commentedon Feb 5, 2025
Should be possible to add it where needed, I would say. Would you be interested to create a PR?
Best regards,
Stefan
listrate77 commentedon Feb 5, 2025
What do I need to do?
I'm not sure I understand the way it works. I actually want to modify many things :), but I'm rusty with java and the other frameworks used are completely new to me. This one is just about changing ContextMappingDSL.xtext?
Is it possible to make the change and see how it works locally with the Visual Studio extension?
thx