Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040196f commit d9ced55Copy full SHA for d9ced55
1 file changed
python/ql/lib/semmle/python/filters/GeneratedCode.qll
@@ -33,15 +33,15 @@ class GenericGeneratedFile extends GeneratedFile {
33
}
34
35
pragma[nomagic]
36
-int minStmtLine(File file) {
+private int minStmtLine(File file) {
37
result =
38
min(int line |
39
line = any(Stmt s | s.getLocation().getFile() = file).getLocation().getStartLine()
40
)
41
42
43
44
-predicate isBeforeCode(Comment c, File f) {
+private predicate isBeforeCode(Comment c, File f) {
45
f = c.getLocation().getFile() and
46
minStmtLine(f) < c.getLocation().getStartLine()
47
0 commit comments