Esempio n. 1
0
 public void EmitReturnStatement(ReturnStatement node, int si)
 {
     Emit(node.Expression, si);
     this.Text.Emit("leave");
     this.Text.Emit("ret");
 }
Esempio n. 2
0
 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]));
 }
Esempio n. 3
0
 public void VisitReturnStatement(ReturnStatement node)
 {
 }