Skip to content

Commit 37894c2

Browse files
StartAutomatingStartAutomating
authored andcommitted
ParameterAST: Adding .Index (Fixes #305)
1 parent 5ec73fc commit 37894c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PipeScript.types.ps1xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,13 @@ if ($parameterIndex -eq 0) { # For the first parameter
918918
}
919919
</GetScriptBlock>
920920
</ScriptProperty>
921+
<ScriptProperty>
922+
<Name>Index</Name>
923+
<GetScriptBlock>
924+
$this.Parent.Parameters.IndexOf($this)
925+
926+
</GetScriptBlock>
927+
</ScriptProperty>
921928
</Members>
922929
</Type>
923930
<Type>

0 commit comments

Comments
 (0)