mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
Strengthen AstNode types to AstNodeExpr
Declare every AstNode children and variables as AstNodeExpr where we statically know this is the appropriate sub-type.
This commit is contained in:
+3
-3
@@ -47,9 +47,9 @@ private:
|
||||
|
||||
struct ToggleEnt {
|
||||
const string m_comment; // Comment for coverage dump
|
||||
AstNode* m_varRefp; // How to get to this element
|
||||
AstNode* m_chgRefp; // How to get to this element
|
||||
ToggleEnt(const string& comment, AstNode* vp, AstNode* cp)
|
||||
AstNodeExpr* m_varRefp; // How to get to this element
|
||||
AstNodeExpr* m_chgRefp; // How to get to this element
|
||||
ToggleEnt(const string& comment, AstNodeExpr* vp, AstNodeExpr* cp)
|
||||
: m_comment{comment}
|
||||
, m_varRefp{vp}
|
||||
, m_chgRefp{cp} {}
|
||||
|
||||
Reference in New Issue
Block a user