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

◆ XslVarPar()

VarPar System.Xml.Xsl.Xslt.XsltLoader.XslVarPar ( )
inlineprivate

Definition at line 1614 of file XsltLoader.cs.

1615 {
1616 string localName = _input.LocalName;
1617 XslNodeType xslNodeType = (Ref.Equal(localName, _atoms.Variable) ? XslNodeType.Variable : (Ref.Equal(localName, _atoms.Param) ? XslNodeType.Param : (Ref.Equal(localName, _atoms.WithParam) ? XslNodeType.WithParam : XslNodeType.Unknown)));
1619 {
1623 });
1625 string text = ParseStringAttribute(1, "select");
1626 string text2 = ParseStringAttribute(2, "as");
1627 TriState triState = ParseYesNoAttribute(3, "required");
1628 if (triState == TriState.True)
1629 {
1630 ReportNYI("xsl:param/@required == true()");
1631 }
1632 if (text2 != null)
1633 {
1634 ReportNYI("xsl:param/@as");
1635 }
1636 TriState triState2 = ParseYesNoAttribute(4, "tunnel");
1637 if (triState2 != TriState.Unknown)
1638 {
1639 if (xslNodeType == XslNodeType.Param && _curTemplate == null)
1640 {
1642 {
1644 }
1645 }
1646 else if (triState2 == TriState.True)
1647 {
1648 ReportNYI("xsl:param/@tunnel == true()");
1649 }
1650 }
1652 CheckError(triState == TriState.True && (text != null || list.Count != 0), System.SR.Xslt_RequiredAndSelect, qilName.ToString());
1653 VarPar varPar = AstFactory.VarPar(xslNodeType, qilName, text, _input.XslVersion);
1654 SetInfo(varPar, list, attributes);
1655 return varPar;
1656 }
static string Xslt_NonTemplateTunnel
Definition SR.cs:2006
static string Xslt_RequiredAndSelect
Definition SR.cs:2002
Definition SR.cs:7
void ReportError(string res, params string[] args)
List< XslNode > LoadContent(bool hasSelect)
TriState ParseYesNoAttribute(int attNum, string attName)
readonly XsltInput.XsltAttribute[] _paramAttributes
QilName ParseQNameAttribute(int attNum)
void CheckError(bool cond, string res, params string[] args)
string ParseStringAttribute(int attNum, string attName)
readonly XsltInput.XsltAttribute[] _withParamAttributes
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
readonly XsltInput.XsltAttribute[] _variableAttributes

References System.Xml.Xsl.Xslt.XsltLoader._atoms, System.Xml.Xsl.Xslt.XsltLoader._curTemplate, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._paramAttributes, System.Xml.Xsl.Xslt.XsltLoader._variableAttributes, System.Xml.Xsl.Xslt.XsltLoader._withParamAttributes, System.Xml.Xsl.Xslt.XsltLoader.CheckError(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.list, System.Xml.Xsl.Xslt.XsltLoader.LoadContent(), System.Xml.Xsl.Xslt.XsltInput.LocalName, System.Xml.Xsl.Xslt.KeywordsTable.Param, System.Xml.Xsl.Xslt.XsltLoader.ParseQNameAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseYesNoAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.text, System.Xml.Xsl.Xslt.KeywordsTable.Variable, System.Xml.Xsl.Xslt.AstFactory.VarPar(), System.Xml.Xsl.Xslt.KeywordsTable.WithParam, System.SR.Xslt_NonTemplateTunnel, System.SR.Xslt_RequiredAndSelect, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadGlobalVariableOrParameter(), System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), and System.Xml.Xsl.Xslt.XsltLoader.LoadWithParams().