@@ -174,7 +174,7 @@ private void checkKeywords(Arity arity, int numOfKeywordsDeclared, int numOfKeyw
174
174
}
175
175
176
176
@ ExplodeLoop
177
- private int countMissingPositionalParamIds (int numParameterIds , Object [] arguments ) {
177
+ private static int countMissingPositionalParamIds (int numParameterIds , Object [] arguments ) {
178
178
int cntMissingPositional = 0 ;
179
179
for (int i = 0 ; i < numParameterIds ; i ++) {
180
180
if (PArguments .getArgument (arguments , i ) == null ) {
@@ -216,7 +216,7 @@ private int checkKeyword(Arity arity, String keyword, int length) {
216
216
}
217
217
218
218
@ TruffleBoundary
219
- private String getMissingRequiredKeywordsErrorMessage (Arity arity , int cntGivenRequiredKeywords , String [] givenKeywords ) {
219
+ private static String getMissingRequiredKeywordsErrorMessage (Arity arity , int cntGivenRequiredKeywords , String [] givenKeywords ) {
220
220
int missingRequiredKeywords = arity .getNumOfRequiredKeywords () - cntGivenRequiredKeywords ;
221
221
Set <String > givenKeywordsSet = new HashSet <>(Arrays .asList (givenKeywords ));
222
222
@@ -249,7 +249,7 @@ private String getMissingRequiredKeywordsErrorMessage(Arity arity, int cntGivenR
249
249
}
250
250
251
251
@ TruffleBoundary
252
- private String getMissingPositionalArgsErrorMessage (Arity arity , Object [] arguments , int cntMissingPositional ) {
252
+ private static String getMissingPositionalArgsErrorMessage (Arity arity , Object [] arguments , int cntMissingPositional ) {
253
253
StringBuilder builder = new StringBuilder ();
254
254
String currentName = null ;
255
255
String [] parameterIds = arity .getParameterIds ();
@@ -280,7 +280,7 @@ private String getMissingPositionalArgsErrorMessage(Arity arity, Object[] argume
280
280
}
281
281
282
282
@ TruffleBoundary
283
- private String getExtraPositionalArgsErrorMessage (Arity arity , int numOfArgs , String [] givenKeywords ) {
283
+ private static String getExtraPositionalArgsErrorMessage (Arity arity , int numOfArgs , String [] givenKeywords ) {
284
284
String givenCountMessage = (numOfArgs == 1 ) ? "was" : "were" ;
285
285
Set <String > keywordsOnly = arity .getKeywordsOnlyArgs ();
286
286
int givenKeywordOnlyArgs = 0 ;
0 commit comments