Changes in src/SynTree/ApplicationExpr.cc [ea6332d:e3e16bc]
- File:
-
- 1 edited
-
src/SynTree/ApplicationExpr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
rea6332d re3e16bc 14 14 // 15 15 16 #include <cassert> // for s afe_dynamic_cast, assert16 #include <cassert> // for strict_dynamic_cast, assert 17 17 #include <list> // for list 18 18 #include <map> // for _Rb_tree_const_iterator, map, map<>:... … … 49 49 } 50 50 51 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list< Expression * > & argList ) : function( funcExpr ), args( argList) {52 PointerType *pointer = s afe_dynamic_cast< PointerType* >( funcExpr->get_result() );53 FunctionType *function = s afe_dynamic_cast< FunctionType* >( pointer->get_base() );51 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list<Expression *> & args ) : function( funcExpr ), args( args ) { 52 PointerType *pointer = strict_dynamic_cast< PointerType* >( funcExpr->get_result() ); 53 FunctionType *function = strict_dynamic_cast< FunctionType* >( pointer->get_base() ); 54 54 55 55 set_result( ResolvExpr::extractResultType( function ) );
Note:
See TracChangeset
for help on using the changeset viewer.