Exemple #1
0
        protected override SyntaxNode Rewriter(Dictionary <ValueTuple <SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
        {
            var rewriter = new TriviaRewriter(this.TreeInfo.Root, SimpleIntervalTree.Create(TextSpanIntervalIntrospector.Instance, this.FormattedSpan), changeMap, cancellationToken);

            return(rewriter.Transform());
        }
Exemple #2
0
        protected override SyntaxNode Rewriter(Dictionary <ValueTuple <SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
        {
            var rewriter = new TriviaRewriter(this.Node, GetFormattingSpans(), map, cancellationToken);

            return(rewriter.Transform());
        }