Sha256: e35fdb1544b0cdb3a3771a7d9732573243d08320ad73976e4716e0296bd5e2a7

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

module Unparser
  class Emitter
    # Emitter for in pattern nodes
    class MatchPattern < self

      handle :match_pattern
      handle :match_pattern_p

      children :target, :pattern

    private

      def dispatch
        visit(target)
        write(' in ')
        visit(pattern)
      end
    end # InPattern
  end # Emitter
end # Unparser

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unparser-0.6.3 lib/unparser/emitter/match_pattern.rb
unparser-0.6.2 lib/unparser/emitter/match_pattern.rb
unparser-0.6.1 lib/unparser/emitter/match_pattern.rb
unparser-0.6.0 lib/unparser/emitter/match_pattern.rb
unparser-0.5.7 lib/unparser/emitter/match_pattern.rb
unparser-0.5.6 lib/unparser/emitter/match_pattern.rb