Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/ElementUtils.java @ 20172:3648df587223
DSL: rename ElementUtils.typeCompatible to areTypesCompatible.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Mon, 06 Apr 2015 13:45:08 +0100 |
parents | 953c813b8e7a |
children | 18c0f02fa4d2 |
comparison
equal
deleted
inserted
replaced
20171:9ca538e3e46e | 20172:3648df587223 |
---|---|
932 return false; | 932 return false; |
933 } | 933 } |
934 } | 934 } |
935 } | 935 } |
936 | 936 |
937 public static boolean typeCompatible(TypeMirror type1, TypeMirror type2) { | 937 public static boolean areTypesCompatible(TypeMirror type1, TypeMirror type2) { |
938 if (typeEquals(type1, type2)) { | 938 if (typeEquals(type1, type2)) { |
939 return true; | 939 return true; |
940 } else if (kindIsIntegral(type1.getKind())) { | 940 } else if (kindIsIntegral(type1.getKind())) { |
941 return kindIsIntegral(type2.getKind()); | 941 return kindIsIntegral(type2.getKind()); |
942 } else { | 942 } else { |