Changeset eba74ba for src/SynTree/ApplicationExpr.cc
- Timestamp:
- May 25, 2018, 2:51:06 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- cdc4d43
- Parents:
- 3ef35bd (diff), 58e822a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
r3ef35bd reba74ba 42 42 } 43 43 44 ParamEntry::ParamEntry( ParamEntry && other ) : 45 decl( other.decl ), actualType( other.actualType ), formalType( other.formalType ), expr( other.expr ), inferParams( std::move( other.inferParams ) ) { 46 other.actualType = nullptr; 47 other.formalType = nullptr; 48 other.expr = nullptr; 49 } 50 51 ParamEntry & ParamEntry::operator=( ParamEntry && other ) { 52 if ( &other == this ) return *this; 53 decl = other.decl; 54 actualType = other.actualType; 55 formalType = other.formalType; 56 expr = other.expr; 57 other.actualType = nullptr; 58 other.formalType = nullptr; 59 other.expr = nullptr; 60 inferParams = std::move( other.inferParams ); 61 return *this; 62 } 63 44 64 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list<Expression *> & args ) : function( funcExpr ), args( args ) { 45 65 PointerType *pointer = strict_dynamic_cast< PointerType* >( funcExpr->get_result() );
Note: See TracChangeset
for help on using the changeset viewer.