Skip to content
Discussion options

You must be logged in to vote

Might be answering my own question a bit, but the port count went down when I modified the remove_module_port function to the following code. I did change out the remove variables to add is_ansi_port and name, so the name matching happens in the remove_module_port function. I'll need to work on a non-ansi case as well, but the count has gone down.

        if self.remove_is_ansi_port:
            if node.kind == SyntaxKind.ImplicitAnsiPort:
                if node.declarator.name.valueText == self.remove_name:
                    self.logger.info("Found Matching Port to Remove: %s", node.declarator.name.valueText.strip())
                    rewriter.remove(node)

I had noticed that when I…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MikePopoloski
Comment options

@zigzagtx2778
Comment options

@MikePopoloski
Comment options

@zigzagtx2778
Comment options

Answer selected by zigzagtx2778
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