Changes in src/GenPoly/GenPoly.h [5a3ac84:2c57025]
- File:
-
- 1 edited
-
src/GenPoly/GenPoly.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
r5a3ac84 r2c57025 67 67 Type *hasPolyBase( Type *type, const TyVarMap &tyVars, int *levels = 0, const TypeSubstitution *env = 0 ); 68 68 69 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic or a generic type with at least one70 /// polymorphic parameter; will look up substitution in env if provided.71 bool includesPolyType( Type *type, const TypeSubstitution *env = 0 );72 73 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic in tyVars, or a generic type with74 /// at least one polymorphic parameter in tyVars; will look up substitution in env if provided.75 bool includesPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 );76 77 69 /// Returns a pointer to the base FunctionType if ty is the type of a function (or pointer to one), NULL otherwise 78 70 FunctionType *getFunctionType( Type *ty ); … … 81 73 /// N will be stored in levels, if provided 82 74 VariableExpr *getBaseVar( Expression *expr, int *levels = 0 ); 83 84 /// true iff types are structurally identical, where TypeInstType's match any type.85 bool typesPolyCompatible( Type *aty, Type *bty );86 75 87 76 /// Adds the type variable `tyVar` to `tyVarMap`
Note:
See TracChangeset
for help on using the changeset viewer.