@@ -15,8 +15,9 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
15
15
} ;
16
16
registerRefactor ( refactorName , {
17
17
kinds : [ removeBracesAction . kind ] ,
18
- getEditsForAction,
19
- getAvailableActions } ) ;
18
+ getEditsForAction : getRefactorEditsToRemoveFunctionBraces ,
19
+ getAvailableActions : getRefactorActionsToRemoveFunctionBraces
20
+ } ) ;
20
21
21
22
interface FunctionBracesInfo {
22
23
func : ArrowFunction ;
@@ -25,7 +26,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
25
26
addBraces : boolean ;
26
27
}
27
28
28
- function getAvailableActions ( context : RefactorContext ) : readonly ApplicableRefactorInfo [ ] {
29
+ function getRefactorActionsToRemoveFunctionBraces ( context : RefactorContext ) : readonly ApplicableRefactorInfo [ ] {
29
30
const { file, startPosition, triggerReason } = context ;
30
31
const info = getConvertibleArrowFunctionAtPosition ( file , startPosition , triggerReason === "invoked" ) ;
31
32
if ( ! info ) return emptyArray ;
@@ -54,7 +55,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
54
55
return emptyArray ;
55
56
}
56
57
57
- function getEditsForAction ( context : RefactorContext , actionName : string ) : RefactorEditInfo | undefined {
58
+ function getRefactorEditsToRemoveFunctionBraces ( context : RefactorContext , actionName : string ) : RefactorEditInfo | undefined {
58
59
const { file, startPosition } = context ;
59
60
const info = getConvertibleArrowFunctionAtPosition ( file , startPosition ) ;
60
61
Debug . assert ( info && ! isRefactorErrorInfo ( info ) , "Expected applicable refactor info" ) ;
0 commit comments