public void EmitReturnStatement(ReturnStatement node, int si) { Emit(node.Expression, si); this.Text.Emit("leave"); this.Text.Emit("ret"); }
public static string INVALID_RETURN_VALUE_MSG(ReturnStatement node, TokenType requiredType) { return(String.Format("the required return value type is {0}, but instead {1} was given", TOKEN_TYPE_STRINGS[requiredType], TOKEN_TYPE_STRINGS[node.EvaluationType])); }
public void VisitReturnStatement(ReturnStatement node) { }