This commit is contained in:
Ryan Cavanaugh
2017-06-06 16:08:24 -07:00
parent f395bc1d83
commit f739f68231
2 changed files with 2 additions and 2 deletions

View File

@@ -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[];

View File

@@ -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,