Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.cpp

    rcd6a6ff r98e8b3b  
    205205
    206206        void preprint( const ast::NamedTypeDecl * node ) {
    207                 if ( ! node->name.empty() ) {
    208                         if( deterministic_output && isUnboundType(node->name) ) os << "[unbound]:";
    209                         else os << node->name << ": ";
    210                 }
     207                if ( ! node->name.empty() ) os << node->name << ": ";
    211208
    212209                if ( ! short_mode && node->linkage != Linkage::Cforall ) {
     
    243240
    244241                if ( node->result ) {
    245                         os << endl << indent << "... with resolved type:" << endl;
    246                         ++indent;
    247                         os << indent;
    248                         node->result->accept( *this );
    249                         --indent;
     242                        if (!deterministic_output) {
     243                                os << endl << indent << "... with resolved type:" << endl;
     244                                ++indent;
     245                                os << indent;
     246                                node->result->accept( *this );
     247                                --indent;
     248                        }
    250249                }
    251250
     
    13831382        virtual const ast::Type * visit( const ast::TypeInstType * node ) override final {
    13841383                preprint( node );
    1385                 const auto & _name = deterministic_output && isUnboundType(node) ? "[unbound]" : node->name;
    1386                 os << "instance of type " << _name
     1384                os << "instance of type " << node->name
    13871385                   << " (" << (node->kind == ast::TypeDecl::Ftype ? "" : "not ") << "function type)";
    13881386                print( node->params );
Note: See TracChangeset for help on using the changeset viewer.