Changeset f7e4db27 for src/Parser/TypeData.cc
- Timestamp:
- Jul 20, 2018, 3:51:48 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- f2f512ba
- Parents:
- dea36ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
rdea36ee rf7e4db27 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 18 17:51:18201813 // Update Count : 6 0712 // Last Modified On : Fri Jul 20 14:39:31 2018 13 // Update Count : 622 14 14 // 15 15 … … 271 271 272 272 switch ( kind ) { 273 case Unknown: 274 os << "entity of unknown type "; 273 case Basic: 274 if ( signedness != DeclarationNode::NoSignedness ) os << DeclarationNode::signednessNames[ signedness ] << " "; 275 if ( length != DeclarationNode::NoLength ) os << DeclarationNode::lengthNames[ length ] << " "; 276 if ( complextype == DeclarationNode::NoComplexType ) { // basic type 277 assert( basictype != DeclarationNode::NoBasicType ); 278 os << DeclarationNode::basicTypeNames[ basictype ] << " "; 279 } else { // complex type 280 // handle double _Complex 281 if ( basictype != DeclarationNode::NoBasicType ) os << DeclarationNode::basicTypeNames[ basictype ] << " "; 282 os << DeclarationNode::complexTypeNames[ complextype ] << " "; 283 } // if 275 284 break; 276 285 case Pointer: … … 281 290 } // if 282 291 break; 283 case EnumConstant: 284 os << "enumeration constant "; 285 break; 286 case Basic: 287 if ( signedness != DeclarationNode::NoSignedness ) os << DeclarationNode::signednessNames[ signedness ] << " "; 288 if ( length != DeclarationNode::NoLength ) os << DeclarationNode::lengthNames[ length ] << " "; 289 assert( basictype != DeclarationNode::NoBasicType ); 290 os << DeclarationNode::basicTypeNames[ basictype ] << " "; 291 if ( complextype != DeclarationNode::NoComplexType ) os << DeclarationNode::complexTypeNames[ complextype ] << " "; 292 case Reference: 293 os << "reference "; 294 if ( base ) { 295 os << "to "; 296 base->print( os, indent ); 297 } // if 292 298 break; 293 299 case Array: … … 375 381 } // if 376 382 break; 377 case SymbolicInst: 378 os << "instance of type " << *symbolic.name; 379 if ( symbolic.actuals ) { 380 os << " with parameters" << endl; 381 symbolic.actuals->printList( os, indent + 2 ); 382 } // if 383 case EnumConstant: 384 os << "enumeration constant "; 383 385 break; 384 386 case Symbolic: … … 402 404 } // if 403 405 break; 406 case SymbolicInst: 407 os << *symbolic.name; 408 if ( symbolic.actuals ) { 409 os << "("; 410 symbolic.actuals->printList( os, indent + 2 ); 411 os << ")"; 412 } // if 413 break; 404 414 case Tuple: 405 415 os << "tuple "; … … 417 427 case Builtin: 418 428 os << DeclarationNode::builtinTypeNames[builtintype]; 429 break; 430 case GlobalScope: 431 break; 432 case Qualified: 433 qualified.parent->print( os ); 434 os << "."; 435 qualified.child->print( os ); 436 break; 437 case Unknown: 438 os << "entity of unknown type "; 419 439 break; 420 440 default:
Note: See TracChangeset
for help on using the changeset viewer.