diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-31 15:51:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-19 18:46:55 +0900 |
commit | 49f0fd21e468e567dc122547d516eef42c0ce0d3 (patch) | |
tree | cfda3922a7a61f4c9c189e3076e11eaa0ea162a5 /tool | |
parent | d863f4bccdd1b5566fbdbe87af766e54b995f8af (diff) | |
download | ruby-49f0fd21e468e567dc122547d516eef42c0ce0d3.tar.gz |
[Feature #16254] Allow `Primitive.func` style
Diffstat (limited to 'tool')
-rw-r--r-- | tool/mk_builtin_loader.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index ae6c3b3812..01551592bf 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -113,6 +113,11 @@ def collect_builtin base, tree, name, bs, inlines, params = nil if recv func_name = nil case recv.first + when :var_ref + _, recv = recv + if recv.first == :@const and recv[1] == "Primitive" + func_name = mid.to_s + end when :vcall _, recv = recv if recv.first == :@ident and recv[1] == "__builtin" |