Docs for ResolvedCall
This commit is contained in:
@@ -13,23 +13,27 @@ import java.util.Map;
|
|||||||
* @author abreslav
|
* @author abreslav
|
||||||
*/
|
*/
|
||||||
public interface ResolvedCall<D extends CallableDescriptor> {
|
public interface ResolvedCall<D extends CallableDescriptor> {
|
||||||
@NotNull
|
/** A target callable descriptor as it was accessible in the corresponding scope, i.e. with type parameters not substituted */
|
||||||
ResolutionStatus getStatus();
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
D getCandidateDescriptor();
|
D getCandidateDescriptor();
|
||||||
|
|
||||||
|
/** Type parameters are substituted */
|
||||||
@NotNull
|
@NotNull
|
||||||
D getResultingDescriptor();
|
D getResultingDescriptor();
|
||||||
|
|
||||||
|
/** If the target was an extension function or property, this is the value for its receiver parameter */
|
||||||
@NotNull
|
@NotNull
|
||||||
ReceiverDescriptor getReceiverArgument();
|
ReceiverDescriptor getReceiverArgument();
|
||||||
|
|
||||||
|
/** If the target was a member of a class, this is the object of that class to call it on */
|
||||||
@NotNull
|
@NotNull
|
||||||
ReceiverDescriptor getThisObject();
|
ReceiverDescriptor getThisObject();
|
||||||
|
|
||||||
|
/** Values (arguments) for value parameters */
|
||||||
@NotNull
|
@NotNull
|
||||||
Map<ValueParameterDescriptor, ResolvedValueArgument> getValueArguments();
|
Map<ValueParameterDescriptor, ResolvedValueArgument> getValueArguments();
|
||||||
|
|
||||||
|
/** What's substituted for type parameters */
|
||||||
|
@NotNull
|
||||||
Map<TypeParameterDescriptor, JetType> getTypeArguments();
|
Map<TypeParameterDescriptor, JetType> getTypeArguments();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ public class ResolvedCallImpl<D extends CallableDescriptor> implements ResolvedC
|
|||||||
this.candidateDescriptor = candidateDescriptor;
|
this.candidateDescriptor = candidateDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public ResolutionStatus getStatus() {
|
public ResolutionStatus getStatus() {
|
||||||
return status;
|
return status;
|
||||||
@@ -152,6 +151,7 @@ public class ResolvedCallImpl<D extends CallableDescriptor> implements ResolvedC
|
|||||||
return someArgumentHasNoType;
|
return someArgumentHasNoType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public Map<TypeParameterDescriptor, JetType> getTypeArguments() {
|
public Map<TypeParameterDescriptor, JetType> getTypeArguments() {
|
||||||
return typeArguments;
|
return typeArguments;
|
||||||
|
|||||||
Reference in New Issue
Block a user