mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 05:32:14 -05:00
Tidy up
This commit is contained in:
@@ -415,7 +415,7 @@ namespace ts.server.protocol {
|
||||
|
||||
/**
|
||||
* Response is a list of available refactorings.
|
||||
* Each refactoring exposes 1 or more "Actions"; a user selects one action to invoke a refactoring
|
||||
* Each refactoring exposes one or more "Actions"; a user selects one action to invoke a refactoring
|
||||
*/
|
||||
export interface GetApplicableRefactorsResponse extends Response {
|
||||
body?: ApplicableRefactorInfo[];
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace ts.refactor {
|
||||
symbol = (symbol.valueDeclaration as VariableDeclaration).initializer.symbol;
|
||||
}
|
||||
|
||||
if (symbol && symbol.flags & SymbolFlags.Function && symbol.members && symbol.members.size > 0) {
|
||||
if (symbol && (symbol.flags & SymbolFlags.Function) && symbol.members && (symbol.members.size > 0)) {
|
||||
return [
|
||||
{
|
||||
name: convertFunctionToES6Class.name,
|
||||
|
||||
Reference in New Issue
Block a user