comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/ImplicitCastParser.java @ 18758:3912400fc33a

Truffle-DSL: remove type system singleton
author Christian Humer <christian.humer@gmail.com>
date Mon, 29 Dec 2014 23:38:42 +0100
parents 0370880ac9ce
children a665483c3881
comparison
equal deleted inserted replaced
18757:0ec5f5a2e720 18758:3912400fc33a
66 66
67 if (targetType.equals(sourceType)) { 67 if (targetType.equals(sourceType)) {
68 method.addError("Target type and source type of an @%s must not be the same type.", ImplicitCast.class.getSimpleName()); 68 method.addError("Target type and source type of an @%s must not be the same type.", ImplicitCast.class.getSimpleName());
69 } 69 }
70 70
71 if (!method.getMethod().getModifiers().contains(Modifier.STATIC)) {
72 method.addError("@%s annotated method %s must be static.", ImplicitCast.class.getSimpleName(), method.getMethodName());
73 }
74
71 return new ImplicitCastData(method, sourceType, targetType); 75 return new ImplicitCastData(method, sourceType, targetType);
72 } 76 }
73 } 77 }