Class: CodeTools::AST::SendPrimitive
- Inherits:
-
SendWithArguments
- Object
- Node
- Send
- SendWithArguments
- CodeTools::AST::SendPrimitive
- Defined in:
- lib/rubinius/code/ast/transforms.rb
Overview
Handles Rubinius.primitive
Instance Attribute Summary
Attributes inherited from SendWithArguments
Attributes inherited from Send
#block, #name, #privately, #receiver, #variable, #vcall_style
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SendWithArguments
Methods inherited from Send
#arguments_sexp, #check_local_reference, #defined, #initialize, #receiver_sexp, #sexp_name, #to_sexp, #value_defined
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, #initialize, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
This class inherits a constructor from CodeTools::AST::SendWithArguments
Class Method Details
.match?(line, receiver, name, arguments, privately) ⇒ Boolean
69 70 71 |
# File 'lib/rubinius/code/ast/transforms.rb', line 69 def self.match?(line, receiver, name, arguments, privately) match_send? receiver, :Rubinius, name, :primitive end |
Instance Method Details
#bytecode(g) ⇒ Object
73 74 75 |
# File 'lib/rubinius/code/ast/transforms.rb', line 73 def bytecode(g) g.send_primitive @arguments.array.first.value end |