Esempio n. 1
0
        public override void Synchronize(SyncronizationContext sc)
        {
            this.ValueProvider.Synchronize(sc, "@any");

            if (Operation != null)
            {
                sc.SynchronizeValue(this.ValueProvider.Type, ref Value, Operation.Value.IsList());
            }

            using (sc.NewScope())
            {
                this.ValueProvider.Declare(sc.Variables);

                AnyBlock.Synchronize(sc);
            }

            if (NotAnyBlock != null)
            {
                using (sc.NewScope())
                {
                    this.ValueProvider.Declare(sc.Variables);

                    NotAnyBlock.Synchronize(sc);
                }
            }
        }
            public override void Synchronize(SyncronizationContext sc)
            {
                ValueProvider.Synchronize(sc, "if[]");

                if (Operation != null)
                {
                    sc.SynchronizeValue(ValueProvider.Type, ref Value, Operation.Value.IsList());
                }

                using (sc.NewScope())
                {
                    ValueProvider.Declare(sc.Variables);

                    IfBlock.Synchronize(sc);
                }

                if (ElseBlock != null)
                {
                    using (sc.NewScope())
                    {
                        ValueProvider.Declare(sc.Variables);

                        ElseBlock.Synchronize(sc);
                    }
                }
            }
Esempio n. 3
0
        public override void Synchronize(SyncronizationContext sc)
        {
            ValueProvider.Synchronize(sc, "@foreach");

            using (sc.NewScope())
            {
                ValueProvider.Declare(sc.Variables);

                this.ForeachBlock.Synchronize(sc);
            }
        }
        public override void Synchronize(SyncronizationContext sc)
        {
            this.ValueProvider.Synchronize(sc, "@if");

            if (Operation != null)
                sc.SynchronizeValue(this.ValueProvider.Type, ref Value, Operation == FilterOperation.IsIn);

            using (sc.NewScope())
            {
                this.ValueProvider.Declare(sc.Variables);

                IfBlock.Synchronize(sc);
            }

            if (ElseBlock != null)
            {
                using (sc.NewScope())
                {
                    this.ValueProvider.Declare(sc.Variables);

                    ElseBlock.Synchronize(sc);
                }
            }
        }
        public override void Synchronize(SyncronizationContext sc)
        {
            ValueProvider.Synchronize(sc, "@foreach");

            using (sc.NewScope())
            {
                ValueProvider.Declare(sc.Variables);

                this.ForeachBlock.Synchronize(sc);
            }
        }
            public override void Synchronize(SyncronizationContext sc)
            {
                ValueProvider.Synchronize(sc, "@any[]");

                if (Operation != null)
                    sc.SynchronizeValue(ValueProvider.Type, ref Value, Operation == FilterOperation.IsIn);

                using (sc.NewScope())
                {
                    ValueProvider.Declare(sc.Variables);

                    AnyBlock.Synchronize(sc);
                }

                if (NotAnyBlock != null)
                {
                    using (sc.NewScope())
                    {
                        ValueProvider.Declare(sc.Variables);

                        NotAnyBlock.Synchronize(sc);
                    }
                }
            }
            public override void Synchronize(SyncronizationContext sc)
            {
                ValueProvider.Synchronize(sc, "if[]");

                if (Operation != null)
                    sc.SynchronizeValue(ValueProvider.Type, ref Value, Operation.Value.IsList());

                using (sc.NewScope())
                {
                    ValueProvider.Declare(sc.Variables);

                    IfBlock.Synchronize(sc);
                }

                if (ElseBlock != null)
                {
                    using (sc.NewScope())
                    {
                        ValueProvider.Declare(sc.Variables);

                        ElseBlock.Synchronize(sc);
                    }
                }
            }