Skip to content

Commit ed7e120

Browse files
committed
rename isBeforeCode to isCommentAfterCode
1 parent 1218c4f commit ed7e120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/filters/GeneratedCode.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private int minStmtLine(File file) {
4141
}
4242

4343
pragma[nomagic]
44-
private predicate isBeforeCode(Comment c, File f) {
44+
private predicate isCommentAfterCode(Comment c, File f) {
4545
f = c.getLocation().getFile() and
4646
minStmtLine(f) < c.getLocation().getStartLine()
4747
}
@@ -51,7 +51,7 @@ private string comment_or_docstring(File f, boolean before_code) {
5151
c.getLocation().getFile() = f and
5252
result = c.getText()
5353
|
54-
if isBeforeCode(c, f) then before_code = false else before_code = true
54+
if isCommentAfterCode(c, f) then before_code = false else before_code = true
5555
)
5656
or
5757
exists(Module m | m.getFile() = f |

0 commit comments

Comments
 (0)