Add ctx argument to IDEInfo()
The IDEInfo() methods read properties. To make those properties configurable, we need a context to evaluate them with. Bug: 362579941 Test: m nothing --no-skip-soong-tests Change-Id: I26d4b7084439b3006e50b02277298f74a929e1aa
This commit is contained in:
@@ -1959,7 +1959,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext)
|
||||
|
||||
if x, ok := m.module.(IDEInfo); ok {
|
||||
var result IdeInfo
|
||||
x.IDEInfo(&result)
|
||||
x.IDEInfo(ctx, &result)
|
||||
result.BaseModuleName = x.BaseModuleName()
|
||||
SetProvider(ctx, IdeInfoProviderKey, result)
|
||||
}
|
||||
@@ -2748,7 +2748,7 @@ func (c *buildTargetSingleton) GenerateBuildActions(ctx SingletonContext) {
|
||||
|
||||
// Collect information for opening IDE project files in java/jdeps.go.
|
||||
type IDEInfo interface {
|
||||
IDEInfo(ideInfo *IdeInfo)
|
||||
IDEInfo(ctx BaseModuleContext, ideInfo *IdeInfo)
|
||||
BaseModuleName() string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user