Class Nodes.CallTargetNode

java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.CallTargetNode
Enclosing class:
Nodes

public static final class Nodes.CallTargetNode extends Nodes.Node
 Represents assigning to a method call.

     foo.bar, = 1
     ^^^^^^^

     begin
     rescue => foo.bar
               ^^^^^^^
     end

     for foo.bar in baz do end
         ^^^^^^^
 
  • Field Details

    • flags

      public final short flags
    • receiver

      public final Nodes.Node receiver
       The object that the method is being called on. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
      
           foo.bar = 1
           ^^^
       
    • name

      public final org.jruby.RubySymbol name
       Represents the name of the method being called.
      
           foo.bar = 1 # name `:foo`
           ^^^
       
  • Constructor Details

    • CallTargetNode

      public CallTargetNode(int startOffset, int length, short flags, Nodes.Node receiver, org.jruby.RubySymbol name)
  • Method Details