| super(name);
}
public void testReturnStatement() throws CompilerException {
assertParserOutput(
new ReturnStatement(
null
),
"return;"
);
assertParserOutput(
new ReturnStatement(
new NumberLiteral(0)
),
"return 0;"
);
assertParserOutput(
new ReturnStatement(
new BooleanLiteral(true)
),
"return true;"
);
}
|