General

Profile

mame (Yusuke Endoh)

  • Login: mame
  • Email: mame@ruby-lang.org
  • Registered on: 05/28/2008
  • Last sign in: 03/16/2026

Issues

open closed Total
Assigned issues 3 150 153
Reported issues 16 353 369

Projects

Project Roles Registered on
Ruby Committer, Security team, Infrastructure team 05/28/2008

Activity

08/07/2026

12:03 PM Ruby Feature #21795: Methods for retrieving ASTs
I have merged the PR. Thank you all for the feedback!
@kddnewton Thank you for the review! I do think there are cases where the parent of a BlockNode is needed, but my impression is that yielding it as the second argument of the block...
mame (Yusuke Endoh)
11:56 AM Ruby Feature #21795 (Closed): Methods for retrieving ASTs
Applied in changeset commit:git|6e65742a9f377b70fd0767bc22c4d886bd2c2044.
----------
Add Proc#syntax_tree, Method#syntax_tree, and UnboundMethod#syntax_tree
Returns the AST node that the proc or method was compiled from, by
re-parsing ...
mame (Yusuke Endoh)
11:56 AM Ruby Revision 6e65742a (git): Add Proc#syntax_tree, Method#syntax_tree, and UnboundMethod#syntax_tree
Returns the AST node that the proc or method was compiled from, by
re-parsing the source ([Feature #21795]). Returns nil if the node
cannot be retrieved reliably: the stored source hash guarantees that
the re-parsed source is likely the ...
mame (Yusuke Endoh)
11:56 AM Ruby Revision 6408f147 (git): Add Thread::Backtrace::Location#syntax_tree
Returns the AST node at the location: the node of the surrounding
method or block is retrieved and validated in the same way as
Proc#syntax_tree, and then the node at the program counter is searched
within it ([Feature #21795]).
Co-Auth...
mame (Yusuke Endoh)

08/06/2026

11:20 AM Ruby Feature #21795 (Closed): Methods for retrieving ASTs
Applied in changeset commit:git|93638d07e1a4b6c7fe02d1154fd31f201d5faeca.
----------
Compute a source hash of the program in parse.y
Introduce a streaming source hash API (rb_source_hash_init/update/
finalize) in ruby_parser.c, and use...
mame (Yusuke Endoh)
11:20 AM Ruby Revision 93638d07 (git): Compute a source hash of the program in parse.y
Introduce a streaming source hash API (rb_source_hash_init/update/
finalize) in ruby_parser.c, and use it in the lexer of parse.y to
accumulate a hash of the source as each line is read. The hash is
stored in the AST, and will be used to...
mame (Yusuke Endoh)
11:20 AM Ruby Revision 2d629524 (git): Compute a source hash for prism as well
After each prism parse, compute a source hash of the parsed source and
keep it in the scope node. The data section after an __END__ marker is
not part of the code, so the hash covers the source only up to the end
of the __END__ line, whi...
mame (Yusuke Endoh)
11:20 AM Ruby Revision 25959fe2 (git): Store a source hash in ISeqs
Record the source hash in each ISeq. For prism, the hash computed at
parse time is propagated through the scope nodes; for parse.y, it is
taken from the AST, and copied to child iseqs whose AST wrappers are
created separately. Expose it ...
mame (Yusuke Endoh)

08/05/2026

08:56 AM Ruby Bug #22201 (Closed): ruby.exe reads `"AA\ " BB` as a single argument
Applied in changeset commit:git|ecc6edae550059c6414af728f0ada809d7547b97.
----------
win32: a backslash before whitespace escaped the closing quote
Inside double quotes, the escape was cancelled by almost any character
but not by white...
mame (Yusuke Endoh)
08:56 AM Ruby Revision ecc6edae (git): win32: a backslash before whitespace escaped the closing quote
Inside double quotes, the escape was cancelled by almost any character
but not by whitespace, so `"AA\ " BB` came out as a single argument.
[Bug #22201]
mame (Yusuke Endoh)

Also available in: Atom