Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ public ObservableCollection<CodeExplorerItemViewModel> Projects
}
}

private void ParserState_StateChanged(object sender, EventArgs e)
private void ParserState_StateChanged(object sender, ParserStateEventArgs e)
{
if (Projects == null)
{
Projects = new ObservableCollection<CodeExplorerItemViewModel>();
}

IsBusy = _state.Status < ParserState.ResolvedDeclarations;
if (_state.Status != ParserState.ResolvedDeclarations)
if (e.State != ParserState.ResolvedDeclarations)
{
return;
}
Expand Down
7 changes: 7 additions & 0 deletions Rubberduck.Parsing/Binding/TypeBindingContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ private IExpressionBinding Visit(Declaration module, Declaration parent, VBAPars
return Visit(module, parent, lexpr);
}

private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.CtLExprContext expression)
{
dynamic lexpr = expression.lExpression();
var type = expression.lExpression().GetType();
return Visit(module, parent, lexpr);
}

private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.SimpleNameExprContext expression)
{
return new SimpleNameTypeBinding(_declarationFinder, Declaration.GetProjectParent(parent), module, parent, expression);
Expand Down
Loading