Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 1 | #include "ArrayType.h" |
2 | |||||
3 | #include "Formatter.h" | ||||
4 | |||||
5 | namespace android { | ||||
6 | |||||
7 | ArrayType::ArrayType(Type *elementType, const char *dimension) | ||||
8 | : mElementType(elementType), | ||||
9 | mDimension(dimension) { | ||||
10 | } | ||||
11 | |||||
12 | void ArrayType::dump(Formatter &out) const { | ||||
13 | mElementType->dump(out); | ||||
14 | out << "[" << mDimension << "]"; | ||||
15 | } | ||||
16 | |||||
17 | } // namespace android | ||||
18 |