Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 public BqlConditionRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia)
     : base(parent, defaultLeadingTrivia)
 {
     _externalMode = true;
 }
Exemplo n.º 3
0
 public BqlStatementRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia)
     : base(parent, defaultLeadingTrivia)
 {
 }
Exemplo n.º 4
0
 public BqlAggregateRewriter(BqlRewriterBase parent, SyntaxTriviaList defaultLeadingTrivia)
     : base(parent, defaultLeadingTrivia)
 {
 }
Exemplo n.º 5
0
 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)
 {
 }
Exemplo n.º 7
0
        /// <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)
 {
 }