Skip to content

Commit c5a0f64

Browse files
committed
fix code test
1 parent db287d1 commit c5a0f64

File tree

1 file changed

+3
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code

1 file changed

+3
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/PCode.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ private void extractArgStats() {
287287
Set<String> freeVarsSet = asSet((String[]) freevars);
288288
Set<String> cellVarsSet = asSet((String[]) cellvars);
289289

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()));
292293

293294
Set<String> varnamesSet = new HashSet<>();
294295
for (Object identifier : getRootNode().getFrameDescriptor().getIdentifiers()) {

0 commit comments

Comments
 (0)