Skip to content

Signals has no drivers when created the AST in a test case #713

Answered by MikePopoloski
Sustrak asked this question in Q&A
Discussion options

You must be logged in to vote

AST nodes are lazily created and evaluated, so you need to visit the whole tree in order to ensure you have found all of the drivers. The getAllDiagnostics function will do that for you (internally using an ElabVisitor to do it) so you can just make sure that's called before doing any of your own checks.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sustrak
Comment options

Answer selected by Sustrak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants