Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DtdParserProxy_ParseComment()

void System.Xml.XmlTextReaderImpl.DtdParserProxy_ParseComment ( StringBuilder sb)
inlinepackage

Definition at line 2792 of file XmlTextReaderImpl.cs.

2793 {
2794 try
2795 {
2796 if (sb == null)
2797 {
2798 ParsingMode parsingMode = _parsingMode;
2799 _parsingMode = ParsingMode.SkipNode;
2800 ParseCDataOrComment(XmlNodeType.Comment);
2802 }
2803 else
2804 {
2805 NodeData curNode = _curNode;
2807 ParseCDataOrComment(XmlNodeType.Comment);
2808 _curNode.CopyTo(0, sb);
2809 _curNode = curNode;
2810 }
2811 }
2812 catch (XmlException ex)
2813 {
2814 if (ex.ResString == System.SR.Xml_UnexpectedEOF && _ps.entity != null)
2815 {
2817 return;
2818 }
2819 throw;
2820 }
2821 }
static string Sch_ParEntityRefNesting
Definition SR.cs:392
static string Xml_UnexpectedEOF
Definition SR.cs:36
Definition SR.cs:7
void CopyTo(int valueOffset, StringBuilder sb)
void ParseCDataOrComment(XmlNodeType type)
void SendValidationEvent(XmlSeverityType severity, string code, string arg, int lineNo, int linePos)
NodeData AddNode(int nodeIndex, int nodeDepth)

References System.Xml.XmlTextReaderImpl._attrCount, System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._index, System.Xml.XmlTextReaderImpl._parsingMode, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.AddNode(), System.Xml.XmlTextReaderImpl.NodeData.CopyTo(), System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.ParsingState.entity, System.Xml.XmlTextReaderImpl.ParsingState.LineNo, System.Xml.XmlTextReaderImpl.ParsingState.LinePos, System.Xml.XmlTextReaderImpl.ParseCDataOrComment(), System.SR.Sch_ParEntityRefNesting, System.Xml.XmlTextReaderImpl.SendValidationEvent(), and System.SR.Xml_UnexpectedEOF.

Referenced by System.Xml.XmlTextReaderImpl.DtdParserProxy.ParseComment().