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

◆ Check() [2/2]

void System.Xml.Xsl.Qil.QilDepthChecker.Check ( QilNode input,
int depth )
inlineprivate

Definition at line 17 of file QilDepthChecker.cs.

18 {
19 if (depth > 800)
20 {
21 throw XsltException.Create(System.SR.Xslt_InputTooComplex);
22 }
23 if (input is QilReference)
24 {
26 {
27 return;
28 }
29 _visitedRef[input] = true;
30 }
31 int depth2 = depth + 1;
32 for (int i = 0; i < input.Count; i++)
33 {
34 QilNode qilNode = input[i];
35 if (qilNode != null)
36 {
38 }
39 }
40 }
static string Xslt_InputTooComplex
Definition SR.cs:1862
Definition SR.cs:7
static void Check(QilNode input)
readonly Dictionary< QilNode, bool > _visitedRef

References System.Xml.Xsl.Qil.QilDepthChecker._visitedRef, System.Xml.Xsl.Qil.QilDepthChecker.Check(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Xsl.XsltException.Create(), System.input, and System.SR.Xslt_InputTooComplex.