Exemplo n.º 1
0
        public CorrectVerifyValState()
        {
            var firstBlock = new CorrectVerifyValBlock();

            Blocks       = new() { firstBlock };
            WorkingBlock = firstBlock;
        }
Exemplo n.º 2
0
        public void Ops(CorrectVerifyValOps ops)
        {
            if (ops == CorrectVerifyValOps.AndOp)
            {
                return;
            }

            if (ops == CorrectVerifyValOps.AndOpWithNewScope)
            {
                var block = new CorrectVerifyValBlock();
                WorkingBlock.AddBlock(block, true);
                WorkingBlock = block;
            }

            if (ops == CorrectVerifyValOps.OrOp)
            {
                var block = new CorrectVerifyValBlock();
                Blocks.Add(block);
                WorkingBlock = block;
            }

            if (ops == CorrectVerifyValOps.OrOpWithSameScope)
            {
                var block = new CorrectVerifyValBlock();
                WorkingBlock.AddBlock(block, false);
                WorkingBlock = block;
            }
        }
Exemplo n.º 3
0
        public void JumpToRoot()
        {
#if NETFRAMEWORK
            WorkingBlock = Blocks[Blocks.Count - 1];
#else
            WorkingBlock = Blocks[^ 1];