Sha256: 4d99ad3588a0405d5487d8dcda633d99048b5232c99f0abf1d44687c1b0275eb

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

module ToSource
  class Emitter

    # Emitter for various access nodes
    class Access < self

      handle(Rubinius::AST::ConstantAccess)
      handle(Rubinius::AST::InstanceVariableAccess)
      handle(Rubinius::AST::LocalVariableAccess)
      handle(Rubinius::AST::ClassVariableAccess)
      handle(Rubinius::AST::GlobalVariableAccess)
      handle(Rubinius::AST::PatternVariable)

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      # 
      def dispatch
        emit(node.name)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
to_source-0.2.20 lib/to_source/emitter/access.rb
to_source-0.2.19 lib/to_source/emitter/access.rb
to_source-0.2.18 lib/to_source/emitter/access.rb
to_source-0.2.17 lib/to_source/emitter/access.rb
to_source-0.2.16 lib/to_source/emitter/access.rb