void DeclarationBuilder::visitSingleImport(ISingleImport *node)
{
	DUChainWriteLocker lock;
	QualifiedIdentifier import = identifierForNode(node->getIdentifierChain());
	NamespaceAliasDeclaration *importDecl = openDefinition<NamespaceAliasDeclaration>(QualifiedIdentifier(globalImportIdentifier()), editorFindRange(node->getIdentifierChain(), 0));
	importDecl->setImportIdentifier(import);
	closeDeclaration();
	DeclarationBuilderBase::visitSingleImport(node);
}
NamespaceAliasDeclaration::NamespaceAliasDeclaration(const NamespaceAliasDeclaration& rhs)
        : KDevelop::NamespaceAliasDeclaration(*new NamespaceAliasDeclarationData(*rhs.d_func()))
{
}
NamespaceAliasDeclaration::NamespaceAliasDeclaration(const NamespaceAliasDeclaration& rhs) 
  : Declaration(*new NamespaceAliasDeclarationData(*rhs.d_func())) {
  setSmartRange(rhs.smartRange(), DocumentRangeObject::DontOwn);
}