Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432354
TextDocument.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TextDocument.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\LanguageServer\Client
;
use
Phan\LanguageServer\ClientHandler
;
use
Phan\LanguageServer\Protocol\Diagnostic
;
use
Sabre\Event\Promise
;
/**
* Provides method handlers for all textDocument/* methods
*
* Source: https://github.com/felixfbecker/php-language-server/tree/master/src/Protocol/TextDocument.php
* See ../../../../LICENSE.LANGUAGE_SERVER
*/
class
TextDocument
{
/**
* Used to send `textDocument/*` notifications and requests to the language server client of the Phan Language Server.
*
* @var ClientHandler
*/
private
$handler
;
public
function
__construct
(
ClientHandler
$handler
)
{
$this
->
handler
=
$handler
;
}
/**
* Diagnostics notification are sent from the server to the client to signal results of validation runs.
*
* @param string $uri
* @param Diagnostic[] $diagnostics
* @return Promise <void>
*/
public
function
publishDiagnostics
(
string
$uri
,
array
$diagnostics
):
Promise
{
return
$this
->
handler
->
notify
(
'textDocument/publishDiagnostics'
,
[
'uri'
=>
$uri
,
'diagnostics'
=>
$diagnostics
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:40 (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
96/cd/19b09efc17edafb87e5030092dc0
Default Alt Text
TextDocument.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment