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