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

◆ ParseDocumentContentAsync_ReadData()

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

Definition at line 9972 of file XmlTextReaderImpl.cs.

9973 {
9974 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) != 0)
9975 {
9977 }
9978 if (needMoreChars)
9979 {
9981 }
9982 if (InEntity)
9983 {
9985 {
9987 return true;
9988 }
9990 }
9991 if (!_rootElementParsed && _fragmentType == XmlNodeType.Document)
9992 {
9994 }
9995 if (_fragmentType == XmlNodeType.None)
9996 {
9997 _fragmentType = ((!_rootElementParsed) ? XmlNodeType.Element : XmlNodeType.Document);
9998 }
9999 OnEof();
10000 return false;
10001 }
static string Xml_MissingRoot
Definition SR.cs:78
static string Xml_InvalidRootData
Definition SR.cs:82
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
bool HandleEntityEnd(bool checkEntityNesting)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._fragmentType, System.Xml.XmlTextReaderImpl._rootElementParsed, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlTextReaderImpl.HandleEntityEnd(), System.Xml.XmlTextReaderImpl.OnEof(), System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync(), System.Xml.XmlTextReaderImpl.ReadDataAsync(), System.Xml.XmlTextReaderImpl.SetupEndEntityNodeInContent(), System.Xml.XmlTextReaderImpl.Throw(), System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(), System.SR.Xml_InvalidRootData, and System.SR.Xml_MissingRoot.

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