Sha256: f791c7b94b97e9a3ddd34ac320647f33e3fa65ad1b4d9e2be54c074ebaeecf88
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
Contents
module Unparser class Emitter class Send # Emitter for send to index references class Index < self private # Perform dispatch # # @return [undefined] # # @api private # def dispatch emit_receiver emit_arguments end # Emit receiver # # @return [undefined] # # @api private # def emit_receiver visit_terminated(first_child) end # Emitter for index reference nodes class Reference < self private # Emit arguments # # @return [undefined] # # @api private # def emit_arguments parentheses(*INDEX_PARENS) do delimited(arguments) end end end # Reference # Emitter for assign to index nodes class Assign < self # Emit arguments # # @return [undefined] # # @api private # def emit_arguments index, *assignment = arguments parentheses(*INDEX_PARENS) do delimited([index]) end return if assignment.empty? # mlhs write(WS, T_ASN, WS) delimited(assignment) end end # Assign end # Index end # Send end # Emitter end # Unparser
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.1.5 | lib/unparser/emitter/send/index.rb |
unparser-0.1.4 | lib/unparser/emitter/send/index.rb |
unparser-0.1.3 | lib/unparser/emitter/send/index.rb |