mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Python: Add better class support, including inheritance.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
fail
|
||||
8
python/ql/test/library-tests/objects/classes/Test.ql
Normal file
8
python/ql/test/library-tests/objects/classes/Test.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
import python
|
||||
|
||||
private import semmle.python.objects.ObjectInternal
|
||||
|
||||
from ClassObjectInternal cls, ControlFlowNode f
|
||||
where cls.introduced(f, _)
|
||||
select cls.getName(), f
|
||||
|
||||
8
python/ql/test/library-tests/objects/classes/test.py
Normal file
8
python/ql/test/library-tests/objects/classes/test.py
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
class Foo(object):
|
||||
pass
|
||||
|
||||
class Bar(object):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user