Skip to content

Commit

Permalink
fix? (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meir017 authored Aug 17, 2018
1 parent 476f0d3 commit f4ddaf0
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ public override void VisitElementAccessExpression(ElementAccessExpressionSyntax
{
const string name = "[]";

var member = Members.Peek();
if (Members.IsEmpty)
{
// no op
Members = AllMembers;
Visit(node.Expression);
return;
}
else if (member.Name == name && member.AreArgumentsValid(node.ArgumentList.Arguments))

var member = Members.Peek();
if (member.Name == name && member.AreArgumentsValid(node.ArgumentList.Arguments))
{
Members = Members.Pop();
}
Expand Down

0 comments on commit f4ddaf0

Please sign in to comment.