 class SingleLineSearchCallbackArgument
   lineTextOffset: 0
 
-  Object.defineProperty SingleLineSearchCallbackArgument.prototype, 'range',
+  Object.defineProperty this.prototype, 'range',
     get: ->
       @computedRange ?= Range(
         Point(@row, @lineOffset + @match.index),


    set: (@computedRange) ->

  Object.defineProperty SingleLineSearchCallbackArgument.prototype, 'lineText',
    get: -> @buffer.lineForRow(@row)

  constructor: (@buffer, @row, @match, @lineOffset) ->

class MultiLineSearchCallbackArgument
  lineTextOffset: 0

  Object.defineProperty this.prototype, 'range',
    get: ->
      return @computedRange if @computedRange?

