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

◆ ParseElementDeclAsync()

async Task System.Xml.DtdParser.ParseElementDeclAsync ( )
inlineprivate

Definition at line 3600 of file DtdParser.cs.

3601 {
3603 {
3605 XmlQualifiedName nameQualified = GetNameQualified(canHavePrefix: true);
3607 {
3608 if (_validate)
3609 {
3611 }
3612 }
3613 else
3614 {
3616 {
3618 }
3619 else
3620 {
3622 }
3624 }
3626 Token token = await GetTokenAsync(needWhiteSpace: true).ConfigureAwait(continueOnCapturedContext: false);
3627 if (token != Token.LeftParen)
3628 {
3629 if (token != Token.ANY)
3630 {
3631 if (token != Token.EMPTY)
3632 {
3633 goto IL_0483;
3634 }
3636 }
3637 else
3638 {
3640 }
3641 }
3642 else
3643 {
3644 int startParenEntityId = _currentEntityId;
3646 if (token2 != Token.None)
3647 {
3648 if (token2 != Token.PCDATA)
3649 {
3650 goto IL_0483;
3651 }
3653 pcv.Start();
3654 pcv.OpenGroup();
3655 await ParseElementMixedContentAsync(pcv, startParenEntityId).ConfigureAwait(continueOnCapturedContext: false);
3657 }
3658 else
3659 {
3661 pcv.Start();
3662 pcv.OpenGroup();
3663 await ParseElementOnlyContentAsync(pcv, startParenEntityId).ConfigureAwait(continueOnCapturedContext: false);
3665 }
3666 }
3668 {
3670 }
3671 return;
3672 }
3673 goto IL_0483;
3674 IL_0483:
3676 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_DupElementDecl
Definition SR.cs:404
Definition SR.cs:7
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
async Task ParseElementOnlyContentAsync(ParticleContentValidator pcv, int startParenEntityId)
XmlQualifiedName GetNameQualified(bool canHavePrefix)
async Task ParseElementMixedContentAsync(ParticleContentValidator pcv, int startParenEntityId)
void ThrowUnexpectedToken(int pos, string expectedToken)
SchemaInfo _schemaInfo
Definition DtdParser.cs:146
async Task< Token > GetTokenAsync(bool needWhiteSpace)
static readonly ContentValidator Empty
static readonly ContentValidator Any
Dictionary< XmlQualifiedName, SchemaElementDecl > ElementDecls
Definition SchemaInfo.cs:55
Dictionary< XmlQualifiedName, SchemaElementDecl > UndeclaredElementDecls
Definition SchemaInfo.cs:57

References System.Xml.DtdParser._curPos, System.Xml.DtdParser._currentEntityId, System.Xml.DtdParser._schemaInfo, System.Xml.DtdParser._validate, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.ContentValidator.Any, System.Xml.Dictionary, System.Xml.Schema.SchemaInfo.ElementDecls, System.Xml.Schema.ContentValidator.Empty, System.Xml.DtdParser.GetNameQualified(), System.Xml.DtdParser.GetNameString(), System.Xml.DtdParser.GetTokenAsync(), System.Xml.DtdParser.OnUnexpectedError(), System.Xml.DtdParser.ParseElementMixedContentAsync(), System.Xml.DtdParser.ParseElementOnlyContentAsync(), System.Xml.DtdParser.ParsingInternalSubset, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.SR.Sch_DupElementDecl, System.Xml.DtdParser.SendValidationEvent(), System.Xml.DtdParser.ThrowUnexpectedToken(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.Xml.Schema.SchemaInfo.UndeclaredElementDecls.

Referenced by System.Xml.DtdParser.ParseSubsetAsync().