Changeset 1e97287 for src/AST/Stmt.cpp
- Timestamp:
- May 15, 2019, 4:04:26 PM (4 years ago)
- Branches:
- arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 89c2f7c9
- Parents:
- 23f99e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.cpp
r23f99e1 r1e97287 8 8 // 9 9 // Author : Aaron B. Moss 10 // Created On : Wed May 8 13:00:00 201911 // Last Modified By : A aron B. Moss12 // Last Modified On : Wed May 8 13:00:00 201913 // Update Count : 110 // Created On : Wed May 8 13:00:00 2019 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed May 15 15:53:00 2019 13 // Update Count : 2 14 14 // 15 15 … … 18 18 #include "DeclReplacer.hpp" 19 19 20 namespace ast { 21 20 22 // --- CompoundStmt 23 CompoundStmt::CompoundStmt( const CompoundStmt& o ) : Stmt(o), kids(o.kids) { 24 assert(!"implemented"); 25 } 21 26 22 namespace ast { 23 CompoundStmt::CompoundStmt( const CompoundStmt& o ) : Stmt(o), kids(o.kids) { 24 assert(!"implemented"); 25 } 27 // --- BranchStmt 28 BranchStmt( const CodeLocation& loc, Kind kind, Label target, std::vector<Label>&& labels ) 29 : Stmt(loc, std::move(labels)), originalTarget(target), target(target), kind(kind) { 30 // Make sure a syntax error hasn't slipped through. 31 assert( Goto != kind || !target.empty() ); 32 } 33 34 const char * BranchStmt::kindNames[] = { 35 "Goto", "Break", "Continue", "FallThrough", "FallThroughDefault" 36 } 37 26 38 } 27 39
Note: See TracChangeset
for help on using the changeset viewer.