| 372 | } |
| 373 | |
| 374 | uint32_t FileContent::EndLine(NodeId index) const { |
| 375 | if (!index) return 0; |
| 376 | if (index >= m_objects.size()) { |
| 377 | Location loc(m_fileId); |
| 378 | Error err(ErrorDefinition::COMP_INTERNAL_ERROR_OUT_OF_BOUND, loc); |
| 379 | m_errors->addError(err); |
| 380 | std::cerr << "\nINTERNAL OUT OF BOUND ERROR\n\n"; |
| 381 | return 0; |
| 382 | } |
| 383 | return m_objects[index].m_endLine; |
| 384 | } |
| 385 | |
| 386 | uint16_t FileContent::EndColumn(NodeId index) const { |
| 387 | if (!index) return 0; |
no test coverage detected