예제 #1
0
파일: SecondPass.cs 프로젝트: goric/cflat
 public override void VisitTypeVoid(ASTTypeVoid n)
 {
     n.Type = _lastSeenType = new TypeVoid();
 }
예제 #2
0
 protected override OpTypeVoid VisitTypeVoid(TypeVoid node)
 {
     return(Register(base.VisitTypeVoid(node), _typeInstructions));
 }
예제 #3
0
파일: ThirdPass.cs 프로젝트: goric/cflat
 /// <summary>
 /// Used as the return value for methods that are type void, and have a return statement.
 /// </summary>
 /// <param name="n"></param>
 public override void VisitVoidExpr(ASTVoidExpression n)
 {
     n.CFlatType = _lastSeenType = new TypeVoid();
 }
예제 #4
0
 public DeclarationMethod(String name, StatementList body)
 {
     ReturnType = new TypeVoid();
     Name       = name;
     Body       = body;
 }