1
0
Fork 0

Remove unused use statements

pull/67/head
Michal Niewrzal 2016-10-11 15:28:53 +02:00
parent 15e004fb9b
commit 559f36f99c
8 changed files with 8 additions and 36 deletions

View File

@ -4,10 +4,8 @@ declare(strict_types = 1);
namespace LanguageServer\Client; namespace LanguageServer\Client;
use AdvancedJsonRpc\Notification as NotificationBody; use AdvancedJsonRpc\Notification as NotificationBody;
use PhpParser\{Error, Comment, Node, ParserFactory, NodeTraverser, Lexer};
use PhpParser\NodeVisitor\NameResolver;
use LanguageServer\ProtocolWriter; use LanguageServer\ProtocolWriter;
use LanguageServer\Protocol\{TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier, Message}; use LanguageServer\Protocol\Message;
/** /**
* Provides method handlers for all textDocument/* methods * Provides method handlers for all textDocument/* methods

View File

@ -4,10 +4,8 @@ declare(strict_types = 1);
namespace LanguageServer\Client; namespace LanguageServer\Client;
use AdvancedJsonRpc\Notification as NotificationBody; use AdvancedJsonRpc\Notification as NotificationBody;
use PhpParser\{Error, Comment, Node, ParserFactory, NodeTraverser, Lexer};
use PhpParser\NodeVisitor\NameResolver;
use LanguageServer\ProtocolWriter; use LanguageServer\ProtocolWriter;
use LanguageServer\Protocol\{TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier, Message}; use LanguageServer\Protocol\Message;
/** /**
* Provides method handlers for all window/* methods * Provides method handlers for all window/* methods

View File

@ -4,7 +4,6 @@ declare(strict_types = 1);
namespace LanguageServer\NodeVisitor; namespace LanguageServer\NodeVisitor;
use PhpParser\{NodeVisitorAbstract, Node}; use PhpParser\{NodeVisitorAbstract, Node};
use LanguageServer\Protocol\{SymbolInformation, SymbolKind, Range, Position, Location};
/** /**
* Decorates all nodes with parent and sibling references (similar to DOM nodes) * Decorates all nodes with parent and sibling references (similar to DOM nodes)

View File

@ -3,13 +3,10 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Protocol\{Diagnostic, DiagnosticSeverity, Range, Position, SymbolInformation, SymbolKind, TextEdit, Location}; use LanguageServer\Protocol\{Diagnostic, DiagnosticSeverity, Range, Position, TextEdit};
use LanguageServer\NodeVisitor\{NodeAtPositionFinder, ReferencesAdder, DefinitionCollector, ColumnCalculator}; use LanguageServer\NodeVisitor\{NodeAtPositionFinder, ReferencesAdder, DefinitionCollector, ColumnCalculator};
use PhpParser\{Error, Comment, Node, ParserFactory, NodeTraverser, Lexer, Parser}; use PhpParser\{Error, Node, NodeTraverser, Parser};
use PhpParser\PrettyPrinter\Standard as PrettyPrinter;
use PhpParser\NodeVisitor\NameResolver; use PhpParser\NodeVisitor\NameResolver;
use Exception;
use function LanguageServer\uriToPath;
class PhpDocument class PhpDocument
{ {

View File

@ -3,9 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use PhpParser\{Error, Comment, Node, ParserFactory, NodeTraverser, Lexer}; use PhpParser\{ParserFactory, Lexer};
use PhpParser\PrettyPrinter\Standard as PrettyPrinter;
use PhpParser\NodeVisitor\NameResolver;
class Project class Project
{ {

View File

@ -5,7 +5,6 @@ namespace LanguageServer;
use LanguageServer\Protocol\Message; use LanguageServer\Protocol\Message;
use AdvancedJsonRpc\Message as MessageBody; use AdvancedJsonRpc\Message as MessageBody;
use Sabre\Event\EventEmitter;
use Sabre\Event\Loop; use Sabre\Event\Loop;
abstract class ParsingMode abstract class ParsingMode

View File

@ -3,14 +3,11 @@ declare(strict_types = 1);
namespace LanguageServer\Server; namespace LanguageServer\Server;
use LanguageServer\{LanguageClient, ColumnCalculator, Project}; use LanguageServer\{LanguageClient, Project};
use LanguageServer\Protocol\{ use LanguageServer\Protocol\{
TextDocumentItem, TextDocumentItem,
TextDocumentIdentifier, TextDocumentIdentifier,
VersionedTextDocumentIdentifier, VersionedTextDocumentIdentifier,
Diagnostic,
DiagnosticSeverity,
Range,
Position, Position,
FormattingOptions, FormattingOptions,
TextEdit, TextEdit,

View File

@ -3,22 +3,8 @@ declare(strict_types = 1);
namespace LanguageServer\Server; namespace LanguageServer\Server;
use PhpParser\{Error, Comment, Node, ParserFactory, NodeTraverser, Lexer}; use LanguageServer\{LanguageClient, Project};
use PhpParser\PrettyPrinter\Standard as PrettyPrinter; use LanguageServer\Protocol\SymbolInformation;
use PhpParser\NodeVisitor\NameResolver;
use LanguageServer\{LanguageClient, ColumnCalculator, Project};
use LanguageServer\Protocol\{
TextDocumentItem,
TextDocumentIdentifier,
VersionedTextDocumentIdentifier,
Diagnostic,
DiagnosticSeverity,
Range,
Position,
FormattingOptions,
TextEdit,
SymbolInformation
};
/** /**
* Provides method handlers for all workspace/* methods * Provides method handlers for all workspace/* methods