Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NamespaceEvent.cs
Go to the documentation of this file.
2
4
5internal sealed class NamespaceEvent : Event
6{
7 private string _namespaceUri;
8
9 private string _name;
10
12 {
13 _namespaceUri = input.Value;
14 _name = input.LocalName;
15 }
16
18 {
19 if (_namespaceUri.Length == 0)
20 {
21 return;
22 }
24 if (namespaceInfo != null)
25 {
26 _namespaceUri = namespaceInfo.nameSpace;
27 if (namespaceInfo.prefix != null)
28 {
29 _name = namespaceInfo.prefix;
30 }
31 }
32 }
33
34 public override bool Output(Processor processor, ActionFrame frame)
35 {
36 bool flag = processor.BeginEvent(XPathNodeType.Namespace, null, _name, _namespaceUri, empty: false);
37 flag = processor.EndEvent(XPathNodeType.Namespace);
38 return true;
39 }
40}
override bool Output(Processor processor, ActionFrame frame)
override void ReplaceNamespaceAlias(Compiler compiler)