Home » Modeling » TMF (Xtext) » customize error "Cannot use this in a static context"
customize error "Cannot use this in a static context" [message #1692649] |
Fri, 17 April 2015 07:57 |
|
Hi
I'd like to customize the error message concerning 'this' (and 'super'):
in my DSL I don't want to support neither of them, since basically,
internally, everything is a "static context". So, I'm happy with usage
errors being detected, but I'd like to customize such error.
I see that error is generated in
org.eclipse.xtext.xbase.typesystem.internal.FeatureLinkingCandidate.validate(IAcceptor<?
super AbstractDiagnostic>) which I guess is not meant for customization
(there's no injection there).
Would it be better to perform customization at another level, such as
scoping? If so, which class is ideal for such customization?
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 20:23:47 GMT 2024
Powered by FUDForum. Page generated in 0.03218 seconds
|