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

◆ CompileKeyUse()

QilNode System.Xml.Xsl.Xslt.QilGenerator.CompileKeyUse ( Key key)
inlineprivate

Definition at line 1919 of file QilGenerator.cs.

1920 {
1921 string use = key.Use;
1924 if (use == null)
1925 {
1926 qilNode = _f.Error(_f.String(XslLoadException.CreateMessage(key.SourceLine, System.SR.Xslt_MissingAttribute, "use")));
1927 }
1928 else
1929 {
1930 try
1931 {
1934 }
1935 catch (XslLoadException ex)
1936 {
1937 if (_xslVersion != XslVersion.ForwardsCompatible)
1938 {
1940 }
1941 qilNode = _f.Error(_f.String(ex.Message));
1942 }
1943 }
1945 {
1946 qilNode = _f.Nop(qilNode);
1947 }
1948 return qilNode;
1949 }
static string Xslt_MissingAttribute
Definition SR.cs:1882
Definition SR.cs:7
Node Parse(XPathScanner scanner, IXPathBuilder< Node > builder, LexKind endLex)
QilNode Error(string res, QilNode args)
void ReportErrorInXPath(XslLoadException e)
readonly XsltQilFactory _f
void SetEnvironmentFlags(bool allowVariables, bool allowCurrent, bool allowKey)
readonly XPathParser< QilNode > _xpathParser
readonly XPathBuilder _xpathBuilder

References System.Xml.Xsl.Xslt.QilGenerator._f, System.Xml.Xsl.Xslt.QilGenerator._xpathBuilder, System.Xml.Xsl.Xslt.QilGenerator._xpathParser, System.Xml.Xsl.Xslt.QilGenerator._xslVersion, System.Xml.Xsl.XslLoadException.CreateMessage(), System.Xml.Dictionary, System.Xml.Xsl.XPath.XPathQilFactory.Error(), System.key, System.Xml.Xsl.Qil.QilPatternFactory.Nop(), System.Xml.Xsl.XPath.XPathParser< Node >.Parse(), System.Xml.Xsl.Xslt.QilGenerator.ReportErrorInXPath(), System.Xml.Xsl.Xslt.QilGenerator.SetEnvironmentFlags(), System.Xml.Xsl.Qil.QilPatternFactory.String(), and System.SR.Xslt_MissingAttribute.

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileKeys().