src: some fixes

* fixed field declaration type has no source location
* grouped menu items
* overload edge pointing in right direction
This commit is contained in:
Eberhard Graether
2015-09-17 11:08:04 +02:00
parent be0eaf9d0d
commit 05d390fb3f
2 changed files with 10 additions and 4 deletions
+2 -3
View File
@@ -228,8 +228,7 @@ Id Storage::onFieldParsed(const ParseLocation& location, const ParseVariable& va
addSourceLocation(nodeId, location);
Id typeNodeId = addNodeHierarchy(Node::NODE_UNDEFINED_TYPE, variable.type.dataType->getTypeNameHierarchy());
addEdge(nodeId, typeNodeId, Edge::EDGE_TYPE_OF, location);
addEdge(nodeId, typeNodeId, Edge::EDGE_TYPE_OF, variable.type.location);
return nodeId;
}
@@ -325,7 +324,7 @@ Id Storage::onMethodOverrideParsed(
Id baseNodeId = addNodeHierarchyWithDistinctSignature(Node::NODE_UNDEFINED_FUNCTION, base); // TODO: call this overridden
Id overriderNodeId = addNodeHierarchyWithDistinctSignature(Node::NODE_UNDEFINED_FUNCTION, overrider);
Id edgeId = addEdge(baseNodeId, overriderNodeId, Edge::EDGE_OVERRIDE, location);
Id edgeId = addEdge(overriderNodeId, baseNodeId, Edge::EDGE_OVERRIDE, location);
return edgeId;
}