diff options
Diffstat (limited to 'ext/ripper/test/check-event-arity.rb')
-rw-r--r-- | ext/ripper/test/check-event-arity.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ext/ripper/test/check-event-arity.rb b/ext/ripper/test/check-event-arity.rb deleted file mode 100644 index 00e1b98dbc..0000000000 --- a/ext/ripper/test/check-event-arity.rb +++ /dev/null @@ -1,24 +0,0 @@ -def main - invalid = false - table = {} - ARGF.each do |line| - next if /\A\#\s*define\s+s?dispatch\d/ === line - next if /ripper_dispatch\d/ === line - line.scan(/dispatch(\d)\((\w+)/) do |num, ev| - num = num.to_i - if data = table[ev] - locations, arity = data - unless num == arity - invalid = true - puts "arity differ [#{ev}]: #{ARGF.lineno}->#{num}; #{locations.join(',')}->#{arity}" - end - locations.push ARGF.lineno - else - table[ev] = [[ARGF.lineno], num.to_i] - end - end - end - exit 1 if invalid -end - -main |