Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public SkyValue compute(SkyKey skyKey, Environment env)
} else {
moduleThreadContext =
execNonRegistryModuleFile(
moduleKey, starlarkSemantics, env, SymbolGenerator.create(skyKey));
moduleKey, state, starlarkSemantics, env, SymbolGenerator.create(skyKey));
if (moduleThreadContext == null) {
return null;
}
Expand Down Expand Up @@ -319,7 +319,7 @@ private SkyValue computeForRootModule(
}
}
var moduleThreadContext =
execNonRegistryModuleFile(ModuleKey.ROOT, starlarkSemantics, env, symbolGenerator);
execNonRegistryModuleFile(ModuleKey.ROOT, state, starlarkSemantics, env, symbolGenerator);
if (moduleThreadContext == null) {
return null;
}
Expand All @@ -334,11 +334,11 @@ private SkyValue computeForRootModule(
@Nullable
private ModuleThreadContext execNonRegistryModuleFile(
ModuleKey moduleKey,
State state,
StarlarkSemantics starlarkSemantics,
Environment env,
SymbolGenerator<?> symbolGenerator)
throws ModuleFileFunctionException, InterruptedException {
var state = env.getState(State::new);
Preconditions.checkNotNull(state.compiledModuleFile);
if (state.horizon == null) {
state.horizon = state.compiledModuleFile.includeStatements();
Expand Down