8
8
' originalClass' ,
9
9
' testCaseReferences' ,
10
10
' originalProtocol' ,
11
- ' newExpression '
11
+ ' data '
12
12
],
13
13
#category : ' MuTalk-Model' ,
14
14
#package : ' MuTalk-Model'
@@ -26,14 +26,14 @@ MTMethodMutation class >> for: aMethod using: anOperatorApplied nodeNumber: aNod
26
26
]
27
27
28
28
{ #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 [
30
30
31
31
^ self new
32
32
initializeFor: aMethod
33
33
using: anOperatorApplied
34
34
nodeNumber: aNodeNumber
35
35
ofClass: aClass
36
- replacingWith : anObject;
36
+ withData : anObject;
37
37
yourself
38
38
]
39
39
@@ -50,6 +50,18 @@ MTMethodMutation >> = anObject [
50
50
^ true
51
51
]
52
52
53
+ { #category : ' accessing' }
54
+ MTMethodMutation >> data [
55
+
56
+ ^ data
57
+ ]
58
+
59
+ { #category : ' accessing' }
60
+ MTMethodMutation >> data: anObject [
61
+
62
+ data := anObject
63
+ ]
64
+
53
65
{ #category : ' comparing' }
54
66
MTMethodMutation >> hash [
55
67
@@ -65,18 +77,18 @@ MTMethodMutation >> initializeFor: aMethod using: anOperatorApplied nodeNumber:
65
77
using: anOperatorApplied
66
78
nodeNumber: aNodeNumber
67
79
ofClass: aClass
68
- replacingWith : anOperatorApplied newExpression
80
+ withData : anOperatorApplied newExpression
69
81
]
70
82
71
83
{ #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 [
73
85
74
86
originalMethod := aMethod.
75
87
originalProtocol := aMethod protocol.
76
88
operator := anOperatorApplied.
77
89
nodeNumber := aNodeNumber.
78
90
originalClass := aClass.
79
- newExpression := anObject
91
+ data := anObject
80
92
]
81
93
82
94
{ #category : ' installing' }
@@ -94,7 +106,7 @@ MTMethodMutation >> modifiedSource [
94
106
^ operator
95
107
modifiedSourceFor: originalMethod
96
108
number: nodeNumber
97
- newExpression: newExpression
109
+ newExpression: data
98
110
]
99
111
100
112
{ #category : ' accessing' }
0 commit comments