Beispiel #1
0
 public SyntaxRemover(SyntaxNode[] nodesToRemove, SyntaxRemoveOptions options)
     : base(nodesToRemove.Any(n => n.IsPartOfStructuredTrivia()))
 {
     _nodesToRemove  = new HashSet <SyntaxNode>(nodesToRemove);
     _options        = options;
     _searchSpan     = ComputeTotalSpan(nodesToRemove);
     _residualTrivia = SyntaxTriviaListBuilder.Create();
 }