Allow seeing include $(x) when there is an include_top comment

Previously, seeing anything other than an interpolate variable
was not allowed.

Bug: 226974242
Test: go test
Change-Id: I48a060f9a3fd19cd67a114d2cb0756ab2be25ce1
This commit is contained in:
Cole Faust
2022-04-26 16:27:22 -07:00
parent 12097e3109
commit 9df1d73657
3 changed files with 57 additions and 22 deletions

View File

@@ -83,7 +83,7 @@ func (im inheritedStaticModule) needsLoadCheck() bool {
}
type inheritedDynamicModule struct {
path interpolateExpr
path starlarkExpr
candidateModules []*moduleInfo
loadAlways bool
location ErrorLocation
@@ -120,7 +120,7 @@ func (i inheritedDynamicModule) emitSelect(gctx *generationContext) {
}
func (i inheritedDynamicModule) pathExpr() starlarkExpr {
return &i.path
return i.path
}
func (i inheritedDynamicModule) needsLoadCheck() bool {