Skip to content

Commit e81b57b

Browse files
author
Andrin Meier
committed
simplify method assignment
1 parent 1593a80 commit e81b57b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Rubberduck.Parsing/Symbols/IdentifierReference.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Antlr4.Runtime;
2-
using Microsoft.CSharp.RuntimeBinder;
32
using Rubberduck.Parsing.Grammar;
43
using Rubberduck.VBEditor;
54
using System.Linq;
@@ -116,8 +115,7 @@ public bool HasTypeHint(out string token)
116115
_hasTypeHint = false;
117116
return false;
118117
}
119-
System.Reflection.MethodInfo method = null;
120-
method = Context.Parent.GetType().GetMethods().FirstOrDefault(m => m.Name == "typeHint");
118+
var method = Context.Parent.GetType().GetMethods().FirstOrDefault(m => m.Name == "typeHint");
121119
if (method == null)
122120
{
123121
token = null;

0 commit comments

Comments
 (0)