1 write to reader
System.Data.SqlXml (1)
System\Xml\Xsl\Xslt\XsltInput.cs (1)
53this.reader = reader;
64 references to reader
System.Data.SqlXml (64)
System\Xml\Xsl\Xslt\XsltInput.cs (64)
98if (reader.ReadState != ReadState.Interactive) { 108if (reader.ReadState == ReadState.Interactive) { 110IXmlNamespaceResolver nsResolver = reader as IXmlNamespaceResolver; 147while (reader.ReadState == ReadState.Interactive) { 148reader.Skip(); 154rec.localName = reader.LocalName; 155rec.nsUri = reader.NamespaceURI; 156rec.prefix = reader.Prefix; 157rec.value = reader.Value; 158rec.baseUri = reader.BaseURI; 167rec.start = new Location(readerLineInfo.LineNumber, readerLineInfo.LinePosition - PositionAdjustment(reader.NodeType)); 173rec.end = new Location(readerLineInfo.LineNumber, readerLineInfo.LinePosition - PositionAdjustment(reader.NodeType)); 174if (reader.BaseURI != rec.baseUri || rec.end.LessOrEqual(rec.start)) { 182reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace || 183reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.CDATA 188rec.value = reader.Value; 189rec.baseUri = reader.BaseURI; 192bool isCDATA = (reader.NodeType == XmlNodeType.CDATA); 219Debug.Assert(reader.NodeType == XmlNodeType.EntityReference); 220string local = reader.LocalName; 225rec.baseUri = reader.BaseURI; 230reader.ResolveEntity(); 231reader.Read(); 232Debug.Assert(reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace); 233rec.value = reader.Value; 234reader.Read(); 235Debug.Assert(reader.NodeType == XmlNodeType.EndEntity); 247Debug.Assert(reader.NodeType == XmlNodeType.Attribute, "reader.NodeType == XmlNodeType.Attribute"); 250string atomizedValue = atoms.NameTable.Add(reader.Value); 257string atomizedValue = atoms.NameTable.Add(reader.Value); 263if (!reader.ReadAttributeValue()) { 270int correction = (reader.NodeType == XmlNodeType.EntityReference) ? -2 : -1; 272if (reader.BaseURI != rec.baseUri || rec.valueStart.LessOrEqual(rec.start)) { 280switch (reader.NodeType) { 282reader.ResolveEntity(); 287Debug.Assert(reader.NodeType == XmlNodeType.Text, "Unexpected node type inside attribute value"); 288lastText = reader.Value; 292} while (reader.ReadAttributeValue()); 295Debug.Assert(reader.NodeType != XmlNodeType.EntityReference); 296int correction = ((reader.NodeType == XmlNodeType.EndEntity) ? 1 : lastText.Length) + 1; 298if (reader.BaseURI != rec.baseUri || rec.end.LessOrEqual(rec.valueStart)) { 333bool textPreserveWS = reader.XmlSpace == XmlSpace.Preserve; 337switch (reader.NodeType) { 341if (textIsWhite && ! XmlCharType.Instance.IsOnlyWhitespace(reader.Value)) { 349reader.Read(); 353string local = reader.LocalName; 366reader.ResolveEntity(); 367reader.Read(); 371reader.Read(); 394while (! reader.EOF) { 395switch (reader.NodeType) { 416reader.Read(); 420reader.Read(); 428Debug.Assert(reader.NodeType == XmlNodeType.Element); 433isEmptyElement = reader.IsEmptyElement; 437if (reader.MoveToFirstAttribute()) { 443} while (reader.MoveToNextAttribute()); 444reader.MoveToElement(); 446reader.Read(); 926return new SourceLineInfo(reader.BaseURI, loc, loc);