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 5757import org .antlr .v4 .runtime .ParserRuleContext ;
5858
5959public class ArgListCompiler <T > extends Python3BaseVisitor <T > {
60- private boolean arglist , keywordlist ;
60+ private boolean arglist ;
6161 public final List <String > names ;
6262 public final List <String > fpnames ;
6363 public final List <ParserRuleContext > init_code ;
6464 private final ParserErrorCallback errors ;
6565
6666 public ArgListCompiler (ParserErrorCallback errors ) {
6767 this .errors = errors ;
68- arglist = keywordlist = false ;
68+ arglist = false ;
6969 // defaults = null;
7070 names = new ArrayList <>();
7171 fpnames = new ArrayList <>();
7272 init_code = new ArrayList <>();
7373 }
7474
7575 public void reset () {
76- arglist = keywordlist = false ;
76+ arglist = false ;
7777 names .clear ();
7878 init_code .clear ();
7979 }
@@ -110,7 +110,6 @@ public T visitVsplatparameter(VsplatparameterContext ctx) {
110110
111111 @ Override
112112 public T visitVkwargsparameter (VkwargsparameterContext ctx ) {
113- keywordlist = true ;
114113 if (ctx .vfpdef () != null ) {
115114 addName (ctx .vfpdef ().NAME ().getText ());
116115 } else {
@@ -147,7 +146,6 @@ public T visitSplatparameter(SplatparameterContext ctx) {
147146
148147 @ Override
149148 public T visitKwargsparameter (KwargsparameterContext ctx ) {
150- keywordlist = true ;
151149 if (ctx .tfpdef () != null ) {
152150 addName (ctx .tfpdef ().NAME ().getText ());
153151 } else {
You can’t perform that action at this time.
0 commit comments