From 09b26a691fba2ace33e985f1bd382d9b7c6c2b5c Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 9 Apr 2013 00:37:58 +0100 Subject: [PATCH] Provide an helper method to get the overloads of a function. --- src/Bridge/Namespace.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Bridge/Namespace.cs b/src/Bridge/Namespace.cs index a747399e..b32c6ab2 100644 --- a/src/Bridge/Namespace.cs +++ b/src/Bridge/Namespace.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.Linq; namespace Cxxi { @@ -222,6 +223,12 @@ namespace Cxxi return Enums.Find(e => e.ItemsByName.ContainsKey(name)); } + public IList GetFunctionOverloads(Function function) + { + return Functions.Where(fn => fn.Name == function.Name) + .ToList(); + } + public bool HasDeclarations { get