2 writes to coreReader
System.Xml (2)
System\Xml\Core\XsdCachingReader.cs (2)
64
this.
coreReader
= reader;
91
this.
coreReader
= reader;
74 references to coreReader
System.Xml (74)
System\Xml\Core\XsdCachingReader.cs (57)
73
coreReaderNameTable =
coreReader
.NameTable;
82
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
98
return
coreReader
.Settings;
163
return
coreReader
.BaseURI;
185
return
coreReader
.QuoteChar;
192
return
coreReader
.XmlSpace;
199
return
coreReader
.XmlLang;
352
if (
coreReader
.Read()) {
353
switch(
coreReader
.NodeType) {
360
recordedNode = AddContent(
coreReader
.NodeType);
361
recordedNode.SetItemData(
coreReader
.LocalName,
coreReader
.Prefix,
coreReader
.NamespaceURI,
coreReader
.Depth); //Only created for element node type
371
recordedNode = AddContent(
coreReader
.NodeType);
372
recordedNode.SetItemData(
coreReader
.Value);
374
recordedNode.Depth =
coreReader
.Depth;
392
if (
coreReader
.NodeType != XmlNodeType.Element || readAhead) { //Only when coreReader not positioned on Element node, read ahead, otherwise it is on the next element node already, since this was not cached
393
return
coreReader
.Read();
418
Debug.Assert(
coreReader
.NodeType == XmlNodeType.EndElement || (
coreReader
.NodeType == XmlNodeType.Element &&
coreReader
.IsEmptyElement));
420
ValidatingReaderNodeData textNode = RecordTextNode(textValue, originalStringValue,
coreReader
.Depth + 1, 0, 0);
430
Debug.Assert(
coreReader
.NodeType == XmlNodeType.EndElement || (
coreReader
.NodeType == XmlNodeType.Element &&
coreReader
.IsEmptyElement));
431
recordedNode.SetItemData(
coreReader
.LocalName,
coreReader
.Prefix,
coreReader
.NamespaceURI,
coreReader
.Depth);
432
recordedNode.SetLineInfo(
coreReader
as IXmlLineInfo);
433
if (
coreReader
.IsEmptyElement) { //Simulated endElement node for <e/>, the coreReader is on cached Element node itself.
448
return cacheState == CachingReaderState.ReaderClosed &&
coreReader
.EOF;
454
coreReader
.Close();
461
return
coreReader
.ReadState;
470
if (
coreReader
.NodeType != XmlNodeType.EndElement && !readAhead) { //will be true for IsDefault cases where we peek only one node ahead
471
int startDepth =
coreReader
.Depth - 1;
472
while (
coreReader
.Read() &&
coreReader
.Depth > startDepth)
475
coreReader
.Read();
500
return
coreReader
.LookupNamespace(prefix);
547
return
coreReader
;
602
Debug.Assert(
coreReader
.NodeType == XmlNodeType.Element);
604
attributeCount =
coreReader
.AttributeCount;
605
if (
coreReader
.MoveToFirstAttribute()) {
609
attInfo.SetItemData(
coreReader
.LocalName,
coreReader
.Prefix,
coreReader
.NamespaceURI,
coreReader
.Depth);
611
attInfo.RawValue =
coreReader
.Value;
613
} while (
coreReader
.MoveToNextAttribute());
614
coreReader
.MoveToElement();
System\Xml\Core\XsdCachingReaderAsync.cs (17)
36
if (await
coreReader
.ReadAsync().ConfigureAwait(false)) {
37
switch(
coreReader
.NodeType) {
44
recordedNode = AddContent(
coreReader
.NodeType);
45
recordedNode.SetItemData(
coreReader
.LocalName,
coreReader
.Prefix,
coreReader
.NamespaceURI,
coreReader
.Depth); //Only created for element node type
55
recordedNode = AddContent(
coreReader
.NodeType);
56
recordedNode.SetItemData(await
coreReader
.GetValueAsync().ConfigureAwait(false));
58
recordedNode.Depth =
coreReader
.Depth;
76
if (
coreReader
.NodeType != XmlNodeType.Element || readAhead) { //Only when coreReader not positioned on Element node, read ahead, otherwise it is on the next element node already, since this was not cached
77
return await
coreReader
.ReadAsync().ConfigureAwait(false);
98
if (
coreReader
.NodeType != XmlNodeType.EndElement && !readAhead) { //will be true for IsDefault cases where we peek only one node ahead
99
int startDepth =
coreReader
.Depth - 1;
100
while (await
coreReader
.ReadAsync().ConfigureAwait(false) &&
coreReader
.Depth > startDepth)
103
await
coreReader
.ReadAsync().ConfigureAwait(false);