       line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
       unless line.endsWith('%')
         return completions
+      fullLine = @getFullLine(editor, bufferPosition)
       lineScopes = @getLineScopes(editor, bufferPosition)
-      cursorScope = @getClassScope(editor, bufferPosition, lineScopes)
+      cursorScope = @getClassScope(fullLine, lineScopes)
       if cursorScope?
         suggestions = @addChildren(cursorScope, suggestions, prefixLower, [])
         return @buildCompletionList(suggestions)

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

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

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