Skip to content

Commit 1a6e2a2

Browse files
committed
added comments to NewSplattedModification
1 parent 1dc0c45 commit 1a6e2a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Refactoring/IterativeVariableVisitor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ public void ProcessNode(Ast node)
414414

415415
internal void NewSplattedModification(Ast Splatted)
416416
{
417+
// This Function should be passed a Splatted VariableExpressionAst which
418+
// is used by a CommandAst that is the TargetFunction.
419+
417420
// Find the Splats Top Assignment / Definition
418421
Ast SplatAssignment = GetVariableTopAssignment(
419422
Splatted.Extent.StartLineNumber,
@@ -443,7 +446,6 @@ assignmentStatementAst.Right is CommandExpressionAst commExpAst &&
443446
}
444447

445448
}
446-
447449
}
448450
}
449451

0 commit comments

Comments
 (0)