Browse Source

Provide an helper method to get the overloads of a function.

pull/1/head
triton 12 years ago
parent
commit
09b26a691f
  1. 7
      src/Bridge/Namespace.cs

7
src/Bridge/Namespace.cs

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Cxxi
{
@ -222,6 +223,12 @@ namespace Cxxi @@ -222,6 +223,12 @@ namespace Cxxi
return Enums.Find(e => e.ItemsByName.ContainsKey(name));
}
public IList<Function> GetFunctionOverloads(Function function)
{
return Functions.Where(fn => fn.Name == function.Name)
.ToList();
}
public bool HasDeclarations
{
get

Loading…
Cancel
Save