Class: Collie::Linter::Rules::RedundantEpsilon

Inherits:
Base
  • Object
show all
Defined in:
lib/collie/linter/rules/redundant_epsilon.rb

Overview

Detects potentially redundant epsilon productions

Instance Method Summary collapse

Methods inherited from Base

#autocorrectable?, #initialize

Constructor Details

This class inherits a constructor from Collie::Linter::Base

Instance Method Details

#check(ast, _context = {}) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/collie/linter/rules/redundant_epsilon.rb', line 13

def check(ast, _context = {})
  ast.rules.each do |rule|
    check_rule(rule)
  end

  @offenses
end