Changes in src/AST/Print.cpp [cd6a6ff:98e8b3b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
rcd6a6ff r98e8b3b 205 205 206 206 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 << ": "; 211 208 212 209 if ( ! short_mode && node->linkage != Linkage::Cforall ) { … … 243 240 244 241 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 } 250 249 } 251 250 … … 1383 1382 virtual const ast::Type * visit( const ast::TypeInstType * node ) override final { 1384 1383 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 1387 1385 << " (" << (node->kind == ast::TypeDecl::Ftype ? "" : "not ") << "function type)"; 1388 1386 print( node->params );
Note:
See TracChangeset
for help on using the changeset viewer.