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)); }
void ISyntaxVisitor.VisitDecoratorSyntax(DecoratorSyntax syntax) => ReplaceCurrent(syntax, ReplaceDecoratorSyntax);
public virtual void VisitDecoratorSyntax(DecoratorSyntax syntax) { this.Visit(syntax.At); this.Visit(syntax.Expression); }