[python] Introduce PyArgumentsMapping.isComplete

(cherry picked from commit 64dca74e18a2ae8c4a64f6730093e59dbef6b671)

IJ-CR-146869

GitOrigin-RevId: 42cc87410c38c09a65b38d2ca9389474f17ae8b6
This commit is contained in:
Mikhail Golubev
2024-10-14 16:04:00 +03:00
committed by intellij-monorepo-bot
parent e31c88a59e
commit 09fa8a0611
4 changed files with 10 additions and 5 deletions

View File

@@ -207,5 +207,12 @@ public interface PyCallExpression extends PyAstCallExpression, PyCallSiteExpress
public Map<PyExpression, PyCallableParameter> getMappedTupleParameters() {
return myMappedTupleParameters;
}
/**
* @return true if there are no unmapped parameters and no unmapped arguments, false otherwise
*/
public boolean isComplete() {
return getUnmappedParameters().isEmpty() && getUnmappedArguments().isEmpty();
}
}
}