IDELightClassContexts: Use CallResolver to resolve relevant annotation calls
Drop code that made decisions based on text Use CallResolver directly to avoid calling TypeResolver which only returns error types in ad hoc resolve
This commit is contained in:
@@ -346,6 +346,15 @@ public class CallResolver {
|
||||
return checkArgumentTypesAndFail(context);
|
||||
}
|
||||
|
||||
return resolveConstructorCall(context, functionReference, constructedType);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public OverloadResolutionResults<ConstructorDescriptor> resolveConstructorCall(
|
||||
@NotNull BasicCallResolutionContext context,
|
||||
@NotNull KtReferenceExpression functionReference,
|
||||
@NotNull KotlinType constructedType
|
||||
) {
|
||||
Pair<Collection<ResolutionCandidate<ConstructorDescriptor>>, BasicCallResolutionContext> candidatesAndContext =
|
||||
prepareCandidatesAndContextForConstructorCall(constructedType, context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user