예제 #1
0
 public void EmitReturnStatement(ReturnStatement node, int si)
 {
     Emit(node.Expression, si);
     this.Text.Emit("leave");
     this.Text.Emit("ret");
 }
		public override void VisitReturnStatement (ReturnStatement node)
		{
			WriteKeyword ("return");

			if (node.Expression != null) {
				WriteSpace ();
				Visit (node.Expression);
			}

			WriteToken (";");
			WriteLine ();
		}
예제 #3
0
 public virtual void VisitReturnStatement(ReturnStatement node)
 {
     Visit(node.Expression);
 }
예제 #4
0
		public virtual void VisitReturnStatement (ReturnStatement node)
		{
			Visit (node.Expression);
		}
예제 #5
0
 public virtual ICodeNode VisitReturnStatement(ReturnStatement node)
 {
     node.Expression = (Expression)Visit(node.Expression);
     return(node);
 }