public override void GenerateIntoContainer(Runtime.Container container)
        {
            divert.GenerateRuntimeObject();

            _runtimeDivert            = (Runtime.Divert)divert.runtimeDivert;
            _runtimeDivertTargetValue = new Runtime.DivertTargetValue();

            container.AddContent(_runtimeDivertTargetValue);
        }
Пример #2
0
        public override void GenerateIntoContainer(Runtime.Container container)
        {
            divert.GenerateRuntimeObject();

            _runtimeDivert = (Runtime.Divert)divert.runtimeDivert;
            _runtimeLiteralDivertTarget = new Runtime.LiteralDivertTarget();

            if (divert.arguments != null && divert.arguments.Count > 0)
            {
                Error("Can't use a divert target as a variable if it has parameters");
                return;
            }

            container.AddContent(_runtimeLiteralDivertTarget);
        }