Changeset aaeacf4 for src/AST/Expr.hpp
- Timestamp:
- Jun 12, 2019, 4:06:32 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 21300d7
- Parents:
- 6e3e0717
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r6e3e0717 raaeacf4 39 39 struct ParamEntry { 40 40 UniqueId decl; 41 ptr<Decl> declptr; 41 42 ptr<Type> actualType; 42 43 ptr<Type> formalType; 43 44 ptr<Expr> expr; 44 45 45 ParamEntry() : decl( 0 ), actualType( nullptr ), formalType( nullptr ), expr( nullptr ) {}46 ParamEntry( UniqueId id, Type* actual, Type* formal, Expr* e )47 : decl( id ), actualType( actual ), formalType( formal ), expr( e ) {}46 ParamEntry() : decl( 0 ), declptr( nullptr ), actualType( nullptr ), formalType( nullptr ), expr( nullptr ) {} 47 ParamEntry( UniqueId id, Decl * declptr, Type* actual, Type* formal, Expr* e ) 48 : decl( id ), declptr( declptr ), actualType( actual ), formalType( formal ), expr( e ) {} 48 49 }; 49 50 … … 137 138 } 138 139 139 /// splices other InferUnion into this one. Will fail if one union is in `Slots` mode 140 /// splices other InferUnion into this one. Will fail if one union is in `Slots` mode 140 141 /// and the other is in `Params`. 141 142 void splice( InferUnion && o ) { … … 145 146 146 147 if ( mode == Slots ){ 147 data.resnSlots.insert( 148 data.resnSlots.insert( 148 149 data.resnSlots.end(), o.data.resnSlots.begin(), o.data.resnSlots.end() ); 149 150 } else if ( mode == Params ) {
Note: See TracChangeset
for help on using the changeset viewer.