@@ -15,8 +15,9 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
1515 } ;
1616 registerRefactor ( refactorName , {
1717 kinds : [ removeBracesAction . kind ] ,
18- getEditsForAction,
19- getAvailableActions } ) ;
18+ getEditsForAction : getRefactorEditsToRemoveFunctionBraces ,
19+ getAvailableActions : getRefactorActionsToRemoveFunctionBraces
20+ } ) ;
2021
2122 interface FunctionBracesInfo {
2223 func : ArrowFunction ;
@@ -25,7 +26,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
2526 addBraces : boolean ;
2627 }
2728
28- function getAvailableActions ( context : RefactorContext ) : readonly ApplicableRefactorInfo [ ] {
29+ function getRefactorActionsToRemoveFunctionBraces ( context : RefactorContext ) : readonly ApplicableRefactorInfo [ ] {
2930 const { file, startPosition, triggerReason } = context ;
3031 const info = getConvertibleArrowFunctionAtPosition ( file , startPosition , triggerReason === "invoked" ) ;
3132 if ( ! info ) return emptyArray ;
@@ -54,7 +55,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction {
5455 return emptyArray ;
5556 }
5657
57- function getEditsForAction ( context : RefactorContext , actionName : string ) : RefactorEditInfo | undefined {
58+ function getRefactorEditsToRemoveFunctionBraces ( context : RefactorContext , actionName : string ) : RefactorEditInfo | undefined {
5859 const { file, startPosition } = context ;
5960 const info = getConvertibleArrowFunctionAtPosition ( file , startPosition ) ;
6061 Debug . assert ( info && ! isRefactorErrorInfo ( info ) , "Expected applicable refactor info" ) ;
0 commit comments