Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Oct 24, 2023
1 parent 3ea6e59 commit b5aec84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/NewTools-Inspector-Extensions/Pragma.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ Extension { #name : 'Pragma' }
{ #category : '*NewTools-Inspector-Extensions' }
Pragma >> inspectionSourceCodeMethod [
<inspectorPresentationOrder: 30 title: 'Method'>

| interval |

interval := self sourceNode sourceInterval.
^ SpCodePresenter new
beForMethod: method ast;
text: (method sourceCode);
text: method sourceCode;
addTextSegmentDecoration: (SpTextPresenterDecorator forHighlight
interval: (self sourceNode sourceInterval first to: self sourceNode sourceInterval last + 1);
interval: (interval first to: interval last + 1);
yourself);
yourself
]

0 comments on commit b5aec84

Please sign in to comment.