@@ -132,7 +132,7 @@ public Declaration(
132
132
AttributesPassContext = attributesPassContext ;
133
133
IsUserDefined = isUserDefined ;
134
134
_annotations = annotations ;
135
- _attributes = attributes ?? new Attributes ( ) ;
135
+ Attributes = attributes ?? new Attributes ( ) ;
136
136
137
137
ProjectId = QualifiedName . QualifiedModuleName . ProjectId ;
138
138
var projectDeclaration = GetProjectParent ( parentDeclaration ) ;
@@ -277,9 +277,7 @@ public static Declaration GetProjectParent(Declaration declaration)
277
277
278
278
protected IEnumerable < IAnnotation > _annotations ;
279
279
public IEnumerable < IAnnotation > Annotations => _annotations ?? new List < IAnnotation > ( ) ;
280
-
281
- private readonly Attributes _attributes ;
282
- public Attributes Attributes => _attributes ;
280
+ public Attributes Attributes { get ; }
283
281
284
282
/// <summary>
285
283
/// Gets an attribute value that contains the docstring for a member.
@@ -290,14 +288,14 @@ public string DescriptionString
290
288
{
291
289
string literalDescription ;
292
290
293
- var memberAttribute = _attributes . SingleOrDefault ( a => a . Name == $ "{ IdentifierName } .VB_Description") ;
291
+ var memberAttribute = Attributes . SingleOrDefault ( a => a . Name == $ "{ IdentifierName } .VB_Description") ;
294
292
if ( memberAttribute != null )
295
293
{
296
294
literalDescription = memberAttribute . Values . SingleOrDefault ( ) ?? string . Empty ;
297
295
return CorrectlyFormatedDescription ( literalDescription ) ;
298
296
}
299
297
300
- var moduleAttribute = _attributes . SingleOrDefault ( a => a . Name == "VB_Description" ) ;
298
+ var moduleAttribute = Attributes . SingleOrDefault ( a => a . Name == "VB_Description" ) ;
301
299
if ( moduleAttribute != null )
302
300
{
303
301
literalDescription = moduleAttribute . Values . SingleOrDefault ( ) ?? string . Empty ;
@@ -327,7 +325,7 @@ private static string CorrectlyFormatedDescription(string literalDescription)
327
325
/// Gets an attribute value indicating whether a member is an enumerator provider.
328
326
/// Types with such a member support For Each iteration.
329
327
/// </summary>
330
- public bool IsEnumeratorMember => _attributes . Any ( a => a . Name . EndsWith ( "VB_UserMemId" ) && a . Values . Contains ( "-4" ) ) ;
328
+ public bool IsEnumeratorMember => Attributes . Any ( a => a . Name . EndsWith ( "VB_UserMemId" ) && a . Values . Contains ( "-4" ) ) ;
331
329
332
330
public virtual bool IsObject => ! IsArray && IsObjectOrObjectArray ;
333
331
0 commit comments