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
|| Lorenzo Bettini
Registered: July 2009
Location: Firenze, Italy
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
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 Bettini, PhD in Computer Science, DI, Univ. Torino
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
Current Time: Mon Apr 19 20:08:42 GMT 2021
Powered by FUDForum
. Page generated in 0.02717 seconds