commit | 5c7e77c322f6266fcfb3f5f892c0e104f42240b6 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Wed Jan 20 16:00:29 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Thu Jan 21 11:03:42 2021 +0900 |
tree | d59fa0afd9b6052c775da173866a54bdeece38cd | |
parent | 28328d97be1363b93c750fa1eda9fe6f2cde9758 [diff] |
AidlCommentable represents AIDL-commentable entities Because the parser uses GetComments/SetComments to move comments around, even syntactically non-commentable nodes can have comments temporarily. Those types' inheriting AidlCommentable doesn't make sense. We'd like to model classes to reflect what entities are really commentable in AIDL. This change pulls up GetComments/SetComments to AidlNode and makes AidlCommentable a base class for AIDL-commentable nodes. AidlCommentable provides IsHidden/IsDeprecated/DumpComments. Now AidlCommentable types are: - AidlAnnotatable - AidlTypeSpecifier - AidlDefinedType - AidlInterface - AidlParcelable - AidlStructuredParacelable - AidlUnionDecl - AidlEnumDeclaration - AidlMember - AidlVarialbeDeclaration - AidlMethod - AidlConstantDeclartion - AidlEnumerator - AidlDocument Bug: none Test: aidl_unittests Change-Id: Ie4dbd12cdc08e9fafcf59c04da588eae18685727
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview