Skip to content

Commit cc3e32e

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding CommandAST/PipelineAST .IsAssigned (Fixes #167)
1 parent 193c61e commit cc3e32e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

PipeScript.types.ps1xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ for (
212212
)
213213
</GetScriptBlock>
214214
</ScriptProperty>
215+
<ScriptProperty>
216+
<Name>IsAssigned</Name>
217+
<GetScriptBlock>
218+
$this.Parent.Parent -is [Management.Automation.Language.AssignmentStatementAST]
219+
</GetScriptBlock>
220+
</ScriptProperty>
215221
<ScriptProperty>
216222
<Name>IsPiped</Name>
217223
<GetScriptBlock>
@@ -290,6 +296,18 @@ $this.Parent.PipelineElements.IndexOf($this)
290296
</ScriptMethod>
291297
</Members>
292298
</Type>
299+
<Type>
300+
<Name>System.Management.Automation.Language.PipelineAST</Name>
301+
<Members>
302+
<ScriptProperty>
303+
<Name>IsAssigned</Name>
304+
<GetScriptBlock>
305+
$this.Parent -is [Management.Automation.Language.AssignmentStatementAST]
306+
307+
</GetScriptBlock>
308+
</ScriptProperty>
309+
</Members>
310+
</Type>
293311
<Type>
294312
<Name>PipeScript</Name>
295313
<Members>

0 commit comments

Comments
 (0)