S_H_ (Shun Hiraoka)
11/27/2025
07:30 AM
Ruby
Revision 3ebb5b9c (git): Remove unneeded trailing semicolons
S_H_ (Shun Hiraoka)
08/30/2025
01:41 PM
Ruby
Revision dd4e7801 (git): Add NODE SCLASS locations
Add locations to struct `RNode_SCLASS`. memo: ``` @ ProgramNode (location: (1,0)-(1,18)) +-- locals: [] +-- statements: @ StatementsNode (location: (1,0)-(1,18)) +-- body: (length: 1) +-- @ SingletonClassNode (location:...
S_H_ (Shun Hiraoka)
08/11/2025
01:25 PM
Ruby
Revision 4775d1ff (git): Add NODE IN locations
Add locations to struct `RNode_IN`. memo: ```bash > ruby -e 'case 1; in 2 then 3; end' --parser=prism --dump=parsetree @ ProgramNode (location: (1,0)-(1,24)) +-- locals: [] +-- statements: @ StatementsNode (location: (1,0)-(1,24)) ...
S_H_ (Shun Hiraoka)
08/06/2025
04:07 PM
Ruby
Revision bcd21053 (git): Add MODULE NODE locations
Add `keyword_module` amd `keyword_end` locations to struct `RNode_MODULE`. memo: ``` >ruby --dump=parsetree -e 'module A end' @ ProgramNode (location: (1,0)-(1,12)) +-- locals: [] +-- statements: @ StatementsNode (location: (1,0)-(1...
S_H_ (Shun Hiraoka)
08/05/2025
05:58 PM
Ruby
Revision b482e3d7 (git): [ruby/prism] Make `it = it` assign `nil` to match parse.y behavior [Bug #21139]
Currently Prism returns `42` for code like this: ```ruby 42.tap { it = it; p it } # => 42 ``` But parse.y returns `nil`: ```ruby 42.tap { it = it; p it } # => nil ``` In parse.y, it on the right-hand side is parsed as a local variable....
S_H_ (Shun Hiraoka)
05:58 PM
Ruby
Revision 02200ac8 (git): [ruby/prism] Add it read and assignment test
https://github.com/ruby/prism/commit/659d769621
S_H_ (Shun Hiraoka)
05:58 PM
Ruby
Revision a12e0c1d (git): [ruby/prism] Remove uneeded test
https://github.com/ruby/prism/commit/a6b448b10f
S_H_ (Shun Hiraoka)
05:58 PM
Ruby
Revision 6bc07f14 (git): [ruby/prism] Convert implicit parameter `it` to local variable in `parse_expression_infix` function
https://github.com/ruby/prism/commit/fb136c6eb5
S_H_ (Shun Hiraoka)
07/24/2025
02:30 PM
Ruby
Revision fd492a45 (git): Add DEFINED NODE locations
Add keyword_defined locations to struct RNode_DEFINED
S_H_ (Shun Hiraoka)
07/21/2025
02:11 AM
Ruby
Bug #21139: Prism and parse.y parses `it = it` differently
I've created a pull request to fix this Prism behavior where `42.tap { it = it; p it }` returns `42` instead of `nil`. https://github.com/ruby/prism/pull/3604 This change makes Prism treat the right-hand side `it` as a local variab...
S_H_ (Shun Hiraoka)
Also available in: Atom
Loading...