ruby-changes:64693
From: Nobuyoshi <ko1@a...>
Date: Fri, 1 Jan 2021 00:58:41 +0900 (JST)
Subject: [ruby-changes:64693] 37e2a67a74 (master): Method ID of call and fcall can be const not only ident
https://git.ruby-lang.org/ruby.git/commit/?id=37e2a67a74 From 37e2a67a744f8cee8116663ebaac5b6acca2bd36 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 1 Jan 2021 00:51:12 +0900 Subject: Method ID of call and fcall can be const not only ident diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index 4b8e1ed..c1d2376 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -101,7 +101,7 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L101 _, recv, sep, mid, (_, args) = tree end if mid - raise "unknown sexp: #{mid.inspect}" unless mid.first == :@ident + raise "unknown sexp: #{mid.inspect}" unless %i[@ident @const].include?(mid.first) _, mid, (lineno,) = mid if recv func_name = nil -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/