@@ -141,8 +141,8 @@ public void AddHiddenMemberAttribute(string identifierName)
141
141
142
142
public bool HasHiddenMemberAttribute ( string identifierName , out AttributeNode attribute )
143
143
{
144
- attribute = this . SingleOrDefault ( a => a . HasValue ( "-4" ) &&
145
- a . Name . Equals ( $ "{ identifierName } .VB_UserMemId", StringComparison . OrdinalIgnoreCase ) ) ;
144
+ attribute = this . SingleOrDefault ( a => a . HasValue ( "40" )
145
+ && a . Name . Equals ( $ "{ identifierName } .VB_UserMemId", StringComparison . OrdinalIgnoreCase ) ) ;
146
146
return attribute != null ;
147
147
}
148
148
@@ -160,6 +160,13 @@ public void AddEvaluateMemberAttribute(string identifierName)
160
160
Add ( new AttributeNode ( identifierName + ".VB_UserMemId" , new [ ] { "-5" } ) ) ;
161
161
}
162
162
163
+ public bool HasEvaluateMemberAttribute ( string identifierName , out AttributeNode attribute )
164
+ {
165
+ attribute = this . SingleOrDefault ( a => a . HasValue ( "-5" )
166
+ && a . Name . Equals ( $ "{ identifierName } .VB_UserMemId", StringComparison . OrdinalIgnoreCase ) ) ;
167
+ return attribute != null ;
168
+ }
169
+
163
170
public void AddMemberDescriptionAttribute ( string identifierName , string description )
164
171
{
165
172
Add ( new AttributeNode ( identifierName + ".VB_Description" , new [ ] { description } ) ) ;
@@ -176,7 +183,7 @@ public bool HasMemberDescriptionAttribute(string identifierName, out AttributeNo
176
183
/// </summary>
177
184
public void AddPredeclaredIdTypeAttribute ( )
178
185
{
179
- Add ( new AttributeNode ( "VB_PredeclaredId" , new [ ] { " True" } ) ) ;
186
+ Add ( new AttributeNode ( "VB_PredeclaredId" , new [ ] { Tokens . True } ) ) ;
180
187
}
181
188
182
189
public AttributeNode PredeclaredIdAttribute
@@ -197,7 +204,7 @@ public AttributeNode ExposedAttribute
197
204
198
205
public bool HasPredeclaredIdAttribute ( out AttributeNode attribute )
199
206
{
200
- attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_PredeclaredId" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( " True" ) ) ;
207
+ attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_PredeclaredId" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( Tokens . True ) ) ;
201
208
return attribute != null ;
202
209
}
203
210
@@ -206,23 +213,23 @@ public bool HasPredeclaredIdAttribute(out AttributeNode attribute)
206
213
/// </summary>
207
214
public void AddGlobalClassAttribute ( )
208
215
{
209
- Add ( new AttributeNode ( "VB_GlobalNamespace" , new [ ] { " True" } ) ) ;
216
+ Add ( new AttributeNode ( "VB_GlobalNamespace" , new [ ] { Tokens . True } ) ) ;
210
217
}
211
218
212
219
public bool HasGlobalAttribute ( out AttributeNode attribute )
213
220
{
214
- attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_GlobalNamespace" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( " True" ) ) ;
221
+ attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_GlobalNamespace" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( Tokens . True ) ) ;
215
222
return attribute != null ;
216
223
}
217
224
218
225
public void AddExposedClassAttribute ( )
219
226
{
220
- Add ( new AttributeNode ( "VB_Exposed" , new [ ] { " True" } ) ) ;
227
+ Add ( new AttributeNode ( "VB_Exposed" , new [ ] { Tokens . True } ) ) ;
221
228
}
222
229
223
230
public bool HasExposedAttribute ( out AttributeNode attribute )
224
231
{
225
- attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_Exposed" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( " True" ) ) ;
232
+ attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_Exposed" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( Tokens . True ) ) ;
226
233
return attribute != null ;
227
234
}
228
235
@@ -231,12 +238,12 @@ public bool HasExposedAttribute(out AttributeNode attribute)
231
238
/// </summary>
232
239
public void AddExtensibleClassAttribute ( )
233
240
{
234
- Add ( new AttributeNode ( "VB_Customizable" , new [ ] { " True" } ) ) ;
241
+ Add ( new AttributeNode ( "VB_Customizable" , new [ ] { Tokens . True } ) ) ;
235
242
}
236
243
237
244
public bool HasExtensibleAttribute ( out AttributeNode attribute )
238
245
{
239
- attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_Customizable" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( " True" ) ) ;
246
+ attribute = this . SingleOrDefault ( a => a . Name . Equals ( "VB_Customizable" , StringComparison . OrdinalIgnoreCase ) && a . HasValue ( Tokens . True ) ) ;
240
247
return attribute != null ;
241
248
}
242
249
0 commit comments