2 writes to _reader
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (1)
62
_reader
= reader;
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
27
_reader
= reader;
53 references to _reader
dotnet-svcutil-lib (53)
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (53)
173
if (
_reader
.Depth > _markupDepth)
181
else if (
_reader
.NodeType == XmlNodeType.Element)
183
if (_builder.ProcessElement(
_reader
.Prefix,
_reader
.LocalName,
_reader
.NamespaceURI))
186
if (
_reader
.MoveToFirstAttribute())
190
_builder.ProcessAttribute(
_reader
.Prefix,
_reader
.LocalName,
_reader
.NamespaceURI,
_reader
.Value);
191
if (Ref.Equal(
_reader
.NamespaceURI, _schemaNames.NsXmlNs) && _isProcessNamespaces)
193
_namespaceManager.AddNamespace(
_reader
.Prefix.Length == 0 ? string.Empty :
_reader
.LocalName,
_reader
.Value);
196
while (
_reader
.MoveToNextAttribute());
197
_reader
.MoveToElement(); // get back to the element
200
if (
_reader
.IsEmptyElement)
204
if (
_reader
.Depth == _schemaXmlDepth)
211
_markupDepth =
_reader
.Depth;
221
else if (!
_reader
.IsEmptyElement)
223
_markupDepth =
_reader
.Depth;
227
else if (
_reader
.NodeType == XmlNodeType.Text)
229
if (!_xmlCharType.IsOnlyWhitespace(
_reader
.Value))
231
_builder.ProcessCData(
_reader
.Value);
234
else if (
_reader
.NodeType == XmlNodeType.EntityReference ||
235
_reader
.NodeType == XmlNodeType.SignificantWhitespace ||
236
_reader
.NodeType == XmlNodeType.CDATA)
238
_builder.ProcessCData(
_reader
.Value);
240
else if (
_reader
.NodeType == XmlNodeType.EndElement)
242
if (
_reader
.Depth == _markupDepth)
264
if (
_reader
.Depth == _schemaXmlDepth)
277
switch (
_reader
.NodeType)
292
currentNode = _dummyDocument.CreateTextNode(
_reader
.Value);
296
currentNode = _dummyDocument.CreateSignificantWhitespace(
_reader
.Value);
300
currentNode = _dummyDocument.CreateCDataSection(
_reader
.Value);
304
currentNode = _dummyDocument.CreateEntityReference(
_reader
.Name);
308
currentNode = _dummyDocument.CreateComment(
_reader
.Value);
312
currentNode = _dummyDocument.CreateProcessingInstruction(
_reader
.Name,
_reader
.Value);
336
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element);
338
XmlReader r =
_reader
;
357
_annotationNSManager.AddNamespace(r.Prefix.Length == 0 ? string.Empty :
_reader
.LocalName,
_reader
.Value);
421
Debug.Assert(
_reader
.NodeType == XmlNodeType.Attribute);
423
XmlReader r =
_reader
;
447
Debug.Assert(
_reader
.NodeType == XmlNodeType.EntityReference);
449
XmlEntityReference eref = _dummyDocument.CreateEntityReference(
_reader
.LocalName);
450
if (!
_reader
.CanResolveEntity)
454
_reader
.ResolveEntity();
456
while (
_reader
.ReadAttributeValue())
458
switch (
_reader
.NodeType)
461
eref.AppendChild(_dummyDocument.CreateTextNode(
_reader
.Value));
473
throw XmlLoader.UnexpectedNodeType(
_reader
.NodeType);