Changes in src/ResolvExpr/Unify.cc [7a63486:54e41b3]
- File:
-
- 1 edited
-
src/ResolvExpr/Unify.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Unify.cc
r7a63486 r54e41b3 21 21 #include <string> // for string, operator==, operator!=, bas... 22 22 #include <utility> // for pair, move 23 23 #include <vector> 24 25 #include "AST/Node.hpp" 26 #include "AST/Type.hpp" 24 27 #include "Common/PassVisitor.h" // for PassVisitor 25 28 #include "FindOpenVars.h" // for findOpenVars … … 630 633 } 631 634 632 // xxx - compute once and store in the FunctionType?633 635 Type * extractResultType( FunctionType * function ) { 634 636 if ( function->get_returnVals().size() == 0 ) { … … 644 646 } 645 647 } 648 649 ast::ptr<ast::Type> extractResultType( const ast::FunctionType * func ) { 650 assert(!"restore after AST added to build"); 651 // if ( func->returns.empty() ) return new ast::VoidType{}; 652 // if ( func->returns.size() == 1 ) return func->returns[0]->get_type(); 653 654 // std::vector<ast::ptr<ast::Type>> tys; 655 // for ( const ast::DeclWithType * decl : func->returns ) { 656 // tys.emplace_back( decl->get_type() ); 657 // } 658 // return new ast::TupleType{ std::move(tys) }; 659 } 646 660 } // namespace ResolvExpr 647 661
Note:
See TracChangeset
for help on using the changeset viewer.