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

◆ ParseElementOnlyContent()

void System.Xml.DtdParser.ParseElementOnlyContent ( ParticleContentValidator pcv,
int startParenEntityId )
inlineprivate

Definition at line 851 of file DtdParser.cs.

852 {
854 ParseElementOnlyContent_LocalFrame parseElementOnlyContent_LocalFrame = new ParseElementOnlyContent_LocalFrame(startParenEntityId);
856 while (true)
857 {
858 Token token = GetToken(needWhiteSpace: false);
859 if (token != Token.QName)
860 {
861 if (token != Token.LeftParen)
862 {
863 if (token != Token.GreaterThan)
864 {
865 goto IL_0148;
866 }
868 goto IL_014e;
869 }
870 pcv.OpenGroup();
871 parseElementOnlyContent_LocalFrame = new ParseElementOnlyContent_LocalFrame(_currentEntityId);
873 continue;
874 }
877 goto IL_0078;
878 IL_0148:
880 goto IL_014e;
881 IL_00f9:
882 pcv.CloseGroup();
884 {
886 }
888 goto IL_014e;
889 IL_00cb:
890 if (parseElementOnlyContent_LocalFrame.parsingSchema == Token.Comma)
891 {
893 }
894 pcv.AddChoice();
896 continue;
897 IL_014e:
898 stack.Pop();
899 if (stack.Count > 0)
900 {
902 goto IL_0078;
903 }
904 break;
905 IL_0135:
907 goto IL_014e;
908 IL_0078:
909 switch (GetToken(needWhiteSpace: false))
910 {
911 case Token.Comma:
912 break;
913 case Token.Or:
914 goto IL_00cb;
915 case Token.RightParen:
916 goto IL_00f9;
917 case Token.GreaterThan:
918 goto IL_0135;
919 default:
920 goto IL_0148;
921 }
922 if (parseElementOnlyContent_LocalFrame.parsingSchema == Token.Or)
923 {
925 }
926 pcv.AddSequence();
928 }
929 }
static string Sch_ParEntityRefNesting
Definition SR.cs:392
static string Xml_InvalidContentModel
Definition SR.cs:250
Definition SR.cs:7
void ParseHowMany(ParticleContentValidator pcv)
Definition DtdParser.cs:931
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
void Throw(int curPos, string res)
XmlQualifiedName GetNameQualified(bool canHavePrefix)
Token GetToken(bool needWhiteSpace)

References System.Xml.DtdParser._curPos, System.Xml.DtdParser._currentEntityId, System.Xml.DtdParser._validate, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.DtdParser.GetNameQualified(), System.Xml.DtdParser.GetToken(), System.Xml.DtdParser.OnUnexpectedError(), System.Xml.DtdParser.ParseHowMany(), System.SR.Sch_ParEntityRefNesting, System.Xml.DtdParser.SendValidationEvent(), System.Xml.DtdParser.Throw(), and System.SR.Xml_InvalidContentModel.

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