Navigation Menu

Skip to content

Commit

Permalink
When the inline method is call a query has to be done to the user.
Browse files Browse the repository at this point in the history
Fix #10208
  • Loading branch information
tesonep committed Nov 18, 2021
1 parent f1cf30e commit 4b7a68f
Showing 1 changed file with 9 additions and 4 deletions.
Expand Up @@ -17,10 +17,15 @@ SycInlineMethodCommand class >> canBeExecutedInContext: aSourceCodeContext [
{ #category : #execution }
SycInlineMethodCommand >> asRefactorings [

^ {RBInlineMethodRefactoring
inline: sourceNode sourceInterval
inMethod: method selector
forClass: method origin}
^ { ((RBInlineMethodRefactoring
inline: sourceNode sourceInterval
inMethod: method selector
forClass: method origin)
setOption: #inlineExpression toUse: [ :ref :aString |
self confirm:
('Do you want to inline the expression ''<1s>'' in the current method?'
expandMacrosWith: aString) ];
yourself) }
]

{ #category : #accessing }
Expand Down

0 comments on commit 4b7a68f

Please sign in to comment.