Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java @ 19282:ae81dd154fb6
Truffle-DSL: remove old DSL layout; Make new layout the default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 22 Jan 2015 20:44:24 +0100 |
parents | a665483c3881 |
children | 18c0f02fa4d2 |
comparison
equal
deleted
inserted
replaced
19281:92880b0f7fed | 19282:ae81dd154fb6 |
---|---|
144 TypeData result = types.get(types.size() - 2); | 144 TypeData result = types.get(types.size() - 2); |
145 assert result.getBoxedType() == genericType; | 145 assert result.getBoxedType() == genericType; |
146 return result; | 146 return result; |
147 } | 147 } |
148 | 148 |
149 public TypeData findType(String simpleName) { | |
150 for (TypeData type : types) { | |
151 if (ElementUtils.getTypeId(type.getBoxedType()).equals(simpleName)) { | |
152 return type; | |
153 } | |
154 } | |
155 return null; | |
156 } | |
157 | |
158 public TypeData findTypeData(TypeMirror type) { | 149 public TypeData findTypeData(TypeMirror type) { |
159 if (ElementUtils.typeEquals(voidType.getPrimitiveType(), type)) { | 150 if (ElementUtils.typeEquals(voidType.getPrimitiveType(), type)) { |
160 return voidType; | 151 return voidType; |
161 } | 152 } |
162 | 153 |