class SyntaxTree::Index::ISeqBackend

def method_definition(nesting, name, location, file_comments)

def method_definition(nesting, name, location, file_comments)
  comments = EntryComments.new(file_comments, location)
  if nesting.last == [:singletonclass]
    SingletonMethodDefinition.new(
      nesting[0...-1],
      name,
      location,
      comments
    )
  else
    MethodDefinition.new(nesting, name, location, comments)
  end
end