Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Fixed parser bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Krüger committed Oct 28, 2011
1 parent 59ce505 commit 85e1173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1588,7 +1588,8 @@ public UsingStatement CreateUsingStatement (Block blockStatement)
} }
cur = u.Statement; cur = u.Statement;
usingResult.AddChild (new CSharpTokenNode (Convert (blockStatement.EndLocation), 1), UsingStatement.Roles.RPar); usingResult.AddChild (new CSharpTokenNode (Convert (blockStatement.EndLocation), 1), UsingStatement.Roles.RPar);
usingResult.AddChild ((Statement)cur.Accept (this), UsingStatement.Roles.EmbeddedStatement); if (cur != null)
usingResult.AddChild ((Statement)cur.Accept (this), UsingStatement.Roles.EmbeddedStatement);
} }
return usingResult; return usingResult;
} }
Expand Down

0 comments on commit 85e1173

Please sign in to comment.