mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02: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>
|