Community
Participate
Working Groups
When calling error or warning in a @Check method, and passing the wrong literal, the error message could be more helpful. In my case - the call: error( "A selector expression must have at least one right side entry", o, PPPackage.Literals.BINARY_EXPRESSION__LEFT_EXPRESSION, INSIGNIFICANT_INDEX, IPPDiagnostics.ISSUE__NULL_EXPRESSION); Produced the error: EClass 'SelectorExpression' does not expose a feature 'leftExpr'. I should have used PARAMETERIZED_EXPRESSION__LEFT_EXPRESSION but was fooled by seeing only the name 'leftExpr' (which it indeed does expose). Suggest that either the full identifier "BINARY_EXPRESSION__LEFT_EXPRESSION" is displayed, or that it also checks if the feature reference is made with a compatible EClass.
Easy fix. Thanks for the suggestion.
Closing all bugs that were set to RESOLVED before Neon.0