Ejemplo n.º 1
0
        public SyntaxNode Format(SyntaxNode syntaxRoot, SemanticModel semanticModel)
        {
            var rewriter = new BqlRewriter(new BqlContext(semanticModel.Compilation), semanticModel,
                                           EndOfLineTrivia, IndentationTrivia);

            return(rewriter.Visit(syntaxRoot));
        }
Ejemplo n.º 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);
 }