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

◆ ParseRootLevelWhitespaceAsync()

async Task< bool > System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespaceAsync ( )
inlineprivate

Definition at line 11512 of file XmlTextReaderImpl.cs.

11513 {
11514 XmlNodeType nodeType = GetWhitespaceType();
11515 if (nodeType == XmlNodeType.None)
11516 {
11518 bool flag = _ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0;
11519 bool flag2 = flag;
11520 if (!flag2)
11521 {
11523 }
11524 if (flag2)
11525 {
11526 return false;
11527 }
11528 }
11529 else
11530 {
11533 bool flag3 = _ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0;
11534 bool flag4 = flag3;
11535 if (!flag4)
11536 {
11538 }
11539 if (flag4)
11540 {
11541 if (_stringBuilder.Length > 0)
11542 {
11545 return true;
11546 }
11547 return false;
11548 }
11549 }
11550 if (XmlCharType.IsCharData(_ps.chars[_ps.charPos]))
11551 {
11553 }
11554 else
11555 {
11557 }
11558 return false;
11559 }
static string Xml_InvalidRootData
Definition SR.cs:82
Definition SR.cs:7
override string ToString()
void SetLineInfo(int lineNo, int linePos)
void SetValueNode(XmlNodeType type, string value)
void ThrowInvalidChar(char[] data, int length, int invCharPos)
async Task< bool > ZeroEndingStreamAsync(int pos)
readonly StringBuilder _stringBuilder
async Task< int > EatWhitespacesAsync(StringBuilder sb)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._stringBuilder, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.EatWhitespacesAsync(), System.Xml.XmlTextReaderImpl.GetWhitespaceType(), System.Xml.XmlCharType.IsCharData(), System.Text.StringBuilder.Length, System.Xml.XmlTextReaderImpl.ParsingState.LineNo, System.Xml.XmlTextReaderImpl.ParsingState.LinePos, System.Xml.XmlTextReaderImpl.NodeData.SetLineInfo(), System.Xml.XmlTextReaderImpl.NodeData.SetValueNode(), System.Xml.XmlTextReaderImpl.Throw(), System.Xml.XmlTextReaderImpl.ThrowInvalidChar(), System.Text.StringBuilder.ToString(), System.SR.Xml_InvalidRootData, and System.Xml.XmlTextReaderImpl.ZeroEndingStreamAsync().

Referenced by System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync().