Skip to content

Commit 5a3ba5c

Browse files
Merge pull request #900 from moosetechnology/add-deprecation
Restore TWithAnnotationInstanceAttributes as deprecated.
2 parents dadfd4d + 2cdfe9f commit 5a3ba5c

File tree

3 files changed

+63
-33
lines changed

3 files changed

+63
-33
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Trait {
2+
#name : #FamixTWithAnnotationInstanceAttributes,
3+
#instVars : [
4+
'#attributes => FMMany type: #FamixTAnnotationInstanceAttribute opposite: #parentAnnotationInstance'
5+
],
6+
#category : #'Famix-Deprecated'
7+
}
8+
9+
{ #category : #accessing }
10+
FamixTWithAnnotationInstanceAttributes >> addAttribute: anAttribute [
11+
attributes add: anAttribute
12+
]
13+
14+
{ #category : #accessing }
15+
FamixTWithAnnotationInstanceAttributes >> attributes [
16+
"Relation named: #attributes type: #FamixTAnnotationInstanceAttribute opposite: #parentAnnotationInstance"
17+
18+
<generated>
19+
<FMComment: 'This corresponds to the actual values of the attributes in an AnnotationInstance'>
20+
<derived>
21+
^ attributes
22+
]
23+
24+
{ #category : #accessing }
25+
FamixTWithAnnotationInstanceAttributes >> attributes: anObject [
26+
27+
<generated>
28+
attributes value: anObject
29+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Extension { #name : #FamixTWithImports }
2+
3+
{ #category : #'*Famix-Deprecated' }
4+
FamixTWithImports >> addOutgoingImport: anObject [
5+
6+
self
7+
deprecated: 'Use #addImport:'
8+
transformWith:
9+
'`@receiver addOutgoingImport: `@argument' -> '`@receiver addImport: `@argument'.
10+
11+
^ self addImport: anObject
12+
]
13+
14+
{ #category : #'*Famix-Deprecated' }
15+
FamixTWithImports >> outgoingImports [
16+
17+
self
18+
deprecated: 'Use #imports'
19+
transformWith:
20+
'`@receiver outgoingImports' -> '`@receiver imports'.
21+
22+
^ self imports
23+
]
24+
25+
{ #category : #'*Famix-Deprecated' }
26+
FamixTWithImports >> outgoingImports: anObject [
27+
28+
self
29+
deprecated: 'Use #imports:'
30+
transformWith:
31+
'`@receiver outgoingImports: `@argument' -> '`@receiver imports: `@argument'.
32+
33+
^ self imports: anObject
34+
]

src/Famix-Traits/FamixTWithImports.trait.st

-33
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ FamixTWithImports >> addImport: anObject [
3333
^ self imports add: anObject
3434
]
3535

36-
{ #category : #'as yet unclassified' }
37-
FamixTWithImports >> addOutgoingImport: anObject [
38-
39-
self
40-
deprecated: 'Use #addImport:'
41-
transformWith:
42-
'`@receiver addOutgoingImport: `@argument' -> '`@receiver addImport: `@argument'.
43-
44-
^ self addImport: anObject
45-
]
46-
4736
{ #category : #accessing }
4837
FamixTWithImports >> imports [
4938
"Relation named: #imports type: #FamixTImport opposite: #importingEntity"
@@ -59,25 +48,3 @@ FamixTWithImports >> imports: anObject [
5948
<generated>
6049
imports value: anObject
6150
]
62-
63-
{ #category : #'as yet unclassified' }
64-
FamixTWithImports >> outgoingImports [
65-
66-
self
67-
deprecated: 'Use #imports'
68-
transformWith:
69-
'`@receiver outgoingImports' -> '`@receiver imports'.
70-
71-
^ self imports
72-
]
73-
74-
{ #category : #'as yet unclassified' }
75-
FamixTWithImports >> outgoingImports: anObject [
76-
77-
self
78-
deprecated: 'Use #imports:'
79-
transformWith:
80-
'`@receiver outgoingImports: `@argument' -> '`@receiver imports: `@argument'.
81-
82-
^ self imports: anObject
83-
]

0 commit comments

Comments
 (0)