2 writes to _reader
System.Private.Xml (2)
System\Xml\Schema\Parser.cs (1)
58_reader = reader;
System\Xml\Schema\ParserAsync.cs (1)
18_reader = reader;
53 references to _reader
System.Private.Xml (53)
System\Xml\Schema\Parser.cs (53)
168if (_reader!.Depth > _markupDepth) 176else if (_reader.NodeType == XmlNodeType.Element) 178if (_builder!.ProcessElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI)) 181if (_reader.MoveToFirstAttribute()) 185_builder.ProcessAttribute(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _reader.Value); 186if (Ref.Equal(_reader.NamespaceURI, _schemaNames.NsXmlNs) && _isProcessNamespaces) 188_namespaceManager.AddNamespace(_reader.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 191while (_reader.MoveToNextAttribute()); 192_reader.MoveToElement(); // get back to the element 195if (_reader.IsEmptyElement) 199if (_reader.Depth == _schemaXmlDepth) 206_markupDepth = _reader.Depth; 216else if (!_reader.IsEmptyElement) 218_markupDepth = _reader.Depth; 222else if (_reader.NodeType == XmlNodeType.Text) 224if (!XmlCharType.IsOnlyWhitespace(_reader.Value)) 226_builder!.ProcessCData(_reader.Value); 229else if (_reader.NodeType == XmlNodeType.EntityReference || 230_reader.NodeType == XmlNodeType.SignificantWhitespace || 231_reader.NodeType == XmlNodeType.CDATA) 233_builder!.ProcessCData(_reader.Value); 235else if (_reader.NodeType == XmlNodeType.EndElement) 237if (_reader.Depth == _markupDepth) 261if (_reader.Depth == _schemaXmlDepth) 274switch (_reader!.NodeType) 289currentNode = _dummyDocument.CreateTextNode(_reader.Value); 293currentNode = _dummyDocument.CreateSignificantWhitespace(_reader.Value); 297currentNode = _dummyDocument.CreateCDataSection(_reader.Value); 301currentNode = _dummyDocument.CreateEntityReference(_reader.Name); 305currentNode = _dummyDocument.CreateComment(_reader.Value); 309currentNode = _dummyDocument.CreateProcessingInstruction(_reader.Name, _reader.Value); 333Debug.Assert(_reader!.NodeType == XmlNodeType.Element); 335XmlReader r = _reader; 354_annotationNSManager!.AddNamespace(r.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 418Debug.Assert(_reader!.NodeType == XmlNodeType.Attribute); 420XmlReader r = _reader; 444Debug.Assert(_reader!.NodeType == XmlNodeType.EntityReference); 446XmlEntityReference eref = _dummyDocument.CreateEntityReference(_reader.LocalName); 447if (!_reader.CanResolveEntity) 451_reader.ResolveEntity(); 453while (_reader.ReadAttributeValue()) 455switch (_reader.NodeType) 458eref.AppendChild(_dummyDocument.CreateTextNode(_reader.Value)); 470throw XmlLoader.UnexpectedNodeType(_reader.NodeType);