Exemplo n.º 1
0
            protected override IBlockNode FinishParsing(DBlockNode tempBlock, DParser p)
            {
                DoubleDeclarationSilencer.RemoveDoubles(finalParentBlock, tempBlock);

                tempBlock.Parent = finalParentBlock;

                return(tempBlock);
            }
Exemplo n.º 2
0
            public static void RemoveDoubles(IBlockNode originalAst, IBlockNode blockToClean)
            {
                var rem = new DoubleDeclarationSilencer();

                originalAst.Accept(rem);
                rem.secondRun = true;
                blockToClean.Accept(rem);
            }
Exemplo n.º 3
0
            protected override IBlockNode FinishParsing(BlockStatement tempBlockStmt, DParser p)
            {
                DoubleDeclarationSilencer.RemoveDoubles(finalParentMethod, tempParentBlock);

                tempParentBlock.Parent = finalParentMethod;

                return(tempParentBlock);
            }
Exemplo n.º 4
0
 public static void RemoveDoubles(IBlockNode originalAst, IBlockNode blockToClean)
 {
     var rem = new DoubleDeclarationSilencer();
     originalAst.Accept(rem);
     rem.secondRun = true;
     blockToClean.Accept(rem);
 }