Skip to content

Commit

Permalink
Adding 3 more deprecations to this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
olekscode committed Feb 4, 2021
1 parent 1702a4a commit b760bdf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Kernel/Metaclass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ Metaclass >> classVariables [
ifNotNil: [ :class | class classVariables ]
]

{ #category : #generated }
Metaclass >> definition [

"Refer to the comment in ClassDescription|definition."

self
deprecated: 'Use #definitionString instead'
transformWith: '`@rec definition' -> '`@rec definitionString'.
^ self definitionString
]

{ #category : #fileout }
Metaclass >> definitionStringFor: aConfiguredPrinter [

Expand Down
9 changes: 9 additions & 0 deletions src/TraitsV2/Trait.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,15 @@ Trait >> classTrait [
^ self class
]

{ #category : #generated }
Trait >> definition [

self
deprecated: 'Use #definitionString instead'
transformWith: '`@rec definition' -> '`@rec definitionString'.
^ self definitionString
]

{ #category : #fileout }
Trait >> definitionStringFor: aConfiguredPrinter [

Expand Down
11 changes: 11 additions & 0 deletions src/TraitsV2/TraitedMetaclass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ TraitedMetaclass >> baseLocalMethods: anObject [
baseLocalMethods := anObject
]

{ #category : #generated }
TraitedMetaclass >> definition [

"Refer to the comment in ClassDescription|definition."

self
deprecated: 'Use #definitionString instead'
transformWith: '`@rec definition' -> '`@rec definitionString'.
^ self definitionString
]

{ #category : #fileout }
TraitedMetaclass >> definitionStringFor: aConfiguredPrinter [

Expand Down

0 comments on commit b760bdf

Please sign in to comment.