コード例 #1
0
        protected virtual SyntaxBase ReplaceDecoratorSyntax(DecoratorSyntax syntax)
        {
            var hasChanges = TryRewriteStrict(syntax.At, out var at);

            hasChanges |= TryRewrite(syntax.Expression, out var expression);

            if (!hasChanges)
            {
                return(syntax);
            }

            return(new DecoratorSyntax(at, expression));
        }
コード例 #2
0
 void ISyntaxVisitor.VisitDecoratorSyntax(DecoratorSyntax syntax) => ReplaceCurrent(syntax, ReplaceDecoratorSyntax);
コード例 #3
0
 public virtual void VisitDecoratorSyntax(DecoratorSyntax syntax)
 {
     this.Visit(syntax.At);
     this.Visit(syntax.Expression);
 }