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

◆ CompileAttribute()

override bool System.Xml.Xsl.XsltOld.IfAction.CompileAttribute ( Compiler compiler)
inlinepackagevirtual

Reimplemented from System.Xml.Xsl.XsltOld.CompiledAction.

Definition at line 35 of file IfAction.cs.

36 {
37 string localName = compiler.Input.LocalName;
38 string value = compiler.Input.Value;
39 if (Ref.Equal(localName, compiler.Atoms.Test))
40 {
41 if (_type == ConditionType.ConditionOtherwise)
42 {
43 return false;
44 }
45 _testKey = compiler.AddBooleanQuery(value);
46 return true;
47 }
48 return false;
49 }
readonly ConditionType _type
Definition IfAction.cs:12

References System.Xml.Xsl.XsltOld.IfAction._testKey, System.Xml.Xsl.XsltOld.IfAction._type, System.Xml.Dictionary, System.Xml.Ref.Equal(), and System.value.