Skip to content
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
17 changes: 13 additions & 4 deletions src/FamixReplication/FamixReplica.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ FamixReplica >> concernSameSubjectAs: anotherReplica [

{ #category : 'accessing' }
FamixReplica >> endLine [
<navigation: 'Ending line of the replica'>

<FMProperty: #endLine type: #Number>
<FMComment: 'Ending line of the replica'>
^ endLine
]

Expand All @@ -130,7 +132,9 @@ FamixReplica >> endLine: anObject [

{ #category : 'accessing' }
FamixReplica >> entity [
<navigation: 'The entity of this replica'>

<FMProperty: #entity type: #Object>
<FMComment: 'The entity of this replica'>
^ entity
]

Expand All @@ -146,7 +150,10 @@ FamixReplica >> entitySourceCode [

{ #category : 'accessing' }
FamixReplica >> fileAnchor [
<navigation: 'The file of the entity that contains the duplicated code fragment'>

<FMProperty: #fileAnchor type: #FamixTSourceAnchor>
<derived>
<FMComment: 'The file of the entity that contains the duplicated code fragment'>
^ fileAnchor
]

Expand Down Expand Up @@ -227,7 +234,9 @@ FamixReplica >> replicatedFragment: aReplicatedFragment [

{ #category : 'accessing' }
FamixReplica >> startLine [
<navigation: 'Starting line of the replica'>

<FMProperty: #startLine type: #Number>
<FMComment: 'Starting line of the replica'>
^ startLine
]

Expand Down
5 changes: 4 additions & 1 deletion src/FamixReplication/FamixReplicatedFragment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ FamixReplicatedFragment >> remove: aReplica [

{ #category : 'accessing' }
FamixReplicatedFragment >> replicas [
<navigation: 'Members of this clone fragment'>

<FMProperty: #replicas type: #FamixReplica>
<multivalued>
<FMComment: 'Members of this clone fragment'>
^ replicas ifNil: [ replicas := OrderedCollection new ]
]

Expand Down