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 ea5e4a6 commit 255a611Copy full SHA for 255a611
Transpilers/Core/Pipescript.psx.ps1
@@ -91,7 +91,14 @@ process {
91
@(
92
# check each ScriptBlock attribute
93
foreach ($attrAst in $ScriptBlock.Ast.ParamBlock.Attributes) {
94
- $attrRealType = $attrAst.TypeName.ToString() -as [type]
+
95
+ $attrRealType =
96
+ if ($attrAst.TypeName.GetReflectionType) {
97
+ $attrAst.TypeName.GetReflectionType()
98
+ } elseif ($attrAst.TypeName.ToString) {
99
+ $attrAst.TypeName.ToString() -as [type]
100
+ }
101
102
if (-not $attrRealType) {
103
$attrAst
104
}
0 commit comments