Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tuples/Explode.h

    r6d6e829 r490ff5c3  
    4444        template<typename OutputIterator>
    4545        void append( OutputIterator out, Expression* expr, const ResolvExpr::TypeEnvironment& env,
    46                         const ResolvExpr::OpenVarSet& openVars, const ResolvExpr::AssertionList& need,
    4746                        const ResolvExpr::Cost& cost, const ResolvExpr::Cost& cvtCost ) {
    48                 *out++ = ResolvExpr::Alternative{ expr, env, openVars, need, cost, cvtCost };
     47                *out++ = ResolvExpr::Alternative{ expr, env, cost, cvtCost };
    4948        }
    5049
    5150        /// Append alternative to an ExplodedActual
    5251        static inline void append( ResolvExpr::ExplodedActual& ea, Expression* expr,
    53                         const ResolvExpr::TypeEnvironment&, const ResolvExpr::OpenVarSet&,
    54                         const ResolvExpr::AssertionList&, const ResolvExpr::Cost&, const ResolvExpr::Cost& ) {
     52                        const ResolvExpr::TypeEnvironment&, const ResolvExpr::Cost&, const ResolvExpr::Cost& ) {
    5553                ea.exprs.emplace_back( expr );
    56                 /// xxx -- merge environment, openVars, need, cost?
     54                /// xxx -- merge environment, cost?
    5755        }
    5856
     
    7068                                        // distribute reference cast over all components
    7169                                        append( std::forward<Output>(out), distributeReference( alt.release_expr() ),
    72                                                 alt.env, alt.openVars, alt.need, alt.cost, alt.cvtCost );
     70                                                alt.env, alt.cost, alt.cvtCost );
    7371                                }
    7472                                // in tuple assignment, still need to handle the other cases, but only if not already handled here (don't want to output too many alternatives)
     
    104102                } else {
    105103                        // atomic (non-tuple) type - output a clone of the expression in a new alternative
    106                         append( std::forward<Output>(out), expr->clone(), alt.env, alt.openVars, alt.need, 
    107                                 alt.cost, alt.cvtCost );
     104                        append( std::forward<Output>(out), expr->clone(), alt.env, alt.cost, alt.cvtCost );
    108105                }
    109106        }
Note: See TracChangeset for help on using the changeset viewer.