Method: GraphQL::StaticValidation::VariablesAreUsedAndDefined#initialize

Defined in:
lib/graphql/static_validation/rules/variables_are_used_and_defined.rb

#initializeObject



26
27
28
29
30
31
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 26

def initialize(*)
  super
  @variable_usages_for_context = Hash.new {|hash, key| hash[key] = Hash.new {|h, k| h[k] = VariableUsage.new } }
  @spreads_for_context = Hash.new {|hash, key| hash[key] = [] }
  @variable_context_stack = []
end