diff --git a/src/phpDocumentor/Descriptor/Builder/Reflector/ConstantAssembler.php b/src/phpDocumentor/Descriptor/Builder/Reflector/ConstantAssembler.php
index <HASH>..<HASH> 100644
--- a/src/phpDocumentor/Descriptor/Builder/Reflector/ConstantAssembler.php
+++ b/src/phpDocumentor/Descriptor/Builder/Reflector/ConstantAssembler.php
@@ -36,7 +36,8 @@ class ConstantAssembler extends AssemblerAbstract
             '\\' . (strtolower($data->getNamespace()) == 'global' ? '' :$data->getNamespace())
         );
         $constantDescriptor->setFullyQualifiedStructuralElementName(
-            $constantDescriptor->getNamespace() . '\\' . $data->getShortName()
+            (trim($constantDescriptor->getNamespace(), '\\') ? $constantDescriptor->getNamespace() : '')
+            . '\\' . $data->getShortName()
         );
 
         $this->assembleDocBlock($data->getDocBlock(), $constantDescriptor);
Remove duplicate ns separator in DEFINE

Constants that were defined using the DEFINE keyword instead of the
CONST keyword received an additional namespace separator at the start.
This hurts searchability and with this commit any existing prefixes are
stripped before building the full name.