public TriviaListEditor(
     SyntaxTrivia originalTrivia,
     IEnumerable <SyntaxTrivia> newTrivia,
     ListEditKind editKind)
     : base(originalTrivia.Span, editKind, true, originalTrivia.IsPartOfStructuredTrivia())
 {
     _originalTrivia = originalTrivia;
     _newTrivia      = newTrivia;
 }
 public NodeListEditor(
     SyntaxNode originalNode,
     IEnumerable <SyntaxNode> replacementNodes,
     ListEditKind editKind)
     : base(originalNode.Span, editKind, false, originalNode.IsPartOfStructuredTrivia())
 {
     _originalNode = originalNode;
     _newNodes     = replacementNodes;
 }
 public TokenListEditor(
     SyntaxToken originalToken,
     IEnumerable <SyntaxToken> newTokens,
     ListEditKind editKind)
     : base(originalToken.Span, editKind, false, originalToken.IsPartOfStructuredTrivia())
 {
     _originalToken = originalToken;
     _newTokens     = newTokens;
 }
Example #4
0
 public TokenListEditor(
     SyntaxToken originalToken,
     IEnumerable <SyntaxToken> newTokens,
     ListEditKind editKind)
     : base(editKind)
 {
     _originalToken = originalToken;
     _newTokens     = newTokens;
 }
Example #5
0
 public NodeListEditor(
     SyntaxNode originalNode,
     IEnumerable <SyntaxNode> replacementNodes,
     ListEditKind editKind)
     : base(editKind)
 {
     _originalNode = originalNode;
     _newNodes     = replacementNodes;
 }
Example #6
0
 public NodeListEditor(
     SyntaxNode originalNode,
     IEnumerable <SyntaxNode> replacementNodes,
     ListEditKind editKind)
 {
     _elementSpan  = originalNode.Span;
     _originalNode = originalNode;
     _newNodes     = replacementNodes;
     _editKind     = editKind;
 }
 public BaseListEditor(
     TextSpan elementSpan,
     ListEditKind editKind,
     bool visitTrivia,
     bool visitIntoStructuredTrivia)
 {
     _elementSpan  = elementSpan;
     this.editKind = editKind;
     _visitTrivia  = visitTrivia || visitIntoStructuredTrivia;
     _visitIntoStructuredTrivia = visitIntoStructuredTrivia;
 }
Example #8
0
 protected BaseListEditor(ListEditKind editKind)
 {
     this.editKind = editKind;
 }