mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
27 lines
720 B
Plaintext
27 lines
720 B
Plaintext
import csharp
|
|
|
|
private predicate commentLine(
|
|
CommentBlock c, CommentLine l, int numLines, string text, string rawText
|
|
) {
|
|
l.getParent() = c and
|
|
numLines = c.getNumLines() and
|
|
text = l.getText() and
|
|
rawText = l.getRawText()
|
|
}
|
|
|
|
query predicate singlelineComment(
|
|
CommentBlock c, SinglelineComment l, int numLines, string text, string rawText
|
|
) {
|
|
commentLine(c, l, numLines, text, rawText)
|
|
}
|
|
|
|
query predicate multilineComment(
|
|
CommentBlock c, MultilineComment l, int numLines, string text, string rawText
|
|
) {
|
|
commentLine(c, l, numLines, text, rawText)
|
|
}
|
|
|
|
query predicate xmlComment(CommentBlock c, XmlComment l, int numLines, string text, string rawText) {
|
|
commentLine(c, l, numLines, text, rawText)
|
|
}
|