data: reduced size of generated .coatidb files

* added occurrence table to get rid of duplicate source locations
* reverted storage provider
This commit is contained in:
malte_langkabel
2016-11-04 08:43:10 +01:00
parent 98869e51a5
commit e7c9a1340e
11 changed files with 394 additions and 159 deletions
+6 -2
View File
@@ -293,8 +293,7 @@ void ParserClientImpl::addSourceLocation(Id elementId, const ParseLocation& loca
return;
}
m_storage->addSourceLocation(
elementId,
Id sourceLocationId = m_storage->addSourceLocation(
addFile(location.filePath.str()),
location.startLineNumber,
location.startColumnNumber,
@@ -302,6 +301,11 @@ void ParserClientImpl::addSourceLocation(Id elementId, const ParseLocation& loca
location.endColumnNumber,
type
);
m_storage->addOccurrence(
elementId,
sourceLocationId
);
}
void ParserClientImpl::addComponentAccess(Id nodeId , int type)