summaryrefslogtreecommitdiff
path: root/cli/semantics/elements.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/semantics/elements.cxx')
-rw-r--r--cli/semantics/elements.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/semantics/elements.cxx b/cli/semantics/elements.cxx
index 04d6e03..3e87248 100644
--- a/cli/semantics/elements.cxx
+++ b/cli/semantics/elements.cxx
@@ -9,6 +9,19 @@
namespace semantics
{
+ // nameable
+ //
+ string nameable::
+ fq_name () const
+ {
+ string const& n (name ());
+
+ if (n.empty ())
+ return n;
+ else
+ return scope ().fq_name () + "::" + n;
+ }
+
// scope
//