Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.h

    r490fb92e rd76c588  
    2626
    2727namespace GenPoly {
     28        typedef ErasableScopedMap< std::string, TypeDecl::Data > TyVarMap;
    2829
    29         typedef ErasableScopedMap< std::string, TypeDecl::Data > TyVarMap;
    3030        /// Replaces a TypeInstType by its referrent in the environment, if applicable
    3131        Type* replaceTypeInst( Type* type, const TypeSubstitution* env );
     
    3333        /// returns polymorphic type if is polymorphic type, NULL otherwise; will look up substitution in env if provided
    3434        Type *isPolyType( Type *type, const TypeSubstitution *env = 0 );
    35         const ast::Type * isPolyType(const ast::Type * type, const ast::TypeSubstitution * env = nullptr);
    3635
    3736        /// returns polymorphic type if is polymorphic type in tyVars, NULL otherwise; will look up substitution in env if provided
    3837        Type *isPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 );
    39         const ast::Type * isPolyType(const ast::Type * type, const TyVarMap & tyVars, const ast::TypeSubstitution * env = nullptr);
    4038
    4139        /// returns dynamic-layout type if is dynamic-layout type in tyVars, NULL otherwise; will look up substitution in env if provided
     
    8684        /// true if arg requires boxing given exprTyVars
    8785        bool needsBoxing( Type * param, Type * arg, const TyVarMap &exprTyVars, const TypeSubstitution * env );
    88         bool needsBoxing( const ast::Type * param, const ast::Type * arg, const TyVarMap &exprTyVars, const ast::TypeSubstitution * env);
    8986
    9087        /// true if arg requires boxing in the call to appExpr
    9188        bool needsBoxing( Type * param, Type * arg, ApplicationExpr * appExpr, const TypeSubstitution * env );
    92         bool needsBoxing( const ast::Type * param, const ast::Type * arg, const ast::ApplicationExpr * appExpr, const ast::TypeSubstitution * env);
    9389
    9490        /// Adds the type variable `tyVar` to `tyVarMap`
     
    9793        /// Adds the declarations in the forall list of type (and its pointed-to type if it's a pointer type) to `tyVarMap`
    9894        void makeTyVarMap( Type *type, TyVarMap &tyVarMap );
    99         void makeTyVarMap(const ast::Type * type, TyVarMap & tyVarMap);
    10095
    10196        /// Prints type variable map
Note: See TracChangeset for help on using the changeset viewer.