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

◆ ParseTextAsync() [1/3]

Task< bool > System.Xml.XmlTextReaderImpl.ParseTextAsync ( )
inlineprivate

Definition at line 10909 of file XmlTextReaderImpl.cs.

10910 {
10911 int outOrChars = 0;
10912 if (_parsingMode != 0)
10913 {
10914 return _ParseTextAsync(null);
10915 }
10917 ValueTask<(int, int, int, bool)> valueTask = ParseTextAsync(outOrChars).Preserve();
10918 bool flag = false;
10919 if (!valueTask.IsCompletedSuccessfully)
10920 {
10921 return _ParseTextAsync(valueTask.AsTask());
10922 }
10923 (int, int, int, bool) result = valueTask.Result;
10924 int num;
10925 int num2;
10926 (num, num2, outOrChars, _) = result;
10927 if (result.Item4)
10928 {
10929 if (num2 - num == 0)
10930 {
10932 }
10933 XmlNodeType textNodeType = GetTextNodeType(outOrChars);
10934 if (textNodeType == XmlNodeType.None)
10935 {
10937 }
10939 return AsyncHelper.DoneTaskTrue;
10940 }
10941 return _ParseTextAsync(valueTask.AsTask());
10942 }
void SetLineInfo(int lineNo, int linePos)
void SetValueNode(XmlNodeType type, string value)
async Task< bool > _ParseTextAsync(Task<(int, int, int, bool)> parseTask)
XmlNodeType GetTextNodeType(int orChars)

References System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._ParseTextAsync(), System.Xml.XmlTextReaderImpl._parsingMode, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.Dictionary, System.Xml.AsyncHelper.DoneTaskTrue, System.Xml.XmlTextReaderImpl.GetTextNodeType(), System.Xml.XmlTextReaderImpl.int, System.Xml.XmlTextReaderImpl.ParsingState.LineNo, System.Xml.XmlTextReaderImpl.ParsingState.LinePos, System.Xml.XmlTextReaderImpl.ParseTextAsync(), System.Xml.XmlTextReaderImpl.ParseTextAsync_IgnoreNode(), System.Xml.XmlTextReaderImpl.NodeData.SetLineInfo(), and System.Xml.XmlTextReaderImpl.NodeData.SetValueNode().

Referenced by System.Xml.XmlTextReaderImpl._ParseTextAsync(), System.Xml.XmlTextReaderImpl.FinishPartialValueAsync(), System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync_ParseEntity(), System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync_WhiteSpace(), System.Xml.XmlTextReaderImpl.ParseElementContentAsync(), System.Xml.XmlTextReaderImpl.ParseTextAsync(), System.Xml.XmlTextReaderImpl.ParseTextAsync(), System.Xml.XmlTextReaderImpl.ParseTextAsync_AsyncFunc(), System.Xml.XmlTextReaderImpl.ReadContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.ReadValueChunkAsync(), and System.Xml.XmlTextReaderImpl.SkipPartialTextValueAsync().