We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0ad0a commit 5984049Copy full SHA for 5984049
module/PowerShellEditorServices/Commands/Public/Find-Ast.ps1
@@ -92,7 +92,7 @@ function Find-Ast {
92
# Need to store so we can reverse the collection.
93
$result = [Linq.Enumerable]::TakeWhile(
94
$topParent.FindAll({ $true }, $true),
95
- $predicate)
+ $predicate) -as [System.Management.Automation.Language.Ast[]]
96
97
[array]::Reverse($result)
98
return $result
0 commit comments