mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
API graphs: Remove restriction on top-level constants
This commit is contained in:
@@ -270,8 +270,7 @@ module API {
|
||||
or
|
||||
name = read.getName() and
|
||||
not exists(resolveScopeExpr(read)) and
|
||||
not exists(read.getScopeExpr()) and
|
||||
not exists(read.getValue())
|
||||
not exists(read.getScopeExpr())
|
||||
)
|
||||
or
|
||||
exists(DataFlow::LocalSourceNode src, DataFlow::LocalSourceNode pred |
|
||||
|
||||
@@ -13,7 +13,7 @@ Unknown.new.run #$ use=getMember("Unknown").instance.getReturn("run")
|
||||
Foo::Bar::Baz #$ use=getMember("Foo").getMember("Bar").getMember("Baz")
|
||||
|
||||
Const = [1, 2, 3]
|
||||
Const.each do |c|
|
||||
Const.each do |c| #$ use=getMember("Const").getReturn("each")
|
||||
puts c
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user