Changes in src/AST/Expr.hpp [312029a:e67991f]
- File:
-
- 1 edited
-
src/AST/Expr.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r312029a re67991f 9 9 // Author : Aaron B. Moss 10 10 // Created On : Fri May 10 10:30:00 2019 11 // Last Modified By : Peter A. Buhr11 // Last Modified By : Aaron B. Moss 12 12 // Created On : Fri May 10 10:30:00 2019 13 // Update Count : 713 // Update Count : 1 14 14 // 15 15 … … 26 26 #include "Fwd.hpp" // for UniqueId 27 27 #include "Label.hpp" 28 #include "Decl.hpp"29 28 #include "ParseNode.hpp" 30 29 #include "Visitor.hpp" … … 301 300 public: 302 301 ptr<Expr> arg; 303 ast::AggregateDecl::Aggregatetarget;304 305 KeywordCastExpr( const CodeLocation & loc, const Expr * a, ast::AggregateDecl::Aggregatet )302 enum Target { Coroutine, Thread, Monitor, NUMBER_OF_TARGETS } target; 303 304 KeywordCastExpr( const CodeLocation & loc, const Expr * a, Target t ) 306 305 : Expr( loc ), arg( a ), target( t ) {} 307 306 308 307 /// Get a name for the target type 309 const char *targetString() const;308 const std::string& targetString() const; 310 309 311 310 const Expr * accept( Visitor & v ) const override { return v.visit( this ); } … … 557 556 class AsmExpr final : public Expr { 558 557 public: 559 std::stringinout;558 ptr<Expr> inout; 560 559 ptr<Expr> constraint; 561 560 ptr<Expr> operand; 562 561 563 AsmExpr( const CodeLocation & loc, const std::string &io, const Expr * con, const Expr * op )562 AsmExpr( const CodeLocation & loc, const Expr * io, const Expr * con, const Expr * op ) 564 563 : Expr( loc ), inout( io ), constraint( con ), operand( op ) {} 565 564
Note:
See TracChangeset
for help on using the changeset viewer.