Changeset 7b5694d for src/ResolvExpr
- Timestamp:
- Jan 17, 2023, 2:05:52 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- fed6a0f
- Parents:
- e563edf
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Unify.h
re563edf r7b5694d 85 85 const ast::TypeEnvironment & env = {} ); 86 86 87 /// Creates the type represented by the list of returnVals in a FunctionType. 88 /// The caller owns the return value. 89 Type * extractResultType( FunctionType * functionType ); 90 /// Creates or extracts the type represented by returns in a `FunctionType`. 91 ast::ptr<ast::Type> extractResultType( const ast::FunctionType * func ); 92 93 std::vector<ast::ptr<ast::Type>> flattenList( 94 const std::vector<ast::ptr<ast::Type>> & src, ast::TypeEnvironment & env 95 ); 96 87 97 } // namespace ResolvExpr 88 98 -
src/ResolvExpr/typeops.h
re563edf r7b5694d 108 108 const ast::TypeEnvironment & env ); 109 109 110 /// creates the type represented by the list of returnVals in a FunctionType. The caller owns the return value.111 Type * extractResultType( FunctionType * functionType );112 /// Creates or extracts the type represented by the list of returns in a `FunctionType`.113 ast::ptr<ast::Type> extractResultType( const ast::FunctionType * func );114 115 110 // in CommonType.cc 116 111 Type * commonType( Type * type1, Type * type2, bool widenFirst, bool widenSecond, const SymTab::Indexer & indexer, TypeEnvironment & env, const OpenVarSet & openVars ); … … 119 114 ast::TypeEnvironment & env, ast::AssertionSet & need, ast::AssertionSet & have, 120 115 const ast::OpenVarSet & open, WidenMode widen, const ast::SymbolTable & symtab 121 );122 // in Unify.cc123 std::vector< ast::ptr< ast::Type > > flattenList(124 const std::vector< ast::ptr< ast::Type > > & src, ast::TypeEnvironment & env125 116 ); 126 117 … … 206 197 } 207 198 208 209 210 199 // in TypeEnvironment.cc 211 200 bool isFtype( const Type * type );
Note: See TracChangeset
for help on using the changeset viewer.