Skip to content

Commit

Permalink
Merge pull request #14889 from jecisc/monticello/move-isTraitDefiniti…
Browse files Browse the repository at this point in the history
…on-to-Pharo

Move #isTraitDefinition to Pharo from Tonel
  • Loading branch information
MarcusDenker authored Oct 6, 2023
2 parents e41f605 + 410a296 commit 165421b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Monticello/MCClassTraitDefinition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ MCClassTraitDefinition >> isClassDefinition [
^ true
]

{ #category : 'testing' }
MCClassTraitDefinition >> isTraitDefinition [
^ true
]

{ #category : 'installing' }
MCClassTraitDefinition >> load [
self class compiler evaluate: self definitionString
Expand Down
5 changes: 5 additions & 0 deletions src/Monticello/MCDefinition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ MCDefinition >> isScriptDefinition [
^false
]

{ #category : 'testing' }
MCDefinition >> isTraitDefinition [
^ false
]

{ #category : 'installing' }
MCDefinition >> load [

Expand Down
5 changes: 5 additions & 0 deletions src/Monticello/MCTraitDefinition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ MCTraitDefinition >> hash [
^ (name hash bitXor: traitComposition hash) bitXor: self category hash
]

{ #category : 'testing' }
MCTraitDefinition >> isTraitDefinition [
^ true
]

{ #category : 'printing' }
MCTraitDefinition >> printClassDefinitionOn: stream [

Expand Down

0 comments on commit 165421b

Please sign in to comment.