How to reference to errors of jetbrains.mps.checkers.ConstraintsChecker in NodesTestCase

The errors, defined in checking rules as part of type system aspect of any language, using the error-keyword, can be used as errorRef within the 'Node has error'-annotation easily.

But how to reference to the errors defined in the kernel solutions, using the LanguageErrorsComponent.addError()?

E.g. I would like to check for errors like "Node XY cannot be child of node AB".

1

Please sign in to leave a comment.