Types/OpenPackage/get_PowerShellTypeAst.ps1
|
<# .SYNOPSIS Gets PowerShell Type References .DESCRIPTION Gets PowerShell TypeExpressionAst references within an Open Package. #> foreach ($content in $this.GetContent(@($this.FileList -match '.psm?1$'))) { if (-not $content.Ast) { continue } $content.Ast.FindAll({ param($ast) $ast -is [Management.Automation.Language.TypeExpressionAst] }, $true) | Add-Member NoteProperty PartUri $content.PartUri -Force -PassThru | Add-Member NoteProperty Package $content.Package -Force -PassThru } |