125 references to Attribute
Microsoft.Build.Tasks.Core (1)
XmlPeek.cs (1)
138if (iter.Current.NodeType == XPathNodeType.Attribute
System.Data.Common (10)
System\Xml\DataDocumentXPathNavigator.cs (4)
106_curNode.NodeType != XPathNodeType.Attribute ? 111_curNode.NodeType == XPathNodeType.Attribute ? 115_curNode.NodeType == XPathNodeType.Attribute ? 119_curNode.NodeType == XPathNodeType.Attribute ?
System\Xml\XPathNodePointer.cs (6)
30/*XmlNodeType.Attribute*/ (int)XPathNodeType.Attribute, 80if (xnt == (int)XPathNodeType.Attribute) 85return XPathNodeType.Attribute; 166return XPathNodeType.Attribute; 256if (xnt == XPathNodeType.Element || xnt == XPathNodeType.Root || xnt == XPathNodeType.Attribute) 1020if (xnt == XPathNodeType.Attribute)
System.Private.Xml (113)
System\Xml\Cache\XPathDocumentBuilder.cs (4)
291Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute)); 300AddSibling(XPathNodeType.Attribute, localName, namespaceName, prefix, string.Empty); 309Debug.Assert(_pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute); 494Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute));
System\Xml\Cache\XPathDocumentNavigator.cs (2)
81case XPathNodeType.Attribute: 883XPathNodeType.Attribute => XPathNodeHelper.GetLocation(_pageCurrent, _idxCurrent),
System\Xml\Cache\XPathNode.cs (2)
291return xptyp == XPathNodeType.Attribute || xptyp == XPathNodeType.Namespace; 422if (xptyp == XPathNodeType.Attribute)
System\Xml\Cache\XPathNodeHelper.cs (11)
75Debug.Assert(pageNode[idxNode].NodeType == XPathNodeType.Attribute); 92if (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute) 116while (page[idx].NodeType == XPathNodeType.Attribute) 231if (page[idx].NodeType != XPathNodeType.Attribute) 274if (typ == XPathNodeType.Attribute) 301if (page[idx].NodeType != XPathNodeType.Attribute) 312Debug.Assert(typ != XPathNodeType.Attribute && typ != XPathNodeType.Namespace); 332Debug.Assert(pageNode[idxNode].NodeType != XPathNodeType.Attribute); 374if (pagePrec[idxPrec].NodeType != XPathNodeType.Attribute) 410while (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute); 529Debug.Assert(page[idx].NodeType != XPathNodeType.Attribute, "Current node should never be an attribute or namespace--caller should handle this case.");
System\Xml\Core\XmlWriter.cs (1)
465case XPathNodeType.Attribute:
System\Xml\Core\XmlWriterAsync.cs (1)
465case XPathNodeType.Attribute:
System\Xml\Dom\DocumentXPathNavigator.cs (4)
1312if (node1.XPNodeType == XPathNodeType.Attribute) 1314if (node2.XPNodeType == XPathNodeType.Attribute) 1341if (node2.XPNodeType == XPathNodeType.Attribute) 1456Debug.Assert(this.NodeType != XPathNodeType.Attribute && this.NodeType != XPathNodeType.Namespace && this.NodeType != XPathNodeType.All);
System\Xml\Dom\XmlAttribute.cs (1)
404return XPathNodeType.Attribute;
System\Xml\Schema\Asttree.cs (1)
533return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute));
System\Xml\ValidateNames.cs (3)
485case XPathNodeType.Attribute: 520case XPathNodeType.Attribute: 534if (prefix.Length == 0 && nodeKind == XPathNodeType.Attribute)
System\Xml\XPath\Internal\AttributeQuery.cs (1)
62if (context.NodeType == XPathNodeType.Attribute && matches(context))
System\Xml\XPath\Internal\ChildrenQuery.cs (1)
62if (temp.NodeType != XPathNodeType.Attribute && temp.MoveToParent())
System\Xml\XPath\Internal\FollowingQuery.cs (1)
51if (_input!.NodeType == XPathNodeType.Attribute || _input.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\PrecedingQuery.cs (1)
60if (last.NodeType == XPathNodeType.Attribute || last.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
57if (input.NodeType == XPathNodeType.Attribute || input.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\QueryBuilder.cs (1)
191if ((root.NodeType == XPathNodeType.All || root.NodeType == XPathNodeType.Element || root.NodeType == XPathNodeType.Attribute) && root.Prefix.Length == 0)
System\Xml\XPath\Internal\XPathParser.cs (2)
381axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 728axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute :
System\Xml\XPath\XPathNavigator.cs (18)
115case XPathNodeType.Attribute: 472if ((nt != XPathNodeType.Element && scope != XmlNamespaceScope.Local) || nt == XPathNodeType.Attribute || nt == XPathNodeType.Namespace) 674case XPathNodeType.Attribute: 747case XPathNodeType.Attribute: 758case XPathNodeType.Attribute: 814case XPathNodeType.Attribute: 825case XPathNodeType.Attribute: 1018case XPathNodeType.Attribute: 1304|| type == XPathNodeType.Attribute 1332if (NodeType == XPathNodeType.Attribute) 1410case XPathNodeType.Attribute: 1436case XPathNodeType.Attribute: 1675case XPathNodeType.Attribute: 1710case XPathNodeType.Attribute: 1829case XPathNodeType.Attribute: 1850case XPathNodeType.Attribute: 1895internal const int NoAttrNmspMask = AllMask & ~(1 << (int)XPathNodeType.Attribute) & ~(1 << (int)XPathNodeType.Namespace); 2155case XPathNodeType.Attribute:
System\Xml\XPath\XPathNavigatorReader.cs (4)
422case XPathNodeType.Attribute: 469case XPathNodeType.Attribute: 637if (XPathNodeType.Attribute == _nav.NodeType) 991else if (XPathNodeType.Attribute == _nav.NodeType)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
1051nodeType = (nd.NodeType == QilNodeType.ElementCtor) ? XPathNodeType.Element : XPathNodeType.Attribute;
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (6)
2843nameType = LoadNameAndType(XPathNodeType.Attribute, ndAttr.Left, true, callChk); 3278case XmlNodeKindFlags.Attribute: kindsRuntime = XPathNodeType.Attribute; break; 3305if ((kinds & XmlNodeKindFlags.Attribute) != 0) kindsUnion |= (1 << (int)XPathNodeType.Attribute); 4579case XmlNodeKindFlags.Attribute: return XPathNodeType.Attribute; 4600case QilNodeType.AttributeCtor: return XPathNodeType.Attribute; 4635_helper.CallGetTypeFilter(XPathNodeType.Attribute);
System\Xml\Xsl\Runtime\ContentIterators.cs (1)
116Debug.Assert(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\TreeIterators.cs (1)
351if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace)
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (3)
168Debug.Assert(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace); 290return navigator.NodeType == XPathNodeType.Attribute; 384if (navigator.NodeType == XPathNodeType.Attribute)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (11)
231Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Attribute, ValidateNames.Flags.All)); 234ConstructInEnumAttrs(XPathNodeType.Attribute); 422_xstate = (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) ? XmlState.EnumAttrs : XmlState.WithinContent; 666WriteStartComputed(XPathNodeType.Attribute, tagName, prefixMappingsIndex); 674WriteStartComputed(XPathNodeType.Attribute, tagName, ns); 682WriteStartComputed(XPathNodeType.Attribute, navigator); 690WriteStartComputed(XPathNodeType.Attribute, name); 1116case XPathNodeType.Attribute: 1288Debug.Assert(rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace); 1335case XmlState.WithinAttr: return XPathNodeType.Attribute; 1575case XPathNodeType.Attribute:
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (3)
356if (nodeType == XPathNodeType.Attribute) 767case XPathNodeType.Attribute: return code == XmlTypeCode.Attribute; 805case XPathNodeType.Attribute:
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (3)
140if (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) 166if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace) 287case XPathNodeType.Attribute:
System\Xml\Xsl\XPath\XPathParser.cs (1)
241axis == XPathAxis.Attribute ? XPathNodeType.Attribute :
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
146case XPathNodeType.Attribute:
System\Xml\Xsl\XsltOld\AttributeAction.cs (2)
145if (processor.BeginEvent(XPathNodeType.Attribute, qname.Prefix, qname.Name, qname.Namespace, false) == false) 157if (processor.EndEvent(XPathNodeType.Attribute) == false)
System\Xml\Xsl\XsltOld\BeginEvent.cs (2)
37else if (_nodeType == XPathNodeType.Attribute) 49if (_nodeType == XPathNodeType.Attribute && _namespaceUri.Length == 0)
System\Xml\Xsl\XsltOld\ContainerAction.cs (1)
845this.AddEvent(new EndEvent(XPathNodeType.Attribute));
System\Xml\Xsl\XsltOld\CopyAttributesAction.cs (9)
46Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 58Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 70Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 82Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 102Debug.Assert(node.NodeType == XPathNodeType.Attribute); 103return processor.BeginEvent(XPathNodeType.Attribute, node.Prefix, node.LocalName, node.NamespaceURI, false); 108Debug.Assert(node.NodeType == XPathNodeType.Attribute); 114Debug.Assert(node.NodeType == XPathNodeType.Attribute); 115return processor.EndEvent(XPathNodeType.Attribute);
System\Xml\Xsl\XsltOld\NumberAction.cs (3)
236if (endNode.NodeType == XPathNodeType.Attribute || endNode.NodeType == XPathNodeType.Namespace) 342Debug.Assert(nav.NodeType != XPathNodeType.Attribute && nav.NodeType != XPathNodeType.Namespace); 419if (countNode.NodeType == XPathNodeType.Attribute || countNode.NodeType == XPathNodeType.Namespace)
System\Xml\Xsl\XsltOld\Processor.cs (3)
848case XPathNodeType.Attribute: 881case XPathNodeType.Attribute: 907case XPathNodeType.Attribute:
System\Xml\Xsl\XsltOld\RecordBuilder.cs (1)
151case XPathNodeType.Attribute:
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (1)
74case XPathNodeType.Attribute:
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
210return attribute.IsNamespaceDeclaration ? XPathNodeType.Namespace : XPathNodeType.Attribute;