Fix exception from completion and other services
This commit is contained in:
@@ -428,6 +428,11 @@ public class ResolveSession implements KotlinCodeAnalyzer {
|
||||
return getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, property);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeclarationDescriptor visitScript(@NotNull JetScript script, Void data) {
|
||||
return scriptDescriptors.invoke(script);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeclarationDescriptor visitJetElement(@NotNull JetElement element, Void data) {
|
||||
throw new IllegalArgumentException("Unsupported declaration type: " + element + " " +
|
||||
|
||||
Reference in New Issue
Block a user