     marker
 
   ###
-  Section: Private
+  Section: Internal
   ###
 
   addMarker: (id, range, params) ->

      result[id].range = Range.deserialize(markerSnapshot.range)
    result

  constructor: (@delegate, @id) ->
    @index = new MarkerIndex
    @markersById = {}

    @nextMarkerId = 0
    @destroyed = false

  # Public: Remove the {MarkerLayer} from the {TextBuffer}
  destroy: ->
    @destroyed = true
    @delegate.markerLayerDestroyed(this)
