Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InputScope.cs
Go to the documentation of this file.
2
4
5internal sealed class InputScope : DocumentScope
6{
8
10
12
14
16
18
20
22
24 {
25 get
26 {
28 }
29 set
30 {
32 }
33 }
34
35 internal bool CanHaveApplyImports
36 {
37 get
38 {
40 }
41 set
42 {
44 }
45 }
46
47 internal InputScope(InputScope parent)
48 {
49 Init(parent);
50 }
51
52 internal void Init(InputScope parent)
53 {
54 scopes = null;
55 _parent = parent;
56 if (_parent != null)
57 {
60 }
61 }
62
63 internal void InsertExtensionNamespace(string nspace)
64 {
65 if (_extensionNamespaces == null)
66 {
68 }
70 }
71
72 internal bool IsExtensionNamespace(string nspace)
73 {
74 if (_extensionNamespaces == null)
75 {
76 return false;
77 }
79 }
80
81 internal void InsertExcludedNamespace(string nspace)
82 {
83 if (_excludedNamespaces == null)
84 {
86 }
88 }
89
90 internal bool IsExcludedNamespace(string nspace)
91 {
92 if (_excludedNamespaces == null)
93 {
94 return false;
95 }
97 }
98
100 {
101 if (_variables == null)
102 {
103 _variables = new Hashtable();
104 }
106 }
107
108 internal int GetVeriablesCount()
109 {
110 if (_variables == null)
111 {
112 return 0;
113 }
114 return _variables.Count;
115 }
116
118 {
120 {
121 if (inputScope.Variables != null)
122 {
124 if (variableAction != null)
125 {
126 return variableAction;
127 }
128 }
129 }
130 return null;
131 }
132
134 {
135 InputScope inputScope = null;
137 {
139 }
140 return inputScope.ResolveVariable(qname);
141 }
142}
virtual bool Contains(object key)
Definition Hashtable.cs:719
void Init(InputScope parent)
Definition InputScope.cs:52
void InsertExcludedNamespace(string nspace)
Definition InputScope.cs:81
bool IsExtensionNamespace(string nspace)
Definition InputScope.cs:72
void InsertExtensionNamespace(string nspace)
Definition InputScope.cs:63
bool IsExcludedNamespace(string nspace)
Definition InputScope.cs:90
VariableAction ResolveVariable(XmlQualifiedName qname)
void InsertVariable(VariableAction variable)
Definition InputScope.cs:99
VariableAction ResolveGlobalVariable(XmlQualifiedName qname)
InputScope(InputScope parent)
Definition InputScope.cs:47