File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 57
57
import org .antlr .v4 .runtime .ParserRuleContext ;
58
58
59
59
public class ArgListCompiler <T > extends Python3BaseVisitor <T > {
60
- private boolean arglist , keywordlist ;
60
+ private boolean arglist ;
61
61
public final List <String > names ;
62
62
public final List <String > fpnames ;
63
63
public final List <ParserRuleContext > init_code ;
64
64
private final ParserErrorCallback errors ;
65
65
66
66
public ArgListCompiler (ParserErrorCallback errors ) {
67
67
this .errors = errors ;
68
- arglist = keywordlist = false ;
68
+ arglist = false ;
69
69
// defaults = null;
70
70
names = new ArrayList <>();
71
71
fpnames = new ArrayList <>();
72
72
init_code = new ArrayList <>();
73
73
}
74
74
75
75
public void reset () {
76
- arglist = keywordlist = false ;
76
+ arglist = false ;
77
77
names .clear ();
78
78
init_code .clear ();
79
79
}
@@ -110,7 +110,6 @@ public T visitVsplatparameter(VsplatparameterContext ctx) {
110
110
111
111
@ Override
112
112
public T visitVkwargsparameter (VkwargsparameterContext ctx ) {
113
- keywordlist = true ;
114
113
if (ctx .vfpdef () != null ) {
115
114
addName (ctx .vfpdef ().NAME ().getText ());
116
115
} else {
@@ -147,7 +146,6 @@ public T visitSplatparameter(SplatparameterContext ctx) {
147
146
148
147
@ Override
149
148
public T visitKwargsparameter (KwargsparameterContext ctx ) {
150
- keywordlist = true ;
151
149
if (ctx .tfpdef () != null ) {
152
150
addName (ctx .tfpdef ().NAME ().getText ());
153
151
} else {
You can’t perform that action at this time.
0 commit comments