Skip to content

Commit 376364d

Browse files
committed
#1246 exposed ModuleExceptions getter
1 parent 9b401a3 commit 376364d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ private void OnStateChanged()
6969
private readonly ConcurrentDictionary<VBComponent, SyntaxErrorException> _moduleExceptions =
7070
new ConcurrentDictionary<VBComponent, SyntaxErrorException>();
7171

72+
public IReadOnlyList<Tuple<VBComponent, SyntaxErrorException>> ModuleExceptions
73+
{
74+
get { return _moduleExceptions.Select(kvp => Tuple.Create(kvp.Key, kvp.Value)).ToList(); }
75+
}
76+
7277
public event EventHandler<ParseProgressEventArgs> ModuleStateChanged;
7378

7479
private void OnModuleStateChanged(VBComponent component, ParserState state)

0 commit comments

Comments
 (0)