Get every concept that's derived from an interface in my own language

Hello folks!

Right now I'm trying to build C# text. In my textgen aspect I would need every concept that I've defined and derived from my interface IEntity for further generation logic.
Is there a method or solution for this use case?

Thanks in advance.

Regards
msch95
1 comment
I don't think this is the shortest solution:
model/YourLanguage.structure/.nodes(InterfaceConceptReference).where({~it => 
  it.intfc.asConcept.isExactly(IEntity); 
}).select({~it => 
  it.ancestor<concept = AbstractConceptDeclaration>; 
})
prettyPrint();
Yourlanguage is the language in which implementing concepts are searched.
0

Please sign in to leave a comment.