-
Notifications
You must be signed in to change notification settings - Fork 24
Child Nodes have the same Text #5
Copy link
Copy link
Open
Description
I tried running the tool on the module itself as follows.
Show-Ast .\ShowPSAst.psm1
I found the following children nodes with the same texts (why is that? I assume nodes would have distinct IDs), see below; two instances of TypeConstraintAst nodes of exactly the same offsets.

Debugging these two nodes, I found the following:
In a nutshell, one $child has
TypeNameOfValue System.Management.Automation.Language.AttributeBaseAst and the other has TypeNameOfValue : System.Management.Automation.Language.TypeConstraintAst, yet both map to the same text TypeConstraintAst [2918,2942).
Any thoughts on the above?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
