General

Profile

kddnewton (Kevin Newton)

  • Login: kddnewton
  • Email: kddnewton@gmail.com
  • Registered on: 11/20/2015
  • Last sign in: 03/02/2026

Issues

open closed Total
Assigned issues 0 103 103
Reported issues 15 79 94

Projects

Project Roles Registered on
Ruby Committer 06/28/2023

Activity

04/27/2026

02:02 PM Ruby Bug #20409 (Open): Missing reporting some invalid breaks
Re-opening, we need a syntax error for parse.y. kddnewton (Kevin Newton)
12:37 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
> It makes no sense for the range of the syntactic block here to include the entire expression of the call and its arguments.
If I'm understanding you correctly, then what you would like for source_range for the example for `foo` and ...
kddnewton (Kevin Newton)
12:34 AM Ruby Feature #21795: Methods for retrieving ASTs
Necessarily if the ABI changes, it means the AST shape changed. So how can you possibly expect it to work "whether the loaded prism gem ABI matches that or not". If the AST shape changed, then you're guessing. Unless you're once again su... kddnewton (Kevin Newton)

04/26/2026

02:25 PM Ruby Feature #21795: Methods for retrieving ASTs
@eregon — I have tried start/end line/column extensively. It did not work at all for Rails or error highlight, and I spent too long on it to revisit it. Also, it has been rejected twice in this thread alone. If, regardless, you would lik... kddnewton (Kevin Newton)
02:08 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
We should make sure start line respects the line passed into eval (not sure if that was implicit, but wanted to be sure to call it out).
For the heredocs, I agree that they should be omitted. We made that decision early with Prism bec...
kddnewton (Kevin Newton)

04/18/2026

12:08 AM Ruby Bug #22007: Inconsistent type checking on rescue
We can't change this without breaking user code. Things like
```
irb(main):003> def resolve; SyntaxError; end
=> :resolve
irb(main):004> begin; raise SyntaxError, 'lol'; rescue resolve; end
=> nil
irb(main):005> begin; raise Argu...
kddnewton (Kevin Newton)

04/09/2026

12:50 PM Ruby Bug #21984: RubyVM::AST can't tell if an array is passed to break/next/return
The honest answer is, not really. It's probably fine to stay as is, and I would be okay with closing this.
For context, I've been building a translation layer from RubyVM::AbstractSyntaxTree to Prism, hoping it might help with a migra...
kddnewton (Kevin Newton)

04/08/2026

05:50 PM Ruby Bug #21986 (Closed): RubyVM::AST incorrect location for literals followed by modifier `if`
```
irb(main):001> RubyVM::AbstractSyntaxTree.parse("1.0if true")
=> (SCOPE@1:0-1:10 tbl: [] args: nil body: (IF@1:0-1:10 (TRUE@1:6-1:10) (FLOAT@1:3-1:3 1.0) nil))
irb(main):002> RubyVM::AbstractSyntaxTree.parse("1if true")
=> (SCOPE...
kddnewton (Kevin Newton)
02:17 PM Ruby Bug #21984: RubyVM::AST can't tell if an array is passed to break/next/return
I don't think that fix works:
```
$ ./ruby -e 'pp RubyVM::AbstractSyntaxTree.parse("tap { break 1, 2 }")'
(SCOPE@1:0-1:18 tbl: [] args: nil body: (ITER@1:0-1:18 (FCALL@1:0-1:3 :tap nil) (SCOPE@1:4-1:18 tbl: [] args: nil body: (BREAK...
kddnewton (Kevin Newton)
02:30 AM Ruby Bug #21985 (Closed): RubyVM::AST negative numbers do not include - in location
```
irb(main):007> RubyVM::AbstractSyntaxTree.parse("-1")
=> (SCOPE@1:0-1:2 tbl: [] args: nil body: (INTEGER@1:1-1:2 -1))
irb(main):008>
```
kddnewton (Kevin Newton)

Also available in: Atom