public SyntaxNode Format(SyntaxNode syntaxRoot, SemanticModel semanticModel) { var rewriter = new BqlRewriter(new BqlContext(semanticModel.Compilation), semanticModel, EndOfLineTrivia, IndentationTrivia); return(rewriter.Visit(syntaxRoot)); }
public WithDefaultTriviaFrom(BqlRewriter parent, SyntaxNode node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } _parent = parent ?? throw new ArgumentNullException(nameof(parent)); _previous = _parent._defaultLeadingTrivia; _parent._defaultLeadingTrivia = parent.GetDefaultLeadingTrivia(node); }