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 1d93d9b commit 6bd803eCopy full SHA for 6bd803e
Transpilers/Syntax/Dot.psx.ps1
@@ -84,6 +84,8 @@ process {
84
$lastCommandAst = $targetCommandAst
85
$commandSequence += $targetCommandAst
86
$targetCommandAst.CommandElements
87
+ # If the grandparent didn't have a list of statements, this is the only dot sequence in the chain.
88
+ if (-not $CommandAst.Parent.Parent.Statements) { break }
89
$nextStatementIndex = $commandAst.Parent.Parent.Statements.IndexOf($targetCommandAst.Parent) + 1
90
$nextStatement = $CommandAst.Parent.Parent.Statements[$nextStatementIndex]
91
if ($nextStatement -isnot [Management.Automation.Language.PipelineAst]) {
0 commit comments