Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CompileContent()

void System.Xml.Xsl.XsltOld.CallTemplateAction.CompileContent ( Compiler compiler)
inlineprivate

Definition at line 28 of file CallTemplateAction.cs.

29 {
30 NavigatorInput input = compiler.Input;
31 if (!compiler.Recurse())
32 {
33 return;
34 }
35 do
36 {
37 switch (input.NodeType)
38 {
39 case XPathNodeType.Element:
40 {
41 compiler.PushNamespaceScope();
42 string namespaceURI = input.NamespaceURI;
43 string localName = input.LocalName;
44 if (Ref.Equal(namespaceURI, input.Atoms.UriXsl) && Ref.Equal(localName, input.Atoms.WithParam))
45 {
46 WithParamAction withParamAction = compiler.CreateWithParamAction();
49 compiler.PopScope();
50 break;
51 }
52 throw compiler.UnexpectedKeyword();
53 }
54 default:
55 throw XsltException.Create(System.SR.Xslt_InvalidContents, "call-template");
56 case XPathNodeType.SignificantWhitespace:
57 case XPathNodeType.Whitespace:
58 case XPathNodeType.ProcessingInstruction:
59 case XPathNodeType.Comment:
60 break;
61 }
62 }
63 while (compiler.Advance());
64 compiler.ToParent();
65 }
static string Xslt_InvalidContents
Definition SR.cs:2076
Definition SR.cs:7
void CheckDuplicateParams(XmlQualifiedName name)

References System.Xml.Xsl.XsltOld.ContainerAction.AddAction(), System.Xml.Xsl.XsltOld.ContainerAction.CheckDuplicateParams(), System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.input, System.Xml.Xsl.XsltOld.NavigatorInput.NamespaceURI, and System.SR.Xslt_InvalidContents.

Referenced by System.Xml.Xsl.XsltOld.CallTemplateAction.Compile().