diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-10-22 12:48:43 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-10-22 16:35:47 -0700 |
commit | e78fd617ec60139a973a01925fa7adad31febb39 (patch) | |
tree | b64f9590b16dfb2e6e9ea8bf2eb5d54a02230b0a /tools/aapt2/ResourceParser.h | |
parent | 3b7acbb86207df78eccfeb40aabcc8543703a58f (diff) |
AAPT2: Move comments and source into Value
Values are closely related to where they were defined, so
this information should live inside the Value.
This also enables comments to be attached to nested Values.
Change-Id: Ic7481b5a5f26d0ef248d638e2e29252f88154581
Diffstat (limited to 'tools/aapt2/ResourceParser.h')
-rw-r--r-- | tools/aapt2/ResourceParser.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h index 34c68d7257a3..2d5a29df2c49 100644 --- a/tools/aapt2/ResourceParser.h +++ b/tools/aapt2/ResourceParser.h @@ -65,12 +65,13 @@ private: StyleString* outStyleString); /* - * Parses the XML subtree and converts it to an Item. The type of Item that can be - * parsed is denoted by the `typeMask`. If `allowRawValue` is true and the subtree - * can not be parsed as a regular Item, then a RawString is returned. Otherwise - * this returns nullptr. + * Parses the XML subtree and returns an Item. + * The type of Item that can be parsed is denoted by the `typeMask`. + * If `allowRawValue` is true and the subtree can not be parsed as a regular Item, then a + * RawString is returned. Otherwise this returns false; */ - std::unique_ptr<Item> parseXml(XmlPullParser* parser, uint32_t typeMask, bool allowRawValue); + std::unique_ptr<Item> parseXml(XmlPullParser* parser, const uint32_t typeMask, + const bool allowRawValue); bool parseResources(XmlPullParser* parser); bool parseString(XmlPullParser* parser, ParsedResource* outResource); |