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 102 102
Reported issues 15 79 94

Projects

Project Roles Registered on
Ruby Committer 06/28/2023

Activity

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:02 AM Ruby Bug #21984 (Open): RubyVM::AST can't tell if an array is passed to break/next/return
```
irb(main):005> RubyVM::AbstractSyntaxTree.parse("tap { break [1, 2, 3] }")
=> (SCOPE@1:0-1:23 tbl: [] args: nil body: (ITER@1:0-1:23 (FCALL@1:0-1:3 :tap nil) (SCOPE@1:4-1:23 tbl: [] args: nil body: (BREAK@1:6-1:21 (LIST@1:12-1:21 (...
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)

04/06/2026

03:41 PM Ruby Bug #21983 (Closed): RubyVM::AST no way to find &nil
```
$ ./ruby -e 'pp RubyVM::AbstractSyntaxTree.parse("def foo(&nil); end")'
(SCOPE@1:0-1:18
tbl: []
args: nil
body: (DEFN@1:0-1:18 mid: :foo body: (SCOPE@1:0-1:18 tbl: [] args: (ARGS@1:8-1:12 pre_num: 0 pre_init: nil opt: nil fir...
kddnewton (Kevin Newton)

04/02/2026

06:46 PM Ruby Bug #21980 (Open): RubyVM::AST offsets are incorrect when BOM
When there is a BOM on a file, the offsets are incorrect for nodes. See:
```
RubyVM::AbstractSyntaxTree.parse("\xEF\xBB\xBF1").source # => "\xEF"
```
kddnewton (Kevin Newton)

03/31/2026

07:58 PM Ruby Bug #21974 (Closed): Cannot inspect RubyVM::AST for CDECL
```
./ruby -e 'pp RubyVM::AbstractSyntaxTree.parse("::Foo = 1")'
```
and
```
./ruby -e 'p RubyVM::AbstractSyntaxTree.parse("::Foo = 1").children[2].children'
```
both crash
kddnewton (Kevin Newton)

03/25/2026

02:39 PM Ruby Revision 9a24716e (git): [ruby/prism] Pull out parse_*_array from parse_expression_prefix
https://github.com/ruby/prism/commit/80220a9d6a kddnewton (Kevin Newton)
02:39 PM Ruby Revision a3eca0c9 (git): [ruby/prism] Pull out parse_class and parse_module
https://github.com/ruby/prism/commit/781ecf4338 kddnewton (Kevin Newton)

Also available in: Atom