From 9efbbef2e060cd5e05f5b652ba5c7aaf687f64d6 Mon Sep 17 00:00:00 2001 From: y Date: Wed, 18 Apr 2018 11:29:09 -0700 Subject: AAPT2: Support id reference chaining from AAPT AAPT would allow for ids to be declared in the form: value = util::make_unique(); + } else { + // If an inner element exists, the inner element must be a reference to + // another resource id + Reference* ref = ValueCast(out_resource->value.get()); + if (!ref || ref->name.value().type != ResourceType::kId) { + diag_->Error(DiagMessage(out_resource->source) + << "<" << parser->element_name() + << "> inner element must either be a resource reference or empty"); + return false; + } + } + return true; } -- cgit v1.2.3-59-g8ed1b