Browse Source

fix #678 - AddressOf all over the place (v 2.3.1.1855)

pull/703/head
Siegfried Pammer 10 years ago
parent
commit
7aa719ea41
  1. 8
      ILSpy/VB/ILSpyEnvironmentProvider.cs

8
ILSpy/VB/ILSpyEnvironmentProvider.cs

@ -144,11 +144,11 @@ namespace ICSharpCode.ILSpy.VB
return expression.Annotation<EventDefinition>() != null; return expression.Annotation<EventDefinition>() != null;
} }
public bool IsMethodGroup(ICSharpCode.NRefactory.CSharp.Expression expression) public bool IsMethodGroup(NRefactory.CSharp.Expression expression)
{ {
var annotation = expression.Annotation<MethodDefinition>(); var methodInfo = expression.Annotation<MethodDefinition>();
if (annotation != null) { if (methodInfo != null) {
return true; return !methodInfo.IsGetter && !methodInfo.IsSetter;
} }
return false; return false;

Loading…
Cancel
Save