Class: Spoom::Deadcode::Plugins::GraphQL

Inherits:
Base
  • Object
show all
Defined in:
lib/spoom/deadcode/plugins/graphql.rb

Constant Summary collapse

FIELD_SYMBOL_OPTION_KEYS =

: Array

["resolver_method", "method"].freeze
ARGUMENT_SYMBOL_OPTION_KEYS =

: Array

["prepare", "method"].freeze

Instance Attribute Summary

Attributes inherited from Base

#index

Instance Method Summary collapse

Methods inherited from Base

ignore_classes_inheriting_from, ignore_classes_named, ignore_constants_named, ignore_methods_named, ignore_modules_named, #initialize, #internal_on_define_accessor, #internal_on_define_class, #internal_on_define_constant, #internal_on_define_method, #internal_on_define_module, #on_define_accessor, #on_define_class, #on_define_constant, #on_define_method, #on_define_module

Constructor Details

This class inherits a constructor from Spoom::Deadcode::Plugins::Base

Instance Method Details

#on_send(send) ⇒ Object

: (Send send) -> void



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/spoom/deadcode/plugins/graphql.rb', line 30

def on_send(send)
  return unless send.recv.nil?

  case send.name
  when "field"
    on_field(send)
  when "argument"
    on_argument(send)
  when "builds"
    on_builds(send)
  end
end