@@ -120,12 +120,9 @@ public Task ParseAsync(VBComponent component, CancellationToken token, TokenStre
120
120
121
121
var task = new Task ( ( ) => ParseAsyncInternal ( component , linkedTokenSource . Token , rewriter ) ) ;
122
122
_currentTasks . Add ( component , Tuple . Create ( task , linkedTokenSource ) ) ;
123
-
124
123
task . ContinueWith ( t => _currentTasks . Remove ( component ) ) ; // default also executes on cancel
125
124
126
- _state . SetModuleState ( component , ParserState . Parsing ) ;
127
125
task . Start ( ) ;
128
-
129
126
return task ;
130
127
}
131
128
@@ -160,9 +157,8 @@ private void ParseAsyncInternal(VBComponent component, CancellationToken token,
160
157
_state . AddTokenStream ( component , e . Tokens ) ;
161
158
_state . SetModuleComments ( component , e . Comments ) ;
162
159
} ;
163
- var task = parser . ParseAsync ( token ) ;
164
160
_state . SetModuleState ( component , ParserState . Parsing ) ;
165
- task . Start ( ) ;
161
+ parser . Start ( token ) ;
166
162
}
167
163
168
164
public void ParseComponent ( VBComponent component , TokenStreamRewriter rewriter = null )
@@ -208,6 +204,8 @@ private void ResolveDeclarations(VBComponent component, IParseTree tree)
208
204
var emptyStringLiteralListener = new EmptyStringLiteralListener ( ) ;
209
205
var argListWithOneByRefParamListener = new ArgListWithOneByRefParamListener ( ) ;
210
206
207
+ // FIXME account for errors here
208
+
211
209
var walker = new ParseTreeWalker ( ) ;
212
210
walker . Walk ( new CombinedParseTreeListener ( new IParseTreeListener [ ] {
213
211
obsoleteCallStatementListener ,
0 commit comments