     _.extend {
       name: classEntity.name
       filename: @current.filename
+      srcUrl: @linkForRow(classEntity.range[0][0])
       sections: filteredSections
       classMethods: classMethods
       instanceMethods: instanceMethods

  objectFromPosition: (position) ->
    @current.objects[position[0]][position[1]]

  linkForPosition: (position) ->
    return null unless @current.package.repository?

    repo = @current.package.repository.replace(/\.git$/i, '')
    filePath = path.normalize "/blob/v#{@current.package.version}/#{@current.filename}"
    "#{repo}#{filePath}#L#{position[0] + 1}"

module.exports =
  digest: (metadata) ->

    sections

  sectionNameForRow: (sections, row) ->
    return null unless sections.length
    for i in [sections.length-1..0]
      section = sections[i]
      return section.name if row > section.startRow
    null

