We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b8a92 commit 2cda1a2Copy full SHA for 2cda1a2
csharp/ql/test/TestUtilities/InlineMadTest.qll
@@ -0,0 +1,18 @@
1
+private import csharp as Cs
2
+private import codeql.mad.test.InlineMadTest
3
+
4
+private module InlineMadTestLang implements InlineMadTestLangSig {
5
+ class Callable = Cs::Callable;
6
7
+ string getComment(Callable c) {
8
+ exists(Cs::CommentBlock block, Cs::Element after | after = block.getAfter() |
9
+ (
10
+ after = c or
11
+ after = c.(Cs::Accessor).getDeclaration()
12
+ ) and
13
+ result = block.getALine()
14
+ )
15
+ }
16
+}
17
18
+import InlineMadTestImpl<InlineMadTestLang>
0 commit comments