File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ public sealed class RubberduckParserState
63
63
private readonly ConcurrentDictionary < QualifiedModuleName , IList < CommentNode > > _comments =
64
64
new ConcurrentDictionary < QualifiedModuleName , IList < CommentNode > > ( ) ;
65
65
66
+ private readonly ConcurrentDictionary < QualifiedModuleName , IList < IAnnotation > > _annotations =
67
+ new ConcurrentDictionary < QualifiedModuleName , IList < IAnnotation > > ( ) ;
68
+
66
69
private readonly ConcurrentDictionary < QualifiedModuleName , SyntaxErrorException > _moduleExceptions =
67
70
new ConcurrentDictionary < QualifiedModuleName , SyntaxErrorException > ( ) ;
68
71
@@ -252,7 +255,7 @@ public IEnumerable<IAnnotation> AllAnnotations
252
255
public IEnumerable < IAnnotation > GetModuleAnnotations ( VBComponent component )
253
256
{
254
257
IList < IAnnotation > result ;
255
- if ( _annotations . TryGetValue ( component , out result ) )
258
+ if ( _annotations . TryGetValue ( new QualifiedModuleName ( component ) , out result ) )
256
259
{
257
260
return result ;
258
261
}
@@ -262,7 +265,7 @@ public IEnumerable<IAnnotation> GetModuleAnnotations(VBComponent component)
262
265
263
266
public void SetModuleAnnotations ( VBComponent component , IEnumerable < IAnnotation > annotations )
264
267
{
265
- _annotations [ component ] = annotations . ToList ( ) ;
268
+ _annotations [ new QualifiedModuleName ( component ) ] = annotations . ToList ( ) ;
266
269
}
267
270
268
271
/// <summary>
You can’t perform that action at this time.
0 commit comments