mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Rework global statement extraction without DB scheme change
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import csharp
|
||||
private import semmle.code.csharp.commons.Util
|
||||
|
||||
query predicate global_stmt(Stmt stmt) { stmt.isGlobal() }
|
||||
|
||||
@@ -11,5 +12,5 @@ query predicate globalBlock(BlockStmt block, Method m, Parameter p, Type t) {
|
||||
|
||||
query predicate methods(Method m, string entry) {
|
||||
m.getFile().getStem() = "GlobalStmt" and
|
||||
if m.isEntry() then entry = "entry" else entry = "non-entry"
|
||||
if m instanceof MainMethod then entry = "entry" else entry = "non-entry"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user