Class: Bullematic::AST::Finder::QueryLocation

Inherits:
Struct
  • Object
show all
Defined in:
lib/bullematic/ast/finder.rb,
sig/generated/bullematic/ast/finder.rbs

Overview

RBS:

  • type query_location = { node: untyped, location: untyped, receiver: untyped, method_name: Symbol, target_name: Symbol? }

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



14
15
16
# File 'lib/bullematic/ast/finder.rb', line 14

def location
  @location
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



14
15
16
# File 'lib/bullematic/ast/finder.rb', line 14

def method_name
  @method_name
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



14
15
16
# File 'lib/bullematic/ast/finder.rb', line 14

def node
  @node
end

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



14
15
16
# File 'lib/bullematic/ast/finder.rb', line 14

def receiver
  @receiver
end

#target_nameObject

Returns the value of attribute target_name

Returns:

  • (Object)

    the current value of target_name



14
15
16
# File 'lib/bullematic/ast/finder.rb', line 14

def target_name
  @target_name
end

Class Method Details

.new(node:, location:, receiver:, method_name:, target_name:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(node:, location:, receiver:, method_name:, target_name:) ⇒ instance

    Parameters:

    • node: (Object)
    • location: (Object)
    • receiver: (Object)
    • method_name: (Object)
    • target_name: (Object)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?node: untyped, ?location: untyped, ?receiver: untyped, ?method_name: untyped, ?target_name: untyped })

    Returns:

    • (instance)


21
22
# File 'sig/generated/bullematic/ast/finder.rbs', line 21

def self.new: (?node: untyped, ?location: untyped, ?receiver: untyped, ?method_name: untyped, ?target_name: untyped) -> instance
| ({ ?node: untyped, ?location: untyped, ?receiver: untyped, ?method_name: untyped, ?target_name: untyped }) -> instance