Project

General

Profile

Feature #14170 ยป ripper_lexer_state_bits.patch

aycabta (aycabta .), 12/12/2017 12:19 PM

View differences:

ext/ripper/lib/ripper/lexer.rb
54 54
      def ==(i) super or to_int == i end
55 55
      def &(i) self.class.new(to_int & i) end
56 56
      def |(i) self.class.new(to_int & i) end
57
      def allbits?(i) to_int.allbits?(i) end
58
      def anybits?(i) to_int.anybits?(i) end
59
      def nobits?(i) to_int.nobits?(i) end
57 60
    end
58 61

  
59 62
    Elem = Struct.new(:pos, :event, :tok, :state) do