blob: a7ff72522f1fc2213388ebed916b39f5bdd52b7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* generated by Xtext 2.18.0.M3
*/
package org.eclipse.viatra.solver.language.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class SolverLanguageValidator extends AbstractSolverLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// SolverLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}
|