File: condition.rb

package info (click to toggle)
ruby-whitequark-parser 3.3.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,828 kB
  • sloc: yacc: 40,699; ruby: 20,395; makefile: 12; sh: 8
file content (21 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Parser
  module Source

    class Map::Condition < Map
      attr_reader :keyword
      attr_reader :begin
      attr_reader :else
      attr_reader :end

      def initialize(keyword_l, begin_l, else_l, end_l, expression_l)
        @keyword = keyword_l
        @begin, @else, @end = begin_l, else_l, end_l

        super(expression_l)
      end
    end

  end
end