Skip to content

Easiest way to print the declaration of a Port/Net/Variable #1111

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

You must be logged in to vote

Most symbols have a SyntaxNode pointer that you can use to get back to the original declaration and print that if you want. Otherwise if you want it in some specific standardized format then you should write the formatting yourself. The TypePrinter probably has the options you need to get it the way you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Badhi
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