/// <summary> /// Moves node to a new line, indents it and visit it using provided rewriter. /// </summary> protected SyntaxNode RewriteGenericNode(GenericNameSyntax node, BqlRewriterBase rewriter) { GenericNameSyntax newNode = OnNewLineAndIndented(node); if (newNode?.TypeArgumentList == null) { return(node); } TypeArgumentListSyntax newTypeArgsListNode = rewriter.Visit(newNode.TypeArgumentList) as TypeArgumentListSyntax; if (newTypeArgsListNode == null) { return(newNode); } return(newNode.WithTypeArgumentList(newTypeArgsListNode)); }
public BqlConditionRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : base(parent, defaultLeadingTrivia) { _externalMode = true; }
public BqlStatementRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : base(parent, defaultLeadingTrivia) { }
public BqlAggregateRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : base(parent, defaultLeadingTrivia) { }
protected BqlRewriterBase(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : this(parent.Context, parent._semanticModel, parent.EndOfLineTrivia, parent.IndentationTrivia, defaultLeadingTrivia) { }
public BqlFirstTableRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : base(parent, defaultLeadingTrivia) { }
/// <summary> /// Moves node to a new line, indents it and visit it using provided rewriter. /// </summary> protected SyntaxNode RewriteGenericNode(GenericNameSyntax node, BqlRewriterBase rewriter) { var newNode = OnNewLineAndIndented(node); return(newNode.WithTypeArgumentList((TypeArgumentListSyntax)rewriter.Visit(newNode.TypeArgumentList))); }
public BqlViewDeclarationRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia) : base(parent, defaultLeadingTrivia) { }