public override Ref MemberRef(Context cx, object elem, int memberTypeFlags)
{
bool attribute = (memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0;
bool descendants = (memberTypeFlags & Node.DESCENDANTS_FLAG) != 0;
if (!attribute && !descendants)
{
// Code generation would use ecma(Get|Has|Delete|Set) for
// normal name identifiers so one ATTRIBUTE_FLAG
// or DESCENDANTS_FLAG has to be set
throw Kit.CodeBug();
}
Rhino.Xmlimpl.XmlNode.QName qname = lib.ToNodeQName(cx, elem, attribute);
XMLName rv = XMLName.Create(qname, attribute, descendants);
rv.InitXMLObject(this);
return rv;
}