While training myself about generators I have found a case with the condition stated into the subject. I thought this condition would be true only for root nodes.
The case is the EntityType defined into the Markus Voelter tutorial about entities and attributes. I expect node.parent to be Attribute. node is a parameter of the referent function of the ReferenceMacro.
It's an expected behavior?? Version is 3.1.5 .