 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-{View} = require 'atom'
+{$, Point, Range, View} = require 'atom'
 
 # This class listens to editor events, forwarding state, and updating a model. In
 # effect, this is kind of a View/Controller in classical MVC.

      # TODO
      # Figure out change location from cursor
      rawTokens = @getTokensForCursorContext()
      trailer = @makeMostImportantTokenList(rawTokens)
      console.log {trailer}

      # Set off prediction request
      # Display predictions


    # TODO: onDidChangePath will probably be useful later for telling the

# It is primarily concerned with getting surrounding token context, receiving
# predictions, and forwarding display of predictions (through [INSERT CLASS
# HERE]).

# Use at most this many tokens to form predictions.
NGRAM_ORDER = 3

# Note: Heavily based on: atom/autocomplete, (C) GitHub Inc. 2014
# https://github.com/atom/autocomplete/blob/master/lib/autocomplete-view.coffee
