/**
* Check a namespace declaration.
*/
public void checkNamespaceDeclaration(IASNode iNode, Binding ns_name)
{
NamespaceNode nsNode = (NamespaceNode)iNode;
IDefinition def = utils.getDefinition(nsNode);
checkNamespaceOfDefinition(nsNode, def, project);
SemanticUtils.checkScopedToDefaultNamespaceProblem(currentScope, nsNode, def, null);
if (SemanticUtils.isInFunction(iNode))
{
if (iNode instanceof BaseDefinitionNode)
checkForNamespaceInFunction((BaseDefinitionNode)iNode, currentScope);
}
// Check whether the namespace is being initialized to a deprecated namespace.
IExpressionNode namespaceInitialValueNode = nsNode.getNamespaceURINode();
if (namespaceInitialValueNode != null)
{
IDefinition namespaceInitialvalueDefinition = namespaceInitialValueNode.resolve(project);
checkDeprecated(namespaceInitialValueNode, namespaceInitialvalueDefinition);
}