logic: record template argument that is a dependent template type as local symbol

This commit is contained in:
mlangkabel
2019-10-18 13:05:28 +02:00
committed by Eberhard Graether
parent fc0e652ae0
commit ce22e5917a
3 changed files with 31 additions and 19 deletions
+4 -1
View File
@@ -50,7 +50,10 @@ void ParserClientImpl::recordDefinitionKind(Id symbolId, DefinitionKind definiti
Id ParserClientImpl::recordReference(ReferenceKind referenceKind, Id referencedSymbolId, Id contextSymbolId, const ParseLocation& location)
{
Id edgeId = addEdge(referenceKindToEdgeType(referenceKind), contextSymbolId, referencedSymbolId);
addSourceLocation(edgeId, location, LOCATION_TOKEN);
if (edgeId)
{
addSourceLocation(edgeId, location, LOCATION_TOKEN);
}
return edgeId;
}