210211212213214215216217
return context.factory.newArrayType(component); } @Override public Type visitBasicType(IrDocBasicType elem, Mapper context) { BasicTypeKind kind = convert(elem.getTypeKind()); return context.factory.newBasicType(kind); }
401402403404405406407408409410411
} if (value == null) { return toNullLiteral(factory); } Class<? extends Object> valueClass = value.getClass(); BasicTypeKind kind = WRAPPER_TYPE_KINDS.get(valueClass); if (kind != null) { switch (kind) { case BYTE: return toLiteral(factory, (byte) (Byte) value); case SHORT: