Using indexes to find packages

JetLightPackage does not depend on PSI elements any more
This commit is contained in:
Andrey Breslav
2012-12-19 14:27:56 +04:00
parent 941e47503e
commit 29dd3821cc
5 changed files with 28 additions and 12 deletions
@@ -132,4 +132,11 @@ public class CliLightClassGenerationSupport extends LightClassGenerationSupport
}
return result;
}
@Override
public boolean packageExists(
@NotNull FqName fqName, @NotNull GlobalSearchScope scope
) {
return trace.get(BindingContext.FQNAME_TO_NAMESPACE_DESCRIPTOR, fqName) != null;
}
}