Sha256: 9d5118cef038a88ee533cbd57d98e5eea864a9a93c2f9cf828502b89b9527777

Contents?: true

Size: 436 Bytes

Versions: 16

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

module Unparser
  class Emitter
    # Emitter for alias nodes
    class Alias < self

      handle :alias

      children :target, :source

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_ALIAS, WS)
        visit(target)
        write(WS)
        visit(source)
      end

    end # Alias
  end # Emitter
end # Unparser

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
unparser-0.2.4 lib/unparser/emitter/alias.rb
unparser-0.2.3 lib/unparser/emitter/alias.rb
unparser-0.2.2 lib/unparser/emitter/alias.rb
unparser-0.2.1 lib/unparser/emitter/alias.rb
unparser-0.2.0 lib/unparser/emitter/alias.rb
unparser-0.1.16 lib/unparser/emitter/alias.rb
unparser-0.1.15 lib/unparser/emitter/alias.rb
unparser-0.1.14 lib/unparser/emitter/alias.rb
unparser-0.1.13 lib/unparser/emitter/alias.rb
unparser-0.1.12 lib/unparser/emitter/alias.rb
unparser-0.1.11 lib/unparser/emitter/alias.rb
unparser-0.1.10 lib/unparser/emitter/alias.rb
unparser-0.1.9 lib/unparser/emitter/alias.rb
unparser-0.1.8 lib/unparser/emitter/alias.rb
unparser-0.1.7 lib/unparser/emitter/alias.rb
unparser-0.1.6 lib/unparser/emitter/alias.rb