Internals: Reorder code. No functional change.
This commit is contained in:
parent
c6e7d87960
commit
429437f1b9
|
|
@ -487,6 +487,12 @@ private:
|
||||||
//
|
//
|
||||||
nodep->flatsp()->iterateAndNext(*this);
|
nodep->flatsp()->iterateAndNext(*this);
|
||||||
}
|
}
|
||||||
|
virtual void visit(AstNodeFTask* nodep, AstNUser*) {
|
||||||
|
if (!m_beginp) { // For now, we don't support xrefs into functions inside begin blocks
|
||||||
|
m_statep->insertSym(m_cellVxp, nodep->name(), nodep);
|
||||||
|
}
|
||||||
|
// No recursion, we don't want to pick up variables
|
||||||
|
}
|
||||||
virtual void visit(AstVar* nodep, AstNUser*) {
|
virtual void visit(AstVar* nodep, AstNUser*) {
|
||||||
if (!m_statep->forScopeCreation()
|
if (!m_statep->forScopeCreation()
|
||||||
&& !m_beginp // For now, we don't support xrefs into begin blocks
|
&& !m_beginp // For now, we don't support xrefs into begin blocks
|
||||||
|
|
@ -496,12 +502,6 @@ private:
|
||||||
UINFO(9," Not allowing dot refs to: "<<nodep<<endl);
|
UINFO(9," Not allowing dot refs to: "<<nodep<<endl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
virtual void visit(AstNodeFTask* nodep, AstNUser*) {
|
|
||||||
if (!m_beginp) { // For now, we don't support xrefs into functions inside begin blocks
|
|
||||||
m_statep->insertSym(m_cellVxp, nodep->name(), nodep);
|
|
||||||
}
|
|
||||||
// No recursion, we don't want to pick up variables
|
|
||||||
}
|
|
||||||
virtual void visit(AstCFunc* nodep, AstNUser*) {
|
virtual void visit(AstCFunc* nodep, AstNUser*) {
|
||||||
// Ignore all AstVars under functions
|
// Ignore all AstVars under functions
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue