class FoodCritic::Template::ExpressionExtractor
def expressions_with_lines(template_code)
def expressions_with_lines(template_code) lines = lines_with_offsets(template_code) expression_offsets(template_code).map do |expr_offset, code| [code, lines.find { |line, offset| offset >= expr_offset }.first] end end