mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
19 lines
471 B
Plaintext
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>
|