FileContainer TranslationUnit::fileContainer() const
{
    checkIfNull();

    return FileContainer(d->filePath,
                         d->projectPart.projectPartId(),
                         Utf8String(),
                         false,
                         d->documentRevision);
}
Example #2
0
const TranslationUnit &TranslationUnits::translationUnit(const Utf8String &filePath, const Utf8String &projectPartId) const
{
    checkIfProjectPartExists(projectPartId);

    auto findIterator = findTranslationUnit(filePath, projectPartId);

    if (findIterator == translationUnits_.end())
        throw TranslationUnitDoesNotExistException(FileContainer(filePath, projectPartId));

    return *findIterator;
}
Example #3
0
FileContainer Document::fileContainer() const
{
    checkIfNull();

    return FileContainer(d->filePath,
                         d->projectPart.id(),
                         d->fileArguments,
                         Utf8String(),
                         false,
                         d->documentRevision);
}
Example #4
0
bool Documents::hasDocument(const Utf8String &filePath,
                                          const Utf8String &projectPartId) const
{
    return hasDocument(FileContainer(filePath, projectPartId));
}