Types/OpenPackage/get_PowerShellParameterAst.ps1

<#
.SYNOPSIS
    Gets PowerShell Parameter Definitions
.DESCRIPTION
    Gets all PowerShell ParameterAst 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.ParameterAst]
    }, $true) |     
        Add-Member NoteProperty PartUri $content.PartUri -Force -PassThru |
        Add-Member NoteProperty Package $content.Package -Force -PassThru
}