langium icon indicating copy to clipboard operation
langium copied to clipboard

Add type consistency validation for actions

Open pluralia opened this issue 2 years ago • 2 comments

It's necessary to add validation for actions that use declared types. For example, interface X has a property name, but type X from action has a property count -- validation should forbid it.

interface X {
    name: string
}

MyXRule:
    {X} count=NUMBER;

pluralia avatar Mar 17 '22 08:03 pluralia

I had a chat with @msujew , this task is harder than I thought (it was looking a very innocent 'write a validator' task). I will concentrate on a different task and release this issue for someone else.

At least the test file you can reuse.

Lotes avatar Jun 01 '22 14:06 Lotes

@Lotes, I take it. Thank you for your work!

pluralia avatar Jun 01 '22 14:06 pluralia