File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,14 @@ namespace ts {
117
117
}
118
118
119
119
function addConvertToAsyncFunctionDiagnostics ( node : FunctionLikeDeclaration , checker : TypeChecker , diags : Push < DiagnosticWithLocation > ) : void {
120
- if ( ! visitedNestedConvertibleFunctions . has ( getKeyFromNode ( node ) ) && isConvertableFunction ( node , checker ) ) {
120
+ if ( ! visitedNestedConvertibleFunctions . has ( getKeyFromNode ( node ) ) && isConvertibleFunction ( node , checker ) ) {
121
121
diags . push ( createDiagnosticForNode (
122
122
! node . name && isVariableDeclaration ( node . parent ) && isIdentifier ( node . parent . name ) ? node . parent . name : node ,
123
123
Diagnostics . This_may_be_converted_to_an_async_function ) ) ;
124
124
}
125
125
}
126
126
127
- function isConvertableFunction ( node : FunctionLikeDeclaration , checker : TypeChecker ) {
127
+ function isConvertibleFunction ( node : FunctionLikeDeclaration , checker : TypeChecker ) {
128
128
return ! isAsyncFunction ( node ) &&
129
129
node . body &&
130
130
isBlock ( node . body ) &&
@@ -179,7 +179,7 @@ namespace ts {
179
179
case SyntaxKind . FunctionDeclaration :
180
180
case SyntaxKind . FunctionExpression :
181
181
case SyntaxKind . ArrowFunction :
182
- if ( isConvertableFunction ( arg as FunctionLikeDeclaration , checker ) ) {
182
+ if ( isConvertibleFunction ( arg as FunctionLikeDeclaration , checker ) ) {
183
183
visitedNestedConvertibleFunctions . set ( getKeyFromNode ( arg as FunctionLikeDeclaration ) , true ) ;
184
184
}
185
185
/* falls through */
You can’t perform that action at this time.
0 commit comments