Changes in src/ResolvExpr/ConversionCost.h [ea6332d:0c6596f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.h
rea6332d r0c6596f 16 16 #pragma once 17 17 18 #include <functional> // for function 19 18 20 #include "Cost.h" // for Cost 19 21 #include "SynTree/Visitor.h" // for Visitor … … 21 23 22 24 namespace SymTab { 23 class Indexer;25 class Indexer; 24 26 } // namespace SymTab 25 27 26 28 namespace ResolvExpr { 27 class TypeEnvironment;29 class TypeEnvironment; 28 30 29 31 class ConversionCost : public Visitor { … … 37 39 virtual void visit(PointerType *pointerType); 38 40 virtual void visit(ArrayType *arrayType); 41 virtual void visit(ReferenceType *refType); 39 42 virtual void visit(FunctionType *functionType); 40 43 virtual void visit(StructInstType *aggregateUseType); … … 53 56 const TypeEnvironment &env; 54 57 }; 58 59 typedef std::function<int(Type *, Type *, const TypeEnvironment &, const SymTab::Indexer &)> PtrsFunction; 60 Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env, PtrsFunction func ); 55 61 } // namespace ResolvExpr 56 62
Note: See TracChangeset
for help on using the changeset viewer.