File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -224,14 +224,15 @@ FAMIX2JavaVisitor >> visitAttribute: aAttribute [
224
224
225
225
" Printing the annotations for the attribute"
226
226
227
+ | attributeSource attributeSourceFromName |
227
228
aAttribute annotationInstances
228
229
do: [ :annotationInstance |
229
230
self clone visit: annotationInstance.
230
231
self crlf ].
231
232
232
233
" Printing modifiers"
233
234
self indent.
234
- aAttribute modifiers
235
+ ( aAttribute cacheAt: # modifiers ifAbsent: [ aAttribute modifiers ])
235
236
do: [ :modifier |
236
237
self
237
238
<<< modifier;
@@ -244,10 +245,14 @@ FAMIX2JavaVisitor >> visitAttribute: aAttribute [
244
245
self
245
246
space;
246
247
<<< aAttribute name.
247
- (aAttribute sourceAnchor sourceText includesSubstring: ' =' )
248
+
249
+ " This is an hack to get the affectation is any (hack because some problems with annotations that are sometimes part of the sourceAnchor...)"
250
+ attributeSource := aAttribute sourceAnchor sourceText.
251
+ attributeSourceFromName := attributeSource copyFrom: (attributeSource findString: aAttribute name) to: attributeSource size.
252
+ (attributeSourceFromName includesSubstring: ' =' )
248
253
ifTrue: [ self
249
254
space;
250
- <<< (aAttribute sourceAnchor sourceText copyFrom: (aAttribute sourceAnchor sourceText findString: ' =' ) to: aAttribute sourceAnchor sourceText size) ].
255
+ <<< (attributeSourceFromName copyFrom: (attributeSourceFromName findString: ' =' ) to: attributeSourceFromName size) ].
251
256
self <<< ' ;'
252
257
]
253
258
You can’t perform that action at this time.
0 commit comments