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

◆ XmlQueryRuntime()

System.Xml.Xsl.Runtime.XmlQueryRuntime.XmlQueryRuntime ( XmlQueryStaticData data,
object defaultDataSource,
XmlResolver dataSources,
XsltArgumentList argList,
XmlSequenceWriter seqWrt )
inlinepackage

Definition at line 67 of file XmlQueryRuntime.cs.

68 {
69 string[] names = data.Names;
70 Int32Pair[] filters = data.Filters;
71 _ctxt = new XmlQueryContext(this, defaultDataSource, dataSources, argList, (data.WhitespaceRules != null && data.WhitespaceRules.Count != 0) ? new WhitespaceRuleLookup(data.WhitespaceRules) : null);
72 _xsltLib = null;
73 _earlyInfo = data.EarlyBound;
74 _earlyObjects = ((_earlyInfo != null) ? new object[_earlyInfo.Length] : null);
75 _globalNames = data.GlobalNames;
76 _globalValues = ((_globalNames != null) ? new object[_globalNames.Length] : null);
78 _atomizedNames = null;
79 if (names != null)
80 {
82 _atomizedNames = new string[names.Length];
84 {
85 for (int i = 0; i < names.Length; i++)
86 {
87 string text = defaultNameTable.Get(names[i]);
89 }
90 }
91 else
92 {
93 for (int i = 0; i < names.Length; i++)
94 {
96 }
97 }
98 }
99 _filters = null;
100 if (filters != null)
101 {
102 _filters = new XmlNavigatorFilter[filters.Length];
103 for (int i = 0; i < filters.Length; i++)
104 {
105 _filters[i] = XmlNavNameFilter.Create(_atomizedNames[filters[i].Left], _atomizedNames[filters[i].Right]);
106 }
107 }
108 _prefixMappingsList = data.PrefixMappingsList;
109 _types = data.Types;
110 _collations = data.Collations;
111 _docOrderCmp = new DocumentOrderComparer();
112 _indexes = null;
114 _output = new XmlQueryOutput(this, seqWrt);
115 }
string Add(char[] array, int offset, int length)
readonly XmlNavigatorFilter[] _filters
readonly DocumentOrderComparer _docOrderCmp
readonly Stack< XmlQueryOutput > _stkOutput
readonly StringPair[][] _prefixMappingsList
readonly EarlyBoundInfo[] _earlyInfo

References System.Xml.Xsl.Runtime.XmlQueryRuntime._atomizedNames, System.Xml.Xsl.Runtime.XmlQueryRuntime._collations, System.Xml.Xsl.Runtime.XmlQueryRuntime._ctxt, System.Xml.Xsl.Runtime.XmlQueryRuntime._docOrderCmp, System.Xml.Xsl.Runtime.XmlQueryRuntime._earlyInfo, System.Xml.Xsl.Runtime.XmlQueryRuntime._earlyObjects, System.Xml.Xsl.Runtime.XmlQueryRuntime._filters, System.Xml.Xsl.Runtime.XmlQueryRuntime._globalNames, System.Xml.Xsl.Runtime.XmlQueryRuntime._globalValues, System.Xml.Xsl.Runtime.XmlQueryRuntime._indexes, System.Xml.Xsl.Runtime.XmlQueryRuntime._nameTableQuery, System.Xml.Xsl.Runtime.XmlQueryRuntime._output, System.Xml.Xsl.Runtime.XmlQueryRuntime._prefixMappingsList, System.Xml.Xsl.Runtime.XmlQueryRuntime._stkOutput, System.Xml.Xsl.Runtime.XmlQueryRuntime._types, System.Xml.Xsl.Runtime.XmlQueryRuntime._xsltLib, System.Xml.XmlNameTable.Add(), System.Xml.Xsl.Runtime.XmlQueryStaticData.Collations, System.Xml.Xsl.Runtime.XmlNavNameFilter.Create(), System.Xml.Xsl.Runtime.XmlQueryContext.DefaultNameTable, System.Xml.Dictionary, System.Xml.Xsl.Runtime.XmlQueryStaticData.EarlyBound, System.Xml.Xsl.Runtime.XmlQueryStaticData.Filters, System.Xml.Xsl.Runtime.XmlQueryStaticData.GlobalNames, System.Collections.Generic.Left, System.Xml.Xsl.Runtime.XmlQueryStaticData.Names, System.Xml.Xsl.Runtime.XmlQueryStaticData.PrefixMappingsList, System.Xml.Xsl.Runtime.XmlQueryContext.QueryNameTable, System.Collections.Generic.Right, System.text, System.Xml.Xsl.Runtime.XmlQueryStaticData.Types, and System.Xml.Xsl.Runtime.XmlQueryStaticData.WhitespaceRules.