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