Sha256: 228e3d0a4e8b9bfbd30fbcbf45b669fcd3aac70a6babc6ae74415c5531aa49ee

Contents?: true

Size: 538 Bytes

Versions: 70

Compression:

Stored size: 538 Bytes

Contents

module Redcar
  class Declarations
    class CompletionSource
      def initialize(_, project)
        @project = project
      end
      
      def alternatives(prefix)
        if @project
          word_list = AutoCompleter::WordList.new
          tags = Declarations.tags_for_path(Declarations.file_path(@project))
          tags.keys.each do |tag| 
            if tag[0..(prefix.length-1)] == prefix
              word_list.add_word(tag, 10000)
            end
          end
          word_list
        end
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
redcar-0.13 plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.5dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.4dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.3dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.2dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.1dev plugins/declarations/lib/declarations/completion_source.rb
redcar-0.12.1 plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.13.0dev plugins/declarations/lib/declarations/completion_source.rb
redcar-0.12 plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.27dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.26dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.25dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.24dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.23dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.22dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.21dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.20dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.19dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.18dev plugins/declarations/lib/declarations/completion_source.rb
redcar-dev-0.12.17dev plugins/declarations/lib/declarations/completion_source.rb