File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -287,8 +287,9 @@ private void extractArgStats() {
287
287
Set <String > freeVarsSet = asSet ((String []) freevars );
288
288
Set <String > cellVarsSet = asSet ((String []) cellvars );
289
289
290
- List <ReadIndexedArgumentNode > readIndexedArgumentNodes = NodeUtil .findAllNodeInstances (funcRootNode , ReadIndexedArgumentNode .class );
291
- Set <String > argNames = extractArgumentNames (readIndexedArgumentNodes );
290
+ Set <String > argNames = new HashSet <>();
291
+ argNames .addAll (Arrays .asList (arity .getParameterIds ()));
292
+ argNames .addAll (Arrays .asList (arity .getKeywordNames ()));
292
293
293
294
Set <String > varnamesSet = new HashSet <>();
294
295
for (Object identifier : getRootNode ().getFrameDescriptor ().getIdentifiers ()) {
You can’t perform that action at this time.
0 commit comments