Skip to content

Commit 08b6c3b

Browse files
Merge pull request #743 from moosetechnology/prettier-740
Streamline `mooseNameOn:`
2 parents 7243b0c + e114503 commit 08b6c3b

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

src/Famix-Java-Entities/FamixJavaClass.class.st

+4-5
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,14 @@ FamixJavaClass >> methodsWithoutSutbsAndConstructors [
173173
each isStub not and: [each isConstructor not]]) asSet
174174
]
175175

176-
{ #category : #'as yet unclassified' }
176+
{ #category : #printing }
177177
FamixJavaClass >> mooseNameOn: aStream [
178178

179179
self typeContainer ifNotNil: [ :parent |
180-
| separator |
181180
parent mooseNameOn: aStream.
182-
separator := '::'.
183-
self isInnerClass ifTrue: [ separator := '$' ].
184-
aStream nextPutAll: separator ].
181+
self isInnerClass
182+
ifTrue: [ aStream nextPut: $$ ]
183+
ifFalse: [ aStream nextPutAll: '::' ] ].
185184
self name ifNotNil: [ :n | aStream nextPutAll: n ]
186185
]
187186

src/Famix-PharoSmalltalk-Entities/FamixStImplicitVariable.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ FamixStImplicitVariable >> isSuper [
5656
^ self name == #super
5757
]
5858

59-
{ #category : #testing }
59+
{ #category : #printing }
6060
FamixStImplicitVariable >> mooseNameOn: stream [
6161
| parent |
6262
parent := self parentBehaviouralEntity.

src/Famix-PharoSmalltalk-Entities/FamixStLocalVariable.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ FamixStLocalVariable class >> annotation [
4646
^ self
4747
]
4848

49-
{ #category : #accessing }
49+
{ #category : #printing }
5050
FamixStLocalVariable >> mooseNameOn: stream [
5151
| parent |
5252
parent := self parentBehaviouralEntity.

src/Famix-PharoSmalltalk-Entities/FamixStParameter.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ FamixStParameter class >> annotation [
4646
^ self
4747
]
4848

49-
{ #category : #accessing }
49+
{ #category : #printing }
5050
FamixStParameter >> mooseNameOn: stream [
5151
| parent |
5252
parent := self parentBehaviouralEntity.

src/Famix-Traits/FamixTEnumValue.trait.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ FamixTEnumValue >> isEnumValue [
6666
^ true
6767
]
6868

69-
{ #category : #accessing }
69+
{ #category : #printing }
7070
FamixTEnumValue >> mooseNameOn: aStream [
7171
(self belongsTo isNotNil and: [ self belongsTo name isNotNil ])
7272
ifTrue: [ self belongsTo mooseNameOn: aStream.

src/Famix-Traits/FamixTType.trait.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ FamixTType >> isType [
8484
^ true
8585
]
8686

87-
{ #category : #accessing }
87+
{ #category : #printing }
8888
FamixTType >> mooseNameOn: aStream [
8989
self typeContainer
9090
ifNotNil: [ :parent |

src/Moose-Core/MooseGroup.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ MooseGroup >> mooseDescription [
127127
ifNotNil: [ :model | model mooseDescriptionFor: self class ]
128128
]
129129

130-
{ #category : #accessing }
130+
{ #category : #printing }
131131
MooseGroup >> mooseNameOn: aStream [
132132
"Hook to customize the rendered text of an entity. Do not specialize mooseName, but change/specialize this method if necessary."
133133
aStream

0 commit comments

Comments
 (0)