     i2 = typeDef.indexOf(')')
     return typeDef.substring(i1+1,i2)
 
-  getClassScope: (editor, bufferPosition, currScopes) ->
+  getClassScope: (line, currScopes) ->
     typeDerefCheck = /%/i
     objBreakReg = /[\/\-(.,+*<>=$:]/ig
     parenRepReg = /\((.+)\)/ig
-    line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
     #
     unless line.match(typeDerefCheck)?
       return null

    suggestions = []
    if prefix
      prefixLower = prefix.toLowerCase()
      lineContext = @getLineContext(editor, bufferPosition)
      if lineContext == 2
        return completions
      if lineContext == 1
        suggestions = @getUseSuggestion(editor, bufferPosition, prefixLower)
        return @buildCompletionList(suggestions, lineContext)
      lineScopes = @getLineScopes(editor, bufferPosition)
      cursorScope = @getClassScope(editor, bufferPosition, lineScopes)
      if cursorScope?
        suggestions = @addChildren(cursorScope, suggestions, prefixLower, [])
        return @buildCompletionList(suggestions)

      return @modFiles[fileRef]+":"+lineRef.toString()
    return null

  getUseSuggestion: (line, prefixLower) ->
    useRegex = /^[ \t]*use[ \t]+/i
    wordRegex = /[a-z0-9_]+/gi
    suggestions = []
    if line.match(useRegex)?
      unless prefixLower.match(wordRegex)?
        prefixLower = ""
