예제 #1
0
        public SyntaxNode Format(SyntaxNode syntaxRoot, SemanticModel semanticModel)
        {
            var rewriter = new BqlRewriter(new BqlContext(semanticModel.Compilation), semanticModel,
                                           EndOfLineTrivia, IndentationTrivia);

            return(rewriter.Visit(syntaxRoot));
        }
예제 #2
0
 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);
 }