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 6d4a18e commit ee4caa7Copy full SHA for ee4caa7
Types/ParameterAST/get_FromUnbound.ps1
@@ -0,0 +1,18 @@
1
+foreach ($attr in $this.Attributes) {
2
+ $reflectedType = $attr.TypeName.GetReflectionType()
3
+ if ($reflectedType -ne [Management.Automation.ParameterAttribute]) {
4
+ continue
5
+ }
6
+ foreach ($namedArgument in $attr.NamedArguments) {
7
+ if ($namedArgument.ArgumentName -ne 'ValueFromRemainingArguments') {
8
9
10
+ if ($namedArgument.Argument -and $namedArgument.Argument.Value) {
11
+ return $true
12
+ } elseif (-not $namedArgument.Argument) {
13
14
15
16
+}
17
+
18
+return $false
0 commit comments