Files
codeql/java/ql/test-kotlin2/library-tests/comments/comments.ql
2023-11-17 14:07:13 +00:00

16 lines
599 B
Plaintext

import java
query predicate comments(KtComment c, string s) { c.getText() = s }
query predicate commentOwners(KtComment c, Top t) { c.getOwner() = t }
query predicate commentNoOwners(KtComment c) { not exists(c.getOwner()) }
query predicate commentSections(KtComment c, KtCommentSection s) { c.getSections() = s }
query predicate commentSectionContents(KtCommentSection s, string c) { s.getContent() = c }
query predicate commentSectionNames(KtCommentSection s, string c) { s.getName() = c }
query predicate commentSectionSubjectNames(KtCommentSection s, string c) { s.getSubjectName() = c }