File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public static NamedAttributeArgumentAst GetSupportsShouldProcessAst(this Attribu
118
118
/// Return the boolean value of a named attribute argument.
119
119
/// </summary>
120
120
/// <param name="argumentAst">The ast of the argument's value</param>
121
- public static bool IsTrue ( this NamedAttributeArgumentAst attrAst , out ExpressionAst argumentAst )
121
+ public static bool GetValue ( this NamedAttributeArgumentAst attrAst , out ExpressionAst argumentAst )
122
122
{
123
123
argumentAst = null ;
124
124
if ( attrAst . ExpressionOmitted )
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Describe "NamedAttributeArgumentAst" {
145
145
param ($param1 , $param2 )
146
146
}}.Ast.EndBlock.Statements[0 ].Body.ParamBlock.Attributes[0 ].NamedArguments[0 ]
147
147
$expressionAst = $null
148
- $extNamespace ::IsTrue ($attrAst , [ref ]$expressionAst ) | Should Be $true
148
+ $extNamespace ::GetValue ($attrAst , [ref ]$expressionAst ) | Should Be $true
149
149
$expressionAst | Should Be $null
150
150
}
151
151
@@ -156,7 +156,7 @@ Describe "NamedAttributeArgumentAst" {
156
156
param ($param1 , $param2 )
157
157
}}.Ast.EndBlock.Statements[0 ].Body.ParamBlock.Attributes[0 ].NamedArguments[0 ]
158
158
$expressionAst = $null
159
- $extNamespace ::IsTrue ($attrAst , [ref ]$expressionAst ) | Should Be $true
159
+ $extNamespace ::GetValue ($attrAst , [ref ]$expressionAst ) | Should Be $true
160
160
$expressionAst | Should Not Be $null
161
161
}
162
162
@@ -167,7 +167,7 @@ Describe "NamedAttributeArgumentAst" {
167
167
param ($param1 , $param2 )
168
168
}}.Ast.EndBlock.Statements[0 ].Body.ParamBlock.Attributes[0 ].NamedArguments[0 ]
169
169
$expressionAst = $null
170
- $extNamespace ::IsTrue ($attrAst , [ref ]$expressionAst ) | Should Be $false
170
+ $extNamespace ::GetValue ($attrAst , [ref ]$expressionAst ) | Should Be $false
171
171
$expressionAst | Should Not Be $null
172
172
173
173
}
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ private List<CorrectionExtent> GetCorrections(
141
141
if ( shouldProcessAst != null )
142
142
{
143
143
ExpressionAst argAst ;
144
- if ( ! shouldProcessAst . IsTrue ( out argAst )
144
+ if ( ! shouldProcessAst . GetValue ( out argAst )
145
145
&& argAst != null )
146
146
{
147
147
// SupportsShouldProcess is set to something other than $true.
You can’t perform that action at this time.
0 commit comments