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 {
117117 }
118118
119119 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 ) ) {
121121 diags . push ( createDiagnosticForNode (
122122 ! node . name && isVariableDeclaration ( node . parent ) && isIdentifier ( node . parent . name ) ? node . parent . name : node ,
123123 Diagnostics . This_may_be_converted_to_an_async_function ) ) ;
124124 }
125125 }
126126
127- function isConvertableFunction ( node : FunctionLikeDeclaration , checker : TypeChecker ) {
127+ function isConvertibleFunction ( node : FunctionLikeDeclaration , checker : TypeChecker ) {
128128 return ! isAsyncFunction ( node ) &&
129129 node . body &&
130130 isBlock ( node . body ) &&
@@ -179,7 +179,7 @@ namespace ts {
179179 case SyntaxKind . FunctionDeclaration :
180180 case SyntaxKind . FunctionExpression :
181181 case SyntaxKind . ArrowFunction :
182- if ( isConvertableFunction ( arg as FunctionLikeDeclaration , checker ) ) {
182+ if ( isConvertibleFunction ( arg as FunctionLikeDeclaration , checker ) ) {
183183 visitedNestedConvertibleFunctions . set ( getKeyFromNode ( arg as FunctionLikeDeclaration ) , true ) ;
184184 }
185185 /* falls through */
You can’t perform that action at this time.
0 commit comments