| 166 | } |
| 167 | |
| 168 | RangeInRevision ParseSession::locationToRange(const QmlJS::AST::SourceLocation& location) const |
| 169 | { |
| 170 | const int linesInLocation = m_doc->source().midRef(location.offset, location.length).count(QLatin1Char('\n')); |
| 171 | return RangeInRevision(location.startLine - 1, location.startColumn - 1, |
| 172 | location.startLine - 1 + linesInLocation, location.startColumn - 1 + location.length); |
| 173 | } |
| 174 | |
| 175 | RangeInRevision ParseSession::locationsToRange(const QmlJS::AST::SourceLocation& locationFrom, |
| 176 | const QmlJS::AST::SourceLocation& locationTo) const |
no test coverage detected