Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline mooseNameOn: #743

Merged
merged 2 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/Famix-Java-Entities/FamixJavaClass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,14 @@ FamixJavaClass >> methodsWithoutSutbsAndConstructors [
each isStub not and: [each isConstructor not]]) asSet
]

{ #category : #'as yet unclassified' }
{ #category : #printing }
FamixJavaClass >> mooseNameOn: aStream [

self typeContainer ifNotNil: [ :parent |
| separator |
parent mooseNameOn: aStream.
separator := '::'.
self isInnerClass ifTrue: [ separator := '$' ].
aStream nextPutAll: separator ].
self isInnerClass
ifTrue: [ aStream nextPut: $$ ]
ifFalse: [ aStream nextPutAll: '::' ] ].
self name ifNotNil: [ :n | aStream nextPutAll: n ]
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ FamixStImplicitVariable >> isSuper [
^ self name == #super
]

{ #category : #testing }
{ #category : #printing }
FamixStImplicitVariable >> mooseNameOn: stream [
| parent |
parent := self parentBehaviouralEntity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ FamixStLocalVariable class >> annotation [
^ self
]

{ #category : #accessing }
{ #category : #printing }
FamixStLocalVariable >> mooseNameOn: stream [
| parent |
parent := self parentBehaviouralEntity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ FamixStParameter class >> annotation [
^ self
]

{ #category : #accessing }
{ #category : #printing }
FamixStParameter >> mooseNameOn: stream [
| parent |
parent := self parentBehaviouralEntity.
Expand Down
2 changes: 1 addition & 1 deletion src/Famix-Traits/FamixTEnumValue.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ FamixTEnumValue >> isEnumValue [
^ true
]

{ #category : #accessing }
{ #category : #printing }
FamixTEnumValue >> mooseNameOn: aStream [
(self belongsTo isNotNil and: [ self belongsTo name isNotNil ])
ifTrue: [ self belongsTo mooseNameOn: aStream.
Expand Down
2 changes: 1 addition & 1 deletion src/Famix-Traits/FamixTType.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ FamixTType >> isType [
^ true
]

{ #category : #accessing }
{ #category : #printing }
FamixTType >> mooseNameOn: aStream [
self typeContainer
ifNotNil: [ :parent |
Expand Down
2 changes: 1 addition & 1 deletion src/Moose-Core/MooseGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ MooseGroup >> mooseDescription [
ifNotNil: [ :model | model mooseDescriptionFor: self class ]
]

{ #category : #accessing }
{ #category : #printing }
MooseGroup >> mooseNameOn: aStream [
"Hook to customize the rendered text of an entity. Do not specialize mooseName, but change/specialize this method if necessary."
aStream
Expand Down
Loading