summaryrefslogtreecommitdiff
path: root/tools/aapt2/Debug.cpp
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2016-01-06 23:50:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-01-06 23:50:50 +0000
commitf68f066cdfbd9df6fcab30ed034640c7a81d2cfe (patch)
tree73c55847c9107378ce9edf9b514184a7415aa398 /tools/aapt2/Debug.cpp
parent457a7e74bebac65cfb1b0c01677116074a7cafac (diff)
parent24b8ff0faf7c59323d0171cdd825ca09e712aa1e (diff)
Merge "AAPT2: Fix references to private parent"
Diffstat (limited to 'tools/aapt2/Debug.cpp')
-rw-r--r--tools/aapt2/Debug.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp
index d864f664f9db..5fce2c16f630 100644
--- a/tools/aapt2/Debug.cpp
+++ b/tools/aapt2/Debug.cpp
@@ -52,13 +52,17 @@ struct PrintVisitor : public ValueVisitor {
void visit(Style* style) override {
std::cout << "(style)";
if (style->parent) {
+ const Reference& parentRef = style->parent.value();
std::cout << " parent=";
- if (style->parent.value().name) {
- std::cout << style->parent.value().name.value() << " ";
+ if (parentRef.name) {
+ if (parentRef.privateReference) {
+ std::cout << "*";
+ }
+ std::cout << parentRef.name.value() << " ";
}
- if (style->parent.value().id) {
- std::cout << style->parent.value().id.value();
+ if (parentRef.id) {
+ std::cout << parentRef.id.value();
}
}