Files
codeql/csharp/ql/lib/utils/test/InlineMadTest.qll
2026-03-30 15:24:32 +02:00

19 lines
471 B
Plaintext

private import csharp as CS
private import codeql.mad.test.InlineMadTest
private module InlineMadTestLang implements InlineMadTestLangSig {
class Callable = CS::Callable;
string getComment(Callable c) {
exists(CS::CommentBlock block, CS::Element after | after = block.getAfter() |
(
after = c or
after = c.(CS::Accessor).getDeclaration()
) and
result = block.getALine()
)
}
}
import InlineMadTestImpl<InlineMadTestLang>