Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QilDepthChecker.cs
Go to the documentation of this file.
2
3namespace System.Xml.Xsl.Qil;
4
5internal sealed class QilDepthChecker
6{
8
9 public static void Check(QilNode input)
10 {
12 {
13 new QilDepthChecker().Check(input, 0);
14 }
15 }
16
17 private void Check(QilNode input, int depth)
18 {
19 if (depth > 800)
20 {
22 }
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 {
35 if (qilNode != null)
36 {
38 }
39 }
40 }
41}
static string Xslt_InputTooComplex
Definition SR.cs:1862
Definition SR.cs:7
static void Check(QilNode input)
void Check(QilNode input, int depth)
readonly Dictionary< QilNode, bool > _visitedRef
static XsltException Create(string res, params string[] args)