Using indexes to find packages
JetLightPackage does not depend on PSI elements any more
This commit is contained in:
+7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user