mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Add test for companion field declaring type
This commit is contained in:
committed by
Chris Smowton
parent
8b1a7c845c
commit
a8cf0383cf
@@ -1,2 +1,2 @@
|
||||
| companion_objects.kt:1:1:6:1 | MyClass | companion_objects.kt:3:5:5:5 | MyClassCompanion | companion_objects.kt:3:5:5:5 | MyClassCompanion | final,public,static |
|
||||
| companion_objects.kt:8:1:13:1 | MyInterface | companion_objects.kt:10:5:12:5 | MyInterfaceCompanion | companion_objects.kt:10:5:12:5 | MyInterfaceCompanion | final,public,static |
|
||||
| companion_objects.kt:1:1:6:1 | MyClass | companion_objects.kt:3:5:5:5 | MyClassCompanion | companion_objects.kt:3:5:5:5 | MyClassCompanion | companion_objects.kt:3:5:5:5 | MyClassCompanion | final,public,static |
|
||||
| companion_objects.kt:8:1:13:1 | MyInterface | companion_objects.kt:10:5:12:5 | MyInterfaceCompanion | companion_objects.kt:10:5:12:5 | MyInterfaceCompanion | companion_objects.kt:10:5:12:5 | MyInterfaceCompanion | final,public,static |
|
||||
|
||||
@@ -5,4 +5,4 @@ where
|
||||
c.fromSource() and
|
||||
cco = c.getCompanionObject() and
|
||||
f = cco.getInstance()
|
||||
select c, f, cco, concat(f.getAModifier().toString(), ",")
|
||||
select c, f, cco, f.getDeclaringType(), concat(f.getAModifier().toString(), ",")
|
||||
|
||||
Reference in New Issue
Block a user