Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NewInstructionAction.cs
Go to the documentation of this file.
2
4
6{
7 private string _name;
8
9 private string _parent;
10
11 private bool _fallback;
12
13 internal override void Compile(Compiler compiler)
14 {
15 XPathNavigator xPathNavigator = compiler.Input.Navigator.Clone();
16 _name = xPathNavigator.Name;
17 xPathNavigator.MoveToParent();
19 if (compiler.Recurse())
20 {
22 compiler.ToParent();
23 }
24 }
25
27 {
29 do
30 {
31 if (Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl) && Ref.Equal(input.LocalName, input.Atoms.Fallback))
32 {
33 _fallback = true;
34 if (compiler.Recurse())
35 {
37 compiler.ToParent();
38 }
39 }
40 }
41 while (compiler.Advance());
42 }
43
44 internal override void Execute(Processor processor, ActionFrame frame)
45 {
46 switch (frame.State)
47 {
48 default:
49 return;
50 case 0:
51 if (!_fallback)
52 {
54 }
55 if (containedActions != null && containedActions.Count > 0)
56 {
57 processor.PushActionFrame(frame);
58 frame.State = 1;
59 return;
60 }
61 break;
62 case 1:
63 break;
64 }
65 frame.Finished();
66 }
67}
static string Xslt_UnknownExtensionElement
Definition SR.cs:1942
Definition SR.cs:7
static bool Equal(string strA, string strB)
Definition Ref.cs:5
static XsltException Create(string res, params string[] args)
override void Execute(Processor processor, ActionFrame frame)