Changeset e9e9f56 for src/Tuples
- Timestamp:
- Sep 21, 2022, 9:22:24 AM (23 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 20737104
- Parents:
- b6c3688
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleExpansionNew.cpp
rb6c3688 re9e9f56 10 10 // Created On : Mon Aug 23 15:36:09 2021 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Aug 15 17:00:00 202213 // Update Count : 312 // Last Modified On : Tue Sep 20 16:17:00 2022 13 // Update Count : 4 14 14 // 15 15 … … 102 102 /// Replaces Tuple Assign & Index Expressions, and Tuple Types. 103 103 struct TupleMainExpander final : 104 public ast::WithCodeLocation, 105 public ast::WithDeclsToAdd<>, 104 106 public ast::WithGuards, 105 public ast::WithVisitorRef<TupleMainExpander>, 106 public ast::WithDeclsToAdd<> { 107 public ast::WithVisitorRef<TupleMainExpander> { 107 108 ast::Expr const * postvisit( ast::TupleAssignExpr const * expr ) { 108 109 // Just move the env on the new top level expression. … … 111 112 } 112 113 113 void previsit( ast::ParseNode const * node ) { 114 GuardValue( location ) = &node->location; 115 } 116 117 void previsit( ast::CompoundStmt const * stmt ) { 118 previsit( (ast::ParseNode const *)stmt ); 114 void previsit( ast::CompoundStmt const * ) { 119 115 GuardScope( typeMap ); 120 116 } … … 217 213 private: 218 214 ScopedMap< int, ast::StructDecl const * > typeMap; 219 CodeLocation const * location = nullptr;220 215 }; 221 216
Note: See TracChangeset
for help on using the changeset viewer.