mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
First draft of a jump-to-definition query
TODO: flesh out this message
This commit is contained in:
26
ql/test/query-tests/analysis/Definitions.rb
Normal file
26
ql/test/query-tests/analysis/Definitions.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
module A
|
||||
class B
|
||||
def f
|
||||
g 1
|
||||
end
|
||||
|
||||
def g x
|
||||
x
|
||||
end
|
||||
|
||||
def h
|
||||
f
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module C
|
||||
class D
|
||||
def h y
|
||||
A::B.new.g y
|
||||
UnknownClass.some_method
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
C::D.new
|
||||
Reference in New Issue
Block a user