@@ -14,10 +14,10 @@ CRFExporter >> visitMethod: aMethod [
14
14
aMethod isStub ifTrue: [ ^ self ].
15
15
self printMethodAnnotations: aMethod.
16
16
self indent.
17
- aMethod isPrivate ifTrue: [ self <<< ' private ' ].
18
- aMethod isProtected ifTrue: [ self <<< ' protected ' ].
19
- aMethod isPublic ifTrue: [ self <<< ' public ' ].
20
- aMethod isClassSide ifTrue: [ self <<< ' static ' ].
17
+ aMethod isPrivate ifTrue: [ self << ' private ' ].
18
+ aMethod isProtected ifTrue: [ self << ' protected ' ].
19
+ aMethod isPublic ifTrue: [ self << ' public ' ].
20
+ aMethod isClassSide ifTrue: [ self << ' static ' ].
21
21
" Printing return type for method"
22
22
aMethod declaredType ifNotNil: [ :declaredType |
23
23
self printDeclaredType: declaredType.
@@ -27,28 +27,28 @@ CRFExporter >> visitMethod: aMethod [
27
27
aMethod isAnInitializer and : [ aMethod isConstructor not ] ])
28
28
ifFalse: [
29
29
self
30
- <<< aMethod name;
31
- <<< ' (' .
30
+ << aMethod name;
31
+ << ' (' .
32
32
(aMethod parameters sorted: [ :p :p2 |
33
33
p sourceAnchor startPos < p2 sourceAnchor startPos ])
34
34
do: [ :parameter | parameter accept: self clone ]
35
- separatedBy: [ self <<< ' , ' ].
36
- self <<< ' )' ]
35
+ separatedBy: [ self << ' , ' ].
36
+ self << ' )' ]
37
37
ifTrue: [ self << ' static' ].
38
38
" print exception"
39
39
((aMethod withMethodsOverriding collect: [ :m |
40
40
m thrownExceptions , m declaredExceptions ]) flattened asSet
41
41
asOrderedCollection sorted: #name ascending) ifNotEmpty: [
42
42
:exceptions |
43
- self <<< ' throws ' .
43
+ self << ' throws ' .
44
44
exceptions
45
- do: [ :exception | self <<< exception name ]
46
- separatedBy: [ self <<< ' , ' ] ].
45
+ do: [ :exception | self << exception name ]
46
+ separatedBy: [ self << ' , ' ] ].
47
47
48
48
" Printing body of method if class is not abstract or an interface"
49
49
((aMethod atScope: FamixTClass ) anyOne isInterface or : [
50
50
aMethod isAbstract isNotNil and : [ aMethod isAbstract ] ])
51
- ifTrue: [ self <<< ' ;' ]
51
+ ifTrue: [ self << ' ;' ]
52
52
ifFalse: [
53
53
aMethod fast
54
54
ifNotNil: [ :fastMethod |
@@ -57,14 +57,14 @@ CRFExporter >> visitMethod: aMethod [
57
57
outputStream: self currentStream;
58
58
indentSize: tabulationSize;
59
59
yourself .
60
- self <<< ' ' .
60
+ self << ' ' .
61
61
1 to: tabs do: [ :tab | fastJavaExporterVisitor indent ].
62
62
fastMethod statementBlock accept: fastJavaExporterVisitor ]
63
63
ifNil: [
64
- currentStream << ' {' .
64
+ self << ' {' .
65
65
self eol.
66
- self <<< aMethod bodySourceText.
66
+ self << aMethod bodySourceText.
67
67
self
68
68
eol;
69
- << ' }' ] ]
69
+ << | ' }' ] ]
70
70
]
0 commit comments