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

◆ CompileInstruction()

void System.Xml.Xsl.XsltOld.ContainerAction.CompileInstruction ( Compiler compiler)
inlineprivateinherited

Definition at line 571 of file ContainerAction.cs.

572 {
573 NavigatorInput input = compiler.Input;
574 CompiledAction compiledAction = null;
575 string localName = input.LocalName;
576 if (Ref.Equal(localName, input.Atoms.ApplyImports))
577 {
578 compiledAction = compiler.CreateApplyImportsAction();
579 }
580 else if (Ref.Equal(localName, input.Atoms.ApplyTemplates))
581 {
582 compiledAction = compiler.CreateApplyTemplatesAction();
583 }
584 else if (Ref.Equal(localName, input.Atoms.Attribute))
585 {
586 compiledAction = compiler.CreateAttributeAction();
587 }
588 else if (Ref.Equal(localName, input.Atoms.CallTemplate))
589 {
590 compiledAction = compiler.CreateCallTemplateAction();
591 }
592 else if (Ref.Equal(localName, input.Atoms.Choose))
593 {
594 compiledAction = compiler.CreateChooseAction();
595 }
596 else if (Ref.Equal(localName, input.Atoms.Comment))
597 {
598 compiledAction = compiler.CreateCommentAction();
599 }
600 else if (Ref.Equal(localName, input.Atoms.Copy))
601 {
602 compiledAction = compiler.CreateCopyAction();
603 }
604 else if (Ref.Equal(localName, input.Atoms.CopyOf))
605 {
606 compiledAction = compiler.CreateCopyOfAction();
607 }
608 else if (Ref.Equal(localName, input.Atoms.Element))
609 {
610 compiledAction = compiler.CreateElementAction();
611 }
612 else
613 {
614 if (Ref.Equal(localName, input.Atoms.Fallback))
615 {
616 return;
617 }
618 if (Ref.Equal(localName, input.Atoms.ForEach))
619 {
620 compiledAction = compiler.CreateForEachAction();
621 }
622 else if (Ref.Equal(localName, input.Atoms.If))
623 {
624 compiledAction = compiler.CreateIfAction(IfAction.ConditionType.ConditionIf);
625 }
626 else if (Ref.Equal(localName, input.Atoms.Message))
627 {
628 compiledAction = compiler.CreateMessageAction();
629 }
630 else if (Ref.Equal(localName, input.Atoms.Number))
631 {
632 compiledAction = compiler.CreateNumberAction();
633 }
634 else if (Ref.Equal(localName, input.Atoms.ProcessingInstruction))
635 {
636 compiledAction = compiler.CreateProcessingInstructionAction();
637 }
638 else if (Ref.Equal(localName, input.Atoms.Text))
639 {
640 compiledAction = compiler.CreateTextAction();
641 }
642 else if (Ref.Equal(localName, input.Atoms.ValueOf))
643 {
644 compiledAction = compiler.CreateValueOfAction();
645 }
646 else if (Ref.Equal(localName, input.Atoms.Variable))
647 {
648 compiledAction = compiler.CreateVariableAction(VariableType.LocalVariable);
649 }
650 else
651 {
652 if (!compiler.ForwardCompatibility)
653 {
654 throw compiler.UnexpectedKeyword();
655 }
656 compiledAction = compiler.CreateNewInstructionAction();
657 }
658 }
660 }

References System.Xml.Xsl.XsltOld.ContainerAction.AddAction(), System.Xml.Dictionary, System.Xml.Ref.Equal(), and System.input.

Referenced by System.Xml.Xsl.XsltOld.ContainerAction.CompileOnceTemplate().