protected virtual SyntaxBase ReplaceBooleanLiteralSyntax(BooleanLiteralSyntax syntax) { var hasChanges = TryRewriteStrict(syntax.Literal, out var literal); if (!hasChanges) { return(syntax); } return(new BooleanLiteralSyntax(literal, bool.Parse(literal.Text))); }
void ISyntaxVisitor.VisitBooleanLiteralSyntax(BooleanLiteralSyntax syntax) => ReplaceCurrent(syntax, ReplaceBooleanLiteralSyntax);
public virtual void VisitBooleanLiteralSyntax(BooleanLiteralSyntax syntax) { this.Visit(syntax.Literal); }