|
Re: Dealing with Eclipse XText syntax errors [message #1746062 is a reply to message #1746058] |
Fri, 21 October 2016 03:54 |
|
is this about the messages or the errors. the errors are created by antlr. the messages by ISyntaxErrorMessageProvider
(possible pointers: via org.eclipse.xtext.resource.XtextResource.addSyntaxDiagnostic(List<Diagnostic>, INode) and org.eclipse.xtext.validation.ResourceValidatorImpl.issueFromXtextResourceDiagnostic(Diagnostic, Severity, IAcceptor<Issue>) )
messages about linking erros (cross references that cannot be resolved) are produced by ILinkingDiagnosticMessageProvider
i am not sure if it is a good idea to suppress the messages at all,
cause the error recovery might not work that good as you expect.
and the node model contains errors.
so i wonder why you dont fix the parser in the first place
i cannot say what you exactly need to do to throw away a diagnostic,
maybe returning null works.
(https://www.eclipse.org/forums/index.php/m/1722921/?srch=ISyntaxErrorMessageProvider#msg_1722921 indicates that)
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Fri, 21 October 2016 04:02] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03988 seconds