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

◆ ParseNotationDeclAsync()

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

Definition at line 3929 of file DtdParser.cs.

3930 {
3932 {
3934 }
3936 SchemaNotation notation = null;
3938 {
3939 if (_undeclaredNotations != null)
3940 {
3942 }
3945 }
3946 else if (_validate)
3947 {
3949 }
3950 Token token = await GetTokenAsync(needWhiteSpace: true).ConfigureAwait(continueOnCapturedContext: false);
3951 if (token == Token.SYSTEM || token == Token.PUBLIC)
3952 {
3953 var (pubid, systemLiteral) = await ParseExternalIdAsync(token, Token.NOTATION).ConfigureAwait(continueOnCapturedContext: false);
3954 if (notation != null)
3955 {
3958 }
3959 }
3960 else
3961 {
3963 }
3965 {
3967 }
3968 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_DupNotation
Definition SR.cs:534
Definition SR.cs:7
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
Dictionary< string, UndeclaredNotation > _undeclaredNotations
Definition DtdParser.cs:200
XmlQualifiedName GetNameQualified(bool canHavePrefix)
async Task<(string, string)> ParseExternalIdAsync(Token idTokenType, Token declType)
SchemaInfo _schemaInfo
Definition DtdParser.cs:146
async Task< Token > GetTokenAsync(bool needWhiteSpace)
Dictionary< string, SchemaNotation > Notations

References System.Xml.DtdParser._curPos, System.Xml.DtdParser._schemaInfo, System.Xml.DtdParser._undeclaredNotations, System.Xml.DtdParser._validate, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Dictionary, System.Xml.DtdParser.GetNameQualified(), System.Xml.DtdParser.GetTokenAsync(), System.Xml.Schema.SchemaInfo.Notations, System.Xml.DtdParser.OnUnexpectedError(), System.Xml.DtdParser.ParseExternalIdAsync(), System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.SR.Sch_DupNotation, and System.Xml.DtdParser.SendValidationEvent().

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