Files
codeql/csharp/ql/lib/utils/test/InlineMadTest.qll
2024-12-12 15:03:01 +01: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>