if ( isNamespace(qualifier) )
{
result.addAll(runtime_member_selector);
// Extract the URI from the namespace and use it to construct a qualified name.
NamespaceDefinition ns_def = (NamespaceDefinition)qualifier.getDefinition();
Name qualified_name = new Name(CONSTANT_MultinameL, new Nsset(ns_def.resolveAETNamespace(currentScope.getProject())), null);
result.addInstruction(OP_getproperty, qualified_name);
}
else
{
generateAccess(qualifier, result);
// Verifier insists on this.
result.addInstruction(OP_coerce, namespaceType);
result.addAll(runtime_member_selector);
result.addInstruction(OP_coerce_s);
result.addInstruction(OP_getproperty, new Name(CONSTANT_RTQnameL, null, null));
}
return result;
}