Using a concept's alias in (text)generators

When I try to use node.alias in a property macro, I tend to get nullpointer exceptions. Does anybody have experience with trying node.alias in one of their generators somewheren? Does that work for you? If so, do you have some tips to share on the dos and don'ts?

Thanks!

3 comments
Comment actions Permalink

Please try "node.concept.getConceptAlias();"
Vaclav

0
Comment actions Permalink

@Vaclav Pech Thanks, that works like a charm! Is it a bug that node.alias doesn't work in the way I had expected? Should I make a ticket for it or is that intended behavior?

0
Comment actions Permalink

I agree that this is a bit confusing, but there are two different properties BaseConcept.alias and AbstractConceptDeclaration.conceptAlias. It is the latter that you specify when defining a concept in the structure aspect.

0

Please sign in to leave a comment.