Skip to content

Child Nodes have the same Text #5

@ash-aldujaili

Description

@ash-aldujaili

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.
image

Debugging these two nodes, I found the following:

image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions