Skip to content

Commit dbfb5ce

Browse files
authored
Merge pull request #1952 from rubberduck-vba/next
Release 2.0.4
2 parents a795538 + 4e274ef commit dbfb5ce

File tree

250 files changed

+5940
-4130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+5940
-4130
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
![Rubberduck](http://i.stack.imgur.com/vmqXM.png)
1+
<img src="http://i.stack.imgur.com/vmqXM.png" width="320" />
22

3-
| Branch | Build Status |
4-
|------------|--------------|
5-
| **master** | ![master branch build status][masterBuildStatus] |
6-
| **next** | ![next branch build status][nextBuildStatus] |
3+
Branch | Description | Build Status |
4+
|------------|---|--------------|
5+
| **master** | The last released build | ![master branch build status][masterBuildStatus] |
6+
| **next** | The current build (dev) | ![next branch build status][nextBuildStatus] |
77

88
[nextBuildStatus]:https://ci.appveyor.com/api/projects/status/we3pdnkeebo4nlck/branch/next?svg=true
99
[masterBuildStatus]:https://ci.appveyor.com/api/projects/status/we3pdnkeebo4nlck/branch/master?svg=true

RetailCoder.VBE/API/ParserState.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,13 @@ public sealed class ParserState : IParserState, IDisposable
4747
private const string ClassId = "28754D11-10CC-45FD-9F6A-525A65412B7A";
4848
private const string ProgId = "Rubberduck.ParserState";
4949

50-
private readonly RubberduckParserState _state;
50+
private RubberduckParserState _state;
5151
private AttributeParser _attributeParser;
5252
private RubberduckParser _parser;
5353

5454
public ParserState()
5555
{
5656
UiDispatcher.Initialize();
57-
_state = new RubberduckParserState();
58-
59-
_state.StateChanged += _state_StateChanged;
6057
}
6158

6259
public void Initialize(VBE vbe)
@@ -65,6 +62,10 @@ public void Initialize(VBE vbe)
6562
{
6663
throw new InvalidOperationException("ParserState is already initialized.");
6764
}
65+
66+
_state = new RubberduckParserState(vbe, new Sinks(vbe));
67+
_state.StateChanged += _state_StateChanged;
68+
6869
Func<IVBAPreprocessor> preprocessorFactory = () => new VBAPreprocessor(double.Parse(vbe.Version, CultureInfo.InvariantCulture));
6970
_attributeParser = new AttributeParser(new ModuleExporter(), preprocessorFactory);
7071
_parser = new RubberduckParser(vbe, _state, _attributeParser, preprocessorFactory,

0 commit comments

Comments
 (0)