From bff470cba432a5e5c217933dfaf0378d8bdbc3bc Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 14 Mar 2013 15:57:50 +0000 Subject: [PATCH] Added a property to get the qualified name of a declaration. --- src/Bridge/Declaration.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Bridge/Declaration.cs b/src/Bridge/Declaration.cs index edd80eec..dc2057cd 100644 --- a/src/Bridge/Declaration.cs +++ b/src/Bridge/Declaration.cs @@ -51,6 +51,17 @@ namespace Cxxi } } + public string QualifiedName + { + get + { + if (Namespace == null) + return Name; + return Namespace.IsRoot ? Name + : string.Format("{0}::{1}", Namespace.QualifiedName, Name); + } + } + // Name of the declaration. public string OriginalName;