Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9ced55

Browse files
committed
make private predicates private
1 parent 040196f commit d9ced55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class GenericGeneratedFile extends GeneratedFile {
3333
}
3434

3535
pragma[nomagic]
36-
int minStmtLine(File file) {
36+
private int minStmtLine(File file) {
3737
result =
3838
min(int line |
3939
line = any(Stmt s | s.getLocation().getFile() = file).getLocation().getStartLine()
4040
)
4141
}
4242

4343
pragma[nomagic]
44-
predicate isBeforeCode(Comment c, File f) {
44+
private predicate isBeforeCode(Comment c, File f) {
4545
f = c.getLocation().getFile() and
4646
minStmtLine(f) < c.getLocation().getStartLine()
4747
}

0 commit comments

Comments
 (0)