public override void VisitTypeVoid(ASTTypeVoid n) { n.Type = _lastSeenType = new TypeVoid(); }
protected override OpTypeVoid VisitTypeVoid(TypeVoid node) { return(Register(base.VisitTypeVoid(node), _typeInstructions)); }
/// <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(); }
public DeclarationMethod(String name, StatementList body) { ReturnType = new TypeVoid(); Name = name; Body = body; }