Skip to content

Commit 1dc3e10

Browse files
committed
better export for attribute
1 parent 495586b commit 1dc3e10

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Famix2Java/FAMIX2JavaVisitor.class.st

+12-6
Original file line numberDiff line numberDiff line change
@@ -198,24 +198,30 @@ FAMIX2JavaVisitor >> visitAttribute: aAttribute [
198198
"Visit an attribute to print its annotations and its field."
199199

200200
" Printing the annotations for the attribute"
201+
201202
aAttribute annotationInstances
202203
do: [ :annotationInstance |
203204
self clone visit: annotationInstance.
204205
self crlf ].
205206

206207
"Printing modifiers"
207-
self indent.
208-
aAttribute modifiers do: [ :modifier | self <<< modifier; space ].
209-
208+
self indent.
209+
aAttribute modifiers
210+
do: [ :modifier |
211+
self
212+
<<< modifier;
213+
space ].
214+
210215
"Declared Type"
211216
self printDeclaredType: aAttribute declaredType.
212217
"Attribute name"
213218
self
214219
space;
215-
<<< aAttribute name;
216-
space.
220+
<<< aAttribute name.
217221
(aAttribute sourceAnchor sourceText includesSubstring: '=')
218-
ifTrue: [ self <<< (aAttribute sourceAnchor sourceText copyFrom: (aAttribute sourceAnchor sourceText findString: '=') to: aAttribute sourceAnchor sourceText size) ].
222+
ifTrue: [ self
223+
space;
224+
<<< (aAttribute sourceAnchor sourceText copyFrom: (aAttribute sourceAnchor sourceText findString: '=') to: aAttribute sourceAnchor sourceText size) ].
219225
self <<< ';'
220226
]
221227

0 commit comments

Comments
 (0)