| 712 | LineInfo LineInfo::g_LineInfoNULL; |
| 713 | |
| 714 | string LineInfo::describe(bool fully) const { |
| 715 | if ( fileInfo ) { |
| 716 | TextWriter ss; |
| 717 | ss << fileInfo->name << ":" << line << ":" << column; |
| 718 | if ( fully ) ss << "-" << last_line << ":" << last_column; |
| 719 | return ss.str(); |
| 720 | } else { |
| 721 | return string(); |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | bool LineInfo::operator < ( const LineInfo & info ) const { |
| 726 | if ( fileInfo && info.fileInfo && fileInfo->name != info.fileInfo->name) |
no test coverage detected