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