Skip to content
Snippets Groups Projects
Commit f4cb7625 authored by dgelessus's avatar dgelessus
Browse files

Remove generation of unused nullNode variables in parsers

parent 413311f1
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter ...@@ -81,7 +81,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter
} }
else if(type_name.equals("null")) else if(type_name.equals("null"))
{ {
macros.apply(file, "ParserNullVariableDeclaration", new String[] {"" + position}); // No intermediate variable needed for null arguments
} }
else else
{ {
...@@ -168,7 +168,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter ...@@ -168,7 +168,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter
} }
else if(type_name.equals("null")) else if(type_name.equals("null"))
{ {
macros.apply(file, "ParserNullVariableDeclaration", new String[] {"" + position}); // No intermediate variable needed for null arguments
} }
else else
{ {
...@@ -382,7 +382,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter ...@@ -382,7 +382,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter
} }
else if(type_name.equals("null")) else if(type_name.equals("null"))
{ {
macros.apply(file, "ParserNullVariableDeclaration", new String[] {"" + position}); // No intermediate variable needed for null arguments
} }
else else
{ {
......
This diff is collapsed.
...@@ -428,11 +428,6 @@ Macro:ParserListVariableDeclaration ...@@ -428,11 +428,6 @@ Macro:ParserListVariableDeclaration
$ $
Macro:ParserNullVariableDeclaration
Object nullNode$0$ = null;
$
Macro:ParserSimpleTerm Macro:ParserSimpleTerm
$0$Node$1$ = ($2$)nodeArrayList$3$.get($4$); $0$Node$1$ = ($2$)nodeArrayList$3$.get($4$);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment