2016-08-22 15:32:31 +00:00
|
|
|
<?php
|
|
|
|
|
2016-08-22 20:40:16 +00:00
|
|
|
namespace LanguageServer\Protocol;
|
2016-08-22 15:32:31 +00:00
|
|
|
|
|
|
|
/**
|
2016-08-22 20:40:16 +00:00
|
|
|
* Represents a collection of completion items to be presented in
|
2016-08-22 15:32:31 +00:00
|
|
|
* the editor.
|
|
|
|
*/
|
|
|
|
class CompletionList
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* This list it not complete. Further typing should result in recomputing this
|
|
|
|
* list.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $isIncomplete;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The completion items.
|
|
|
|
*
|
|
|
|
* @var CompletionItem[]
|
|
|
|
*/
|
|
|
|
public $items;
|
2016-11-30 21:23:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param CompletionItem[] $items The completion items.
|
|
|
|
* @param bool $isIncomplete This list it not complete. Further typing should result in recomputing this list.
|
|
|
|
*/
|
|
|
|
public function __construct(array $items = [], bool $isIncomplete = false)
|
|
|
|
{
|
|
|
|
$this->items = $items;
|
|
|
|
$this->isIncomplete = $isIncomplete;
|
|
|
|
}
|
2016-08-22 15:32:31 +00:00
|
|
|
}
|