private void ParseAll()
{
var components = _vbe.VBProjects.Cast<VBProject>()
.SelectMany(project => project.VBComponents.Cast<VBComponent>()).ToList();
foreach (var component in components)
{
State.SetModuleState(component, ParserState.Error);
}
var result = Parallel.ForEach(components, component => { ParseComponentAsync(component, false); });
if (result.IsCompleted)
{
using (var tokenSource = new CancellationTokenSource())
{
Resolve(tokenSource.Token);