data: filename info
* Changed the TokenLocation of TemplateArguments to have at least a valid file name. * Extended name of anonymous namespace by the containing file's name. * Adjusted tests to reflect these changes.
This commit is contained in:
@@ -310,7 +310,10 @@ Id Storage::onNamespaceParsed(
|
||||
log("namespace", utility::join(nameHierarchy, "::"), location);
|
||||
|
||||
Node* node = addNodeHierarchy(Node::NODE_NAMESPACE, nameHierarchy);
|
||||
addTokenLocation(node, location);
|
||||
if (location.isValid())
|
||||
{
|
||||
addTokenLocation(node, location);
|
||||
}
|
||||
addTokenLocation(node, scopeLocation, true);
|
||||
|
||||
return node->getId();
|
||||
|
||||
Reference in New Issue
Block a user