 TypeView = require './atom-ternjs-type-view'
-{Point} = require 'atom'
 
 module.exports =
 class Type

        type = data.type.substring(data.type.indexOf('(') + 1, data.type.lastIndexOf(')'))
        matches = type.match(@manager.regExp.params)
        if matches?[paramPosition]
          if paramPosition > 0
            offsetFix = ' '
          else
            offsetFix = ''
          data.type = data.type.replace(matches[paramPosition], offsetFix + '<span class=\"current-param\">' + matches[paramPosition] + '</span>')
        @view.setData({
          word: data.exprName,
          label: data.type

  manager: null
  overlayDecoration: null
  marker: null

  constructor: (manager, state = {}) ->
    @manager = manager
