|
|
|
@ -18,6 +18,7 @@
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Linq; |
|
|
|
|
using System.Reflection; |
|
|
|
|
using System.Reflection.Metadata; |
|
|
|
|
using System.Reflection.Metadata.Ecma335; |
|
|
|
@ -124,6 +125,24 @@ namespace ICSharpCode.ILSpy.Metadata
@@ -124,6 +125,24 @@ namespace ICSharpCode.ILSpy.Metadata
|
|
|
|
|
|
|
|
|
|
public string SignatureTooltip => GenerateTooltip(ref signatureTooltip, module, handle); |
|
|
|
|
|
|
|
|
|
[ColumnInfo("X8", Kind = ColumnKind.Token)] |
|
|
|
|
public int ParamList => MetadataTokens.GetToken(methodDef.GetParameters().FirstOrDefault()); |
|
|
|
|
|
|
|
|
|
public void OnParamListClick() |
|
|
|
|
{ |
|
|
|
|
MainWindow.Instance.JumpToReference(new EntityReference(module, methodDef.GetParameters().FirstOrDefault(), protocol: "metadata")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
string paramListTooltip; |
|
|
|
|
public string ParamListTooltip { |
|
|
|
|
get { |
|
|
|
|
var param = methodDef.GetParameters().FirstOrDefault(); |
|
|
|
|
if (param.IsNil) |
|
|
|
|
return null; |
|
|
|
|
return GenerateTooltip(ref paramListTooltip, module, param); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
IEntity IMemberTreeNode.Member => ((MetadataModule)module.GetTypeSystemWithCurrentOptionsOrNull()?.MainModule).GetDefinition(handle); |
|
|
|
|
|
|
|
|
|
public MethodDefEntry(PEFile module, MethodDefinitionHandle handle) |
|
|
|
@ -134,6 +153,7 @@ namespace ICSharpCode.ILSpy.Metadata
@@ -134,6 +153,7 @@ namespace ICSharpCode.ILSpy.Metadata
|
|
|
|
|
this.handle = handle; |
|
|
|
|
this.methodDef = metadata.GetMethodDefinition(handle); |
|
|
|
|
this.signatureTooltip = null; |
|
|
|
|
this.paramListTooltip = null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|