I have a concept "PartyDeclaration" with child "Party" and a name. The "Party" concept has a child "input" of type InputDeclaration. The InputDeclaration can be accessed via the concept "InputRef", and the PartyDeclaration via the concept "PartyRef". I want to be able to access this input from a PartyRef with a DotExpression, and thus my InputRef concept extends IOperation. This works, I now can access all inputs via a dot after the parties name. See the following picture:
But as you can see, the auto-complete menu includes the input from all the parties, not just the one from which it is accessed (here Y). I tried to add "can be child" constraints to InputReference, so that the operand and operation of the DotExpression have to point to the same Party. My attempt is as follows:
Now, I do get no suggestions when trying to do a dot expression. I realised that this was because "node" is null at the moment when this constraint is called and thus the comparison does not work. Does anyone have a solution for this problem? I cannot think of a solution that does not have to access "node" itself.
Thanks in advance for any answers!