aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java')
-rw-r--r--java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java b/java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java
index de50a2e..b41edb0 100644
--- a/java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java
+++ b/java/com/google/turbine/binder/lookup/CompoundTopLevelIndex.java
@@ -62,14 +62,14 @@ public class CompoundTopLevelIndex implements TopLevelIndex {
}
@Override
- public Scope lookupPackage(ImmutableList<String> packagename) {
+ public PackageScope lookupPackage(Iterable<String> packagename) {
// When returning package scopes, build up a compound scope containing entries from all
// indices with matching packages.
- CompoundScope result = null;
+ PackageScope result = null;
for (TopLevelIndex index : indexes) {
- Scope packageScope = index.lookupPackage(packagename);
+ PackageScope packageScope = index.lookupPackage(packagename);
if (packageScope != null) {
- result = result == null ? CompoundScope.base(packageScope) : result.append(packageScope);
+ result = result == null ? packageScope : result.append(packageScope);
}
}
return result;