Skip to content

Commit 7b3307a

Browse files
author
Durieux Pol
committed
rename attribute and methods
1 parent 7cfd90c commit 7b3307a

3 files changed

+21
-9
lines changed

src/MuTalk-Model/MTMethodMutation.class.st

+19-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Class {
88
'originalClass',
99
'testCaseReferences',
1010
'originalProtocol',
11-
'newExpression'
11+
'data'
1212
],
1313
#category : 'MuTalk-Model',
1414
#package : 'MuTalk-Model'
@@ -26,14 +26,14 @@ MTMethodMutation class >> for: aMethod using: anOperatorApplied nodeNumber: aNod
2626
]
2727

2828
{ #category : 'instance creation' }
29-
MTMethodMutation class >> for: aMethod using: anOperatorApplied nodeNumber: aNodeNumber ofClass: aClass replacingWith: anObject [
29+
MTMethodMutation class >> for: aMethod using: anOperatorApplied nodeNumber: aNodeNumber ofClass: aClass withData: anObject [
3030

3131
^ self new
3232
initializeFor: aMethod
3333
using: anOperatorApplied
3434
nodeNumber: aNodeNumber
3535
ofClass: aClass
36-
replacingWith: anObject;
36+
withData: anObject;
3737
yourself
3838
]
3939

@@ -50,6 +50,18 @@ MTMethodMutation >> = anObject [
5050
^ true
5151
]
5252

53+
{ #category : 'accessing' }
54+
MTMethodMutation >> data [
55+
56+
^ data
57+
]
58+
59+
{ #category : 'accessing' }
60+
MTMethodMutation >> data: anObject [
61+
62+
data := anObject
63+
]
64+
5365
{ #category : 'comparing' }
5466
MTMethodMutation >> hash [
5567

@@ -65,18 +77,18 @@ MTMethodMutation >> initializeFor: aMethod using: anOperatorApplied nodeNumber:
6577
using: anOperatorApplied
6678
nodeNumber: aNodeNumber
6779
ofClass: aClass
68-
replacingWith: anOperatorApplied newExpression
80+
withData: anOperatorApplied newExpression
6981
]
7082

7183
{ #category : 'initialize-release' }
72-
MTMethodMutation >> initializeFor: aMethod using: anOperatorApplied nodeNumber: aNodeNumber ofClass: aClass replacingWith: anObject [
84+
MTMethodMutation >> initializeFor: aMethod using: anOperatorApplied nodeNumber: aNodeNumber ofClass: aClass withData: anObject [
7385

7486
originalMethod := aMethod.
7587
originalProtocol := aMethod protocol.
7688
operator := anOperatorApplied.
7789
nodeNumber := aNodeNumber.
7890
originalClass := aClass.
79-
newExpression := anObject
91+
data := anObject
8092
]
8193

8294
{ #category : 'installing' }
@@ -94,7 +106,7 @@ MTMethodMutation >> modifiedSource [
94106
^ operator
95107
modifiedSourceFor: originalMethod
96108
number: nodeNumber
97-
newExpression: newExpression
109+
newExpression: data
98110
]
99111

100112
{ #category : 'accessing' }

src/MuTalk-Model/MTPredicateBasedMutantOperator.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ MTPredicateBasedMutantOperator >> mutationsFor: aCompiledMethod with: aParseTree
6363
using: self
6464
nodeNumber: nodeIndex
6565
ofClass: aCompiledMethod methodClass
66-
replacingWith: newNode).
66+
withData: newNode).
6767
^ accumulator
6868
]
6969

src/MuTalk-Model/MTSubclassReplacementOperator.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ MTSubclassReplacementOperator >> mutationsFor: aCompiledMethod with: aParseTree
3838
using: self
3939
nodeNumber: nodeIndex
4040
ofClass: aCompiledMethod methodClass
41-
replacingWith: newExpression ]).
41+
withData: newExpression ]).
4242
^ accumulator
4343
]
4444

0 commit comments

Comments
 (0)