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

◆ ParseElementAsync()

Task System.Xml.XmlTextReaderImpl.ParseElementAsync ( )
inlineprivate

Definition at line 10105 of file XmlTextReaderImpl.cs.

10106 {
10107 int num = _ps.charPos;
10108 char[] chars = _ps.chars;
10109 int num2 = -1;
10111 while (true)
10112 {
10113 if (XmlCharType.IsStartNCNameSingleChar(chars[num]))
10114 {
10115 num++;
10116 while (true)
10117 {
10118 if (XmlCharType.IsNCNameSingleChar(chars[num]))
10119 {
10120 num++;
10121 continue;
10122 }
10123 if (chars[num] != ':')
10124 {
10125 break;
10126 }
10127 if (num2 == -1)
10128 {
10129 goto IL_0088;
10130 }
10131 if (!_supportNamespaces)
10132 {
10133 num++;
10134 continue;
10135 }
10136 goto IL_006c;
10137 }
10138 if (num + 1 < _ps.charsUsed)
10139 {
10140 break;
10141 }
10142 }
10143 goto IL_00a0;
10144 IL_0088:
10145 num2 = num;
10146 num++;
10147 continue;
10148 IL_00a0:
10151 IL_006c:
10152 Throw(num, System.SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0'));
10153 goto IL_00a0;
10154 }
10156 }
static string Xml_BadNameChar
Definition SR.cs:44
Definition SR.cs:7
void SetLineInfo(int lineNo, int linePos)
Task ParseElementAsync_SetElement(int colonPos, int pos)
Task ParseElementAsync_ContinueWithSetElement(Task<(int, int)> task)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._supportNamespaces, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.chars, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.int, System.Xml.XmlCharType.IsNCNameSingleChar(), System.Xml.XmlCharType.IsStartNCNameSingleChar(), System.Xml.XmlTextReaderImpl.ParsingState.LineNo, System.Xml.XmlTextReaderImpl.ParsingState.LinePos, System.Xml.XmlTextReaderImpl.ParseElementAsync_ContinueWithSetElement(), System.Xml.XmlTextReaderImpl.ParseElementAsync_SetElement(), System.Xml.XmlTextReaderImpl.ParseQNameAsync(), System.Xml.XmlTextReaderImpl.NodeData.SetLineInfo(), System.task, System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_BadNameChar.

Referenced by System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync(), and System.Xml.XmlTextReaderImpl.ParseElementContentAsync().