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