Reformat build/soong for go 1.19
Test: none Change-Id: I132368f0fcbdb5ea088b5b84dbe4ccfdd9e94cad
This commit is contained in:
@@ -258,20 +258,20 @@ type RegistrationContext interface {
|
||||
|
||||
// Used to register build components from an init() method, e.g.
|
||||
//
|
||||
// init() {
|
||||
// RegisterBuildComponents(android.InitRegistrationContext)
|
||||
// }
|
||||
// init() {
|
||||
// RegisterBuildComponents(android.InitRegistrationContext)
|
||||
// }
|
||||
//
|
||||
// func RegisterBuildComponents(ctx android.RegistrationContext) {
|
||||
// ctx.RegisterModuleType(...)
|
||||
// ...
|
||||
// }
|
||||
// func RegisterBuildComponents(ctx android.RegistrationContext) {
|
||||
// ctx.RegisterModuleType(...)
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Extracting the actual registration into a separate RegisterBuildComponents(ctx) function
|
||||
// allows it to be used to initialize test context, e.g.
|
||||
//
|
||||
// ctx := android.NewTestContext(config)
|
||||
// RegisterBuildComponents(ctx)
|
||||
// ctx := android.NewTestContext(config)
|
||||
// RegisterBuildComponents(ctx)
|
||||
var InitRegistrationContext RegistrationContext = &initRegistrationContext{
|
||||
moduleTypes: make(map[string]ModuleFactory),
|
||||
singletonTypes: make(map[string]SingletonFactory),
|
||||
|
Reference in New Issue
Block a user