Exemple #1
0
        public StatementContainer RemoveNode(SyntaxNode node, SyntaxRemoveOptions options)
        {
            if (IsBlock)
            {
                return(new StatementContainer(Block.RemoveNode(node, options)));
            }

            if (IsSwitchSection)
            {
                return(new StatementContainer(SwitchSection.RemoveNode(node, options)));
            }

            return(this);
        }
Exemple #2
0
        public StatementsInfo RemoveNode(SyntaxNode node, SyntaxRemoveOptions options)
        {
            if (IsInBlock)
            {
                return(new StatementsInfo(Block.RemoveNode(node, options)));
            }

            if (IsInSwitchSection)
            {
                return(new StatementsInfo(SwitchSection.RemoveNode(node, options)));
            }

            return(this);
        }