logic: don't show implicit or undefined child nodes in graph unless connected
* visit implicit declarations in ASTVisitor * show implicit and undefined child nodes only when connected * fixed some bundle edges couldn't be split * add "implicit" to tooltip * show undefiend and implicit nodes hatched
This commit is contained in:
@@ -98,6 +98,8 @@ Node::Node(Id id, NodeType type, NameHierarchy nameHierarchy, bool defined)
|
||||
, m_type(type)
|
||||
, m_nameHierarchy(nameHierarchy)
|
||||
, m_defined(defined)
|
||||
, m_implicit(false)
|
||||
, m_explicit(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -152,6 +154,26 @@ void Node::setDefined(bool defined)
|
||||
m_defined = defined;
|
||||
}
|
||||
|
||||
bool Node::isImplicit() const
|
||||
{
|
||||
return m_implicit;
|
||||
}
|
||||
|
||||
void Node::setImplicit(bool implicit)
|
||||
{
|
||||
m_implicit = implicit;
|
||||
}
|
||||
|
||||
bool Node::isExplicit() const
|
||||
{
|
||||
return m_explicit;
|
||||
}
|
||||
|
||||
void Node::setExplicit(bool bExplicit)
|
||||
{
|
||||
m_explicit = bExplicit;
|
||||
}
|
||||
|
||||
const std::vector<Edge*>& Node::getEdges() const
|
||||
{
|
||||
return m_edges;
|
||||
|
||||
@@ -63,6 +63,12 @@ public:
|
||||
bool isDefined() const;
|
||||
void setDefined(bool defined);
|
||||
|
||||
bool isImplicit() const;
|
||||
void setImplicit(bool implicit);
|
||||
|
||||
bool isExplicit() const;
|
||||
void setExplicit(bool bExplicit);
|
||||
|
||||
const std::vector<Edge*>& getEdges() const;
|
||||
|
||||
void addEdge(Edge* edge);
|
||||
@@ -107,6 +113,8 @@ private:
|
||||
NodeType m_type;
|
||||
NameHierarchy m_nameHierarchy;
|
||||
bool m_defined;
|
||||
bool m_implicit;
|
||||
bool m_explicit;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& ostream, const Node& node);
|
||||
|
||||
Reference in New Issue
Block a user