protected virtual IntegerLiteralSyntax ReplaceIntegerLiteralSyntax(IntegerLiteralSyntax syntax) { var hasChanges = Rewrite(syntax.Literal, out var literal); if (!hasChanges) { return(syntax); } return(new IntegerLiteralSyntax(literal, long.Parse(literal.Text))); }
protected virtual SyntaxBase ReplaceIntegerLiteralSyntax(IntegerLiteralSyntax syntax) { var hasChanges = TryRewriteStrict(syntax.Literal, out var literal); if (!hasChanges) { return(syntax); } return(new IntegerLiteralSyntax(literal, ulong.Parse(literal.Text))); }
void ISyntaxVisitor.VisitIntegerLiteralSyntax(IntegerLiteralSyntax syntax) => ReplaceCurrent(syntax, ReplaceIntegerLiteralSyntax);
public virtual void VisitIntegerLiteralSyntax(IntegerLiteralSyntax syntax) { this.Visit(syntax.Literal); }