Example #1
0
 @Override
 public ResolvedStructType caseStructureConstant(StructureConstant object) {
   EList<TypedConstant> values = object.getList().getTypedConstants();
   List<ResolvedType> resolvedTypes = new ArrayList<ResolvedType>(values.size());
   for (TypedConstant tc : values) {
     resolvedTypes.add(resolve(tc.getType()));
   }
   return new ResolvedStructType(resolvedTypes, object.getPacked() != null, true);
 }
Example #2
0
 @Override
 public ResolvedType caseTypedConstant(TypedConstant object) {
   return resolve(object.getType());
 }