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

◆ Compile()

override void System.Xml.Xsl.XsltOld.UseAttributeSetsAction.Compile ( Compiler compiler)
inlinepackage

Definition at line 11 of file UseAttributeSetsAction.cs.

12 {
13 _useString = compiler.Input.Value;
14 if (_useString.Length == 0)
15 {
16 _useAttributeSets = Array.Empty<XmlQualifiedName>();
17 return;
18 }
19 string[] array = XmlConvert.SplitString(_useString);
20 try
21 {
22 _useAttributeSets = new XmlQualifiedName[array.Length];
23 for (int i = 0; i < array.Length; i++)
24 {
25 _useAttributeSets[i] = compiler.CreateXPathQName(array[i]);
26 }
27 }
28 catch (XsltException)
29 {
30 if (!compiler.ForwardCompatibility)
31 {
32 throw;
33 }
34 _useAttributeSets = Array.Empty<XmlQualifiedName>();
35 }
36 }
static readonly XmlQualifiedName Empty

References System.Xml.Xsl.XsltOld.UseAttributeSetsAction._useAttributeSets, System.Xml.Xsl.XsltOld.UseAttributeSetsAction._useString, System.array, System.Xml.Dictionary, and System.Xml.XmlConvert.SplitString().