File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Rubberduck.Parsing/Symbols Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 99using System . Collections . Generic ;
1010using System . Diagnostics ;
1111using System . Linq ;
12+ using Rubberduck . Parsing . Inspections . Abstract ;
1213using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
1314
1415namespace Rubberduck . Parsing . Symbols
@@ -393,6 +394,16 @@ public void AddReference(
393394 annotations ) ) ;
394395 }
395396
397+ private readonly ConcurrentBag < IInspectionResult > _inspectionResults
398+ = new ConcurrentBag < IInspectionResult > ( ) ;
399+
400+ public IEnumerable < IInspectionResult > InspectionResults { get { return _inspectionResults ; } }
401+
402+ public void Annotate ( IInspectionResult inspectionResult )
403+ {
404+ _inspectionResults . Add ( inspectionResult ) ;
405+ }
406+
396407 private readonly Selection _selection ;
397408 /// <summary>
398409 /// Gets a <c>Selection</c> representing the position of the declaration in the code module.
Original file line number Diff line number Diff line change 66using System . Linq ;
77using System . Diagnostics ;
88using System ;
9+ using System . Collections . Concurrent ;
10+ using Rubberduck . Parsing . Inspections . Abstract ;
911
1012namespace Rubberduck . Parsing . Symbols
1113{
@@ -45,6 +47,16 @@ public IdentifierReference(
4547 private readonly Selection _selection ;
4648 public Selection Selection { get { return _selection ; } }
4749
50+ private readonly ConcurrentBag < IInspectionResult > _inspectionResults
51+ = new ConcurrentBag < IInspectionResult > ( ) ;
52+
53+ public IEnumerable < IInspectionResult > InspectionResults { get { return _inspectionResults ; } }
54+
55+ public void Annotate ( IInspectionResult inspectionResult )
56+ {
57+ _inspectionResults . Add ( inspectionResult ) ;
58+ }
59+
4860 private readonly Declaration _parentScopingDeclaration ;
4961 /// <summary>
5062 /// Gets the scoping <see cref="Declaration"/> that contains this identifier reference,
You can’t perform that action at this time.
0 commit comments