summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-31 15:00:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-31 15:00:37 +0000
commit67c574736912003c377218153f9d3b9c0c96a17b (patch)
tree558aea841613b06f6913d1ab22942aecc531a317 /ext
parent4a6f7633303f2d6eb5ec164dc656cf5d47531960 (diff)
Method reference operator
Introduce the new operator for method reference, `.:`. [Feature #12125] [Feature #13581] [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/objspace/objspace.c1
-rw-r--r--ext/ripper/eventids2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 1ac69af844..dced0740bc 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -471,6 +471,7 @@ count_nodes(int argc, VALUE *argv, VALUE os)
COUNT_NODE(NODE_DSYM);
COUNT_NODE(NODE_ATTRASGN);
COUNT_NODE(NODE_LAMBDA);
+ COUNT_NODE(NODE_METHREF);
#undef COUNT_NODE
case NODE_LAST: break;
}
diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c
index e876e95ab3..039034af48 100644
--- a/ext/ripper/eventids2.c
+++ b/ext/ripper/eventids2.c
@@ -259,6 +259,7 @@ static const struct token_assoc {
{tSTAR, O(op)},
{tDSTAR, O(op)},
{tANDDOT, O(op)},
+ {tMETHREF, O(op)},
{tSTRING_BEG, O(tstring_beg)},
{tSTRING_CONTENT, O(tstring_content)},
{tSTRING_DBEG, O(embexpr_beg)},