summaryrefslogtreecommitdiff
path: root/test/ripper/dummyparser.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-15 14:14:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-15 21:36:23 +0900
commite0bdd54348514ff06df88a9bac88fa56058235a4 (patch)
tree0ddf16cabf36e7b2c1421f5b3a6392b0e32236ae /test/ripper/dummyparser.rb
parent2e436982ee64301aceb97e0c8d5b06b94fc7b580 (diff)
Ripper: Refined error callbacks [Bug #17345]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3909
Diffstat (limited to 'test/ripper/dummyparser.rb')
-rw-r--r--test/ripper/dummyparser.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ripper/dummyparser.rb b/test/ripper/dummyparser.rb
index ca36985..fa834bd 100644
--- a/test/ripper/dummyparser.rb
+++ b/test/ripper/dummyparser.rb
@@ -101,7 +101,11 @@ class DummyParser < Ripper
Node.new('valias', a, b)
end
- def on_alias_error(a)
+ def on_assign_error(mesg = nil, a)
+ Node.new('assign_error', a)
+ end
+
+ def on_alias_error(mesg = nil, a)
Node.new('aliaserr', a)
end