Smart completion when only named argument possible

This commit is contained in:
Valentin Kipyatkov
2015-05-07 20:09:40 +03:00
parent 67cfd9d516
commit 833d474876
5 changed files with 38 additions and 1 deletions
@@ -34,7 +34,7 @@ import org.jetbrains.kotlin.utils.sure
// resolved call
public fun <D : CallableDescriptor> ResolvedCall<D>.noErrorsInValueArguments(): Boolean {
return getCall().getValueArguments().all { argument -> !getArgumentMapping(argument!!).isError() }
return getCall().getValueArguments().all { argument -> argument.getArgumentExpression() != null/* isError() crashes otherwise!*/ && !getArgumentMapping(argument!!).isError() }
}
public fun <D : CallableDescriptor> ResolvedCall<D>.hasUnmappedArguments(): Boolean {