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); }
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); }