2 writes to _coreReader
System.Private.Xml (2)
System\Xml\Core\XsdCachingReader.cs (2)
61
_coreReader
= reader;
92
_coreReader
= reader;
74 references to _coreReader
System.Private.Xml (74)
System\Xml\Core\XsdCachingReader.cs (57)
72
_coreReaderNameTable =
_coreReader
.NameTable;
81
if (
_coreReader
.NodeType == XmlNodeType.Element)
83
ValidatingReaderNodeData element = AddContent(
_coreReader
.NodeType);
84
element.SetItemData(
_coreReader
.LocalName,
_coreReader
.Prefix,
_coreReader
.NamespaceURI,
_coreReader
.Depth); //Only created for element node type
101
return
_coreReader
.Settings;
184
return
_coreReader
.BaseURI;
212
return
_coreReader
.QuoteChar;
221
return
_coreReader
.XmlSpace;
230
return
_coreReader
.XmlLang;
409
if (
_coreReader
.Read())
411
switch (
_coreReader
.NodeType)
419
recordedNode = AddContent(
_coreReader
.NodeType);
420
recordedNode.SetItemData(
_coreReader
.LocalName,
_coreReader
.Prefix,
_coreReader
.NamespaceURI,
_coreReader
.Depth); //Only created for element node type
430
recordedNode = AddContent(
_coreReader
.NodeType);
431
recordedNode.SetItemData(
_coreReader
.Value);
433
recordedNode.Depth =
_coreReader
.Depth;
453
if (
_coreReader
.NodeType != XmlNodeType.Element || _readAhead)
455
return
_coreReader
.Read();
483
Debug.Assert(
_coreReader
.NodeType == XmlNodeType.EndElement || (
_coreReader
.NodeType == XmlNodeType.Element &&
_coreReader
.IsEmptyElement));
485
ValidatingReaderNodeData textNode = RecordTextNode(textValue, originalStringValue,
_coreReader
.Depth + 1, 0, 0);
496
Debug.Assert(
_coreReader
.NodeType == XmlNodeType.EndElement || (
_coreReader
.NodeType == XmlNodeType.Element &&
_coreReader
.IsEmptyElement));
497
recordedNode.SetItemData(
_coreReader
.LocalName,
_coreReader
.Prefix,
_coreReader
.NamespaceURI,
_coreReader
.Depth);
498
recordedNode.SetLineInfo(
_coreReader
as IXmlLineInfo);
499
if (
_coreReader
.IsEmptyElement)
518
return _cacheState == CachingReaderState.ReaderClosed &&
_coreReader
.EOF;
525
_coreReader
.Close();
534
return
_coreReader
.ReadState;
545
if (
_coreReader
.NodeType != XmlNodeType.EndElement && !_readAhead)
547
int startDepth =
_coreReader
.Depth - 1;
548
while (
_coreReader
.Read() &&
_coreReader
.Depth > startDepth)
551
_coreReader
.Read();
579
return
_coreReader
.LookupNamespace(prefix);
637
return
_coreReader
;
692
Debug.Assert(
_coreReader
.NodeType == XmlNodeType.Element);
694
_attributeCount =
_coreReader
.AttributeCount;
695
if (
_coreReader
.MoveToFirstAttribute())
701
attInfo.SetItemData(
_coreReader
.LocalName,
_coreReader
.Prefix,
_coreReader
.NamespaceURI,
_coreReader
.Depth);
703
attInfo.RawValue =
_coreReader
.Value;
705
} while (
_coreReader
.MoveToNextAttribute());
706
_coreReader
.MoveToElement();
System\Xml\Core\XsdCachingReaderAsync.cs (17)
41
if (await
_coreReader
.ReadAsync().ConfigureAwait(false))
43
switch (
_coreReader
.NodeType)
51
recordedNode = AddContent(
_coreReader
.NodeType);
52
recordedNode.SetItemData(
_coreReader
.LocalName,
_coreReader
.Prefix,
_coreReader
.NamespaceURI,
_coreReader
.Depth); //Only created for element node type
62
recordedNode = AddContent(
_coreReader
.NodeType);
63
recordedNode.SetItemData(await
_coreReader
.GetValueAsync().ConfigureAwait(false));
65
recordedNode.Depth =
_coreReader
.Depth;
85
if (
_coreReader
.NodeType != XmlNodeType.Element || _readAhead)
87
return await
_coreReader
.ReadAsync().ConfigureAwait(false);
111
if (
_coreReader
.NodeType != XmlNodeType.EndElement && !_readAhead)
113
int startDepth =
_coreReader
.Depth - 1;
114
while (await
_coreReader
.ReadAsync().ConfigureAwait(false) &&
_coreReader
.Depth > startDepth)
117
await
_coreReader
.ReadAsync().ConfigureAwait(false);