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

◆ DtdParserProxy_ParseCommentAsync()

async Task System.Xml.XmlTextReaderImpl.DtdParserProxy_ParseCommentAsync ( StringBuilder sb)
inlinepackage

Definition at line 9217 of file XmlTextReaderImpl.cs.

9218 {
9220 try
9221 {
9222 if (sb == null)
9223 {
9224 ParsingMode savedParsingMode = _parsingMode;
9225 _parsingMode = ParsingMode.SkipNode;
9226 await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(continueOnCapturedContext: false);
9228 }
9229 else
9230 {
9231 NodeData originalCurNode = _curNode;
9233 await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(continueOnCapturedContext: false);
9234 _curNode.CopyTo(0, sb);
9236 }
9237 }
9238 catch (XmlException ex)
9239 {
9240 if (ex.ResString == System.SR.Xml_UnexpectedEOF && _ps.entity != null)
9241 {
9243 return;
9244 }
9245 throw;
9246 }
9247 }
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)
async Task ParseCDataOrCommentAsync(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.CheckAsyncCall(), 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.ParseCDataOrCommentAsync(), System.SR.Sch_ParEntityRefNesting, System.Xml.XmlTextReaderImpl.SendValidationEvent(), and System.SR.Xml_UnexpectedEOF.

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