|
|
|
@ -201,6 +201,9 @@ namespace CppSharp.AST |
|
|
|
|
|
|
|
|
|
|
|
public override IEnumerable<Function> GetOverloads(Function function) |
|
|
|
public override IEnumerable<Function> GetOverloads(Function function) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (function.IsOperator) |
|
|
|
|
|
|
|
return Methods.Where(fn => fn.OperatorKind == function.OperatorKind); |
|
|
|
|
|
|
|
|
|
|
|
var methods = Methods.Where(m => m.Name == function.Name); |
|
|
|
var methods = Methods.Where(m => m.Name == function.Name); |
|
|
|
if (methods.ToList().Count != 0) |
|
|
|
if (methods.ToList().Count != 0) |
|
|
|
return methods; |
|
|
|
return methods; |
|
|
|
|