Changeset 9e1d485 for src/AST/Expr.hpp


Ignore:
Timestamp:
May 15, 2019, 3:41:08 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
69bafd2
Parents:
264e691
Message:

First draft of ast::Type with subclasses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    r264e691 r9e1d485  
    119119        Expr(const CodeLocation & loc ) : ParseNode( loc ), result(), env(), inferred() {}
    120120
    121         Expr* set_extension( bool ex ) { extension = ex; return this; }
     121        Expr * set_extension( bool ex ) { extension = ex; return this; }
    122122
    123123        virtual Expr * accept( Visitor & v ) override = 0;
     
    133133        TypeExpr( const CodeLocation & loc, const Type * t ) : Expr(loc), type(t) {}
    134134
    135         Expr* accept( Visitor & v ) override { return v.visit( this ); }
     135        Expr * accept( Visitor & v ) override { return v.visit( this ); }
    136136private:
    137137        TypeExpr * clone() const override { return new TypeExpr{ *this }; }
Note: See TracChangeset for help on using the changeset viewer.