@@ -95,19 +95,19 @@ pub fn filterByAnnotation(f: string) -> bool {
95
95
pub fn getAutoGeneratedFiles(n: string) -> bool {
96
96
let (db = default_db()) {
97
97
for (f in File(db)) {
98
- if (n = f.getRelativePath()) {
99
- if (filterByFolderNames(f)) {
100
- if (filterByAnnotation(n)) {
101
- return true
102
- }
103
- if (filterByKeyWords(n)) {
104
- return true
98
+ if (n = f.getRelativePath()) {
99
+ if (filterByFolderNames(f)) {
100
+ if (filterByAnnotation(n)) {
101
+ return true
102
+ }
103
+ if (filterByKeyWords(n)) {
104
+ return true
105
+ }
105
106
}
106
107
}
107
108
}
108
109
}
109
110
}
110
- }
111
111
112
112
schema PublicVisitedElement extends Callable {
113
113
@@ -121,7 +121,7 @@ impl PublicVisitedElement {
121
121
pub fn __all__(db: JavaDB) -> *PublicVisitedElement {
122
122
for (tmp in Callable(db)) {
123
123
yield PublicVisitedElement {
124
- id : tmp.id
124
+ id: tmp.id
125
125
}
126
126
}
127
127
}
@@ -204,7 +204,7 @@ pub fn getPublicElementLocInfo(e: PublicVisitedElement, i: int, j: int) -> bool
204
204
pub fn getJavadocCommentLocInfo(e: JavadocComment, i: int, j: int) -> bool {
205
205
let (db = default_db()) {
206
206
for (n in int::__undetermined_all__()) {
207
- if (i = e.getLocation().getFile().element_hash_id) {
207
+ if (i = e.getLocation().getFile().element_hash_id) {
208
208
if (n = e.getLocation().getStartLineNumber()) {
209
209
if (j = n - 1) {
210
210
return true
@@ -225,27 +225,27 @@ pub fn connectDoc(j: JavadocComment, e: PublicVisitedElement) -> bool {
225
225
let (db = default_db()) {
226
226
for (i in int::__undetermined_all__(),
227
227
m in int::__undetermined_all__()) {
228
- if (getJavadocCommentLocInfo(j, i, m)) {
229
- if (getPublicElementLocInfo(e, i, m)) {
230
- return true
231
- }
228
+ if (getJavadocCommentLocInfo(j, i, m)) {
229
+ if (getPublicElementLocInfo(e, i, m)) {
230
+ return true
232
231
}
233
232
}
233
+ }
234
234
}
235
235
}
236
236
237
237
pub fn hasComment(e: PublicVisitedElement, tmp_j: int) -> bool {
238
238
let (db = default_db()) {
239
239
for (j in JavadocComment(db)) {
240
240
if (j.element_hash_id = tmp_j) {
241
- if (e.key_eq(j.getDocumentableElement())) {
242
- return true
243
- }
244
- if (connectDoc(j, e)) {
245
- return true
241
+ if (e.key_eq(j.getDocumentableElement())) {
242
+ return true
243
+ }
244
+ if (connectDoc(j, e)) {
245
+ return true
246
+ }
246
247
}
247
248
}
248
- }
249
249
for (j in Comment(db)) {
250
250
if (j = e.getPossibleAboveComment() &&
251
251
j.element_hash_id = tmp_j) {
0 commit comments