Skip to content

Commit d46bcd3

Browse files
committed
Implement Method.HasSameSignature for signature comparison.
1 parent a85e94a commit d46bcd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/AST/Method.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
using System;
12
using System.Collections.Generic;
23
using System.Linq;
3-
using CppSharp.AST.Extensions;
44

55
namespace CppSharp.AST
66
{
@@ -189,6 +189,11 @@ public override T Visit<T>(IDeclVisitor<T> visitor)
189189

190190
private bool? isOverride;
191191

192+
public bool HasSameSignature(Method other)
193+
{
194+
return Parameters.SequenceEqual(other.Parameters, ParameterTypeComparer.Instance);
195+
}
196+
192197
public override string ToString()
193198
{
194199
return DebugText;

0 commit comments

Comments
 (0)