add field 'initialized' to class VariableDeclaration
This commit is contained in:
@@ -6,6 +6,7 @@ import de.hsrm.compiler.Klang.visitors.Visitor;
|
|||||||
public class VariableDeclaration extends Statement {
|
public class VariableDeclaration extends Statement {
|
||||||
public String name;
|
public String name;
|
||||||
public Expression expression;
|
public Expression expression;
|
||||||
|
public boolean initialized = false; // Whether or not this variable has been initialized
|
||||||
|
|
||||||
public VariableDeclaration(String name, Expression expression) {
|
public VariableDeclaration(String name, Expression expression) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|||||||
Reference in New Issue
Block a user