class GraphQL::StaticValidation::TypeStack::FragmentWithTypeStrategy

def pop(stack, node)

def pop(stack, node)
  stack.object_types.pop
  stack.path.pop
end

def push(stack, node)

def push(stack, node)
  object_type = if node.type
    stack.schema.types.fetch(node.type, nil)
  else
    stack.object_types.last
  end
  if !object_type.nil?
    object_type = object_type.unwrap
  end
  stack.object_types.push(object_type)
  push_path_member(stack, node)
end