Add support for name-less modules and property comments

Bug: 181569894
Test: m nothing
Change-Id: Ia4da1d2a55a924db82ae999da455adedbaca47c0
This commit is contained in:
Paul Duffin
2021-05-07 01:10:01 +01:00
parent 1308205638
commit 0df49686b3
3 changed files with 81 additions and 17 deletions

View File

@@ -284,11 +284,20 @@ type BpPropertySet interface {
// Add a property set with the specified name and return so that additional
// properties can be added.
AddPropertySet(name string) BpPropertySet
// Add comment for property (or property set).
AddCommentForProperty(name, text string)
}
// A .bp module definition.
type BpModule interface {
BpPropertySet
// ModuleType returns the module type of the module
ModuleType() string
// Name returns the name of the module or "" if no name has been specified.
Name() string
}
// An individual member of the SDK, includes all of the variants that the SDK