mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
C#: match IR global variable changes
This commit is contained in:
@@ -47,6 +47,9 @@ module Raw {
|
||||
cached
|
||||
predicate functionHasIR(Callable callable) { exists(getTranslatedFunction(callable)) }
|
||||
|
||||
cached
|
||||
predicate varHasIRFunc(Field field) { none() }
|
||||
|
||||
cached
|
||||
predicate hasInstruction(TranslatedElement element, InstructionTag tag) {
|
||||
element.hasInstruction(_, tag, _)
|
||||
|
||||
@@ -8,6 +8,14 @@ class OpaqueTypeTag = CSharp::ValueOrRefType;
|
||||
|
||||
class Function = CSharp::Callable;
|
||||
|
||||
class GlobalVariable extends CSharp::Field {
|
||||
GlobalVariable() {
|
||||
this.isStatic()
|
||||
}
|
||||
}
|
||||
|
||||
class Declaration = CSharp::Declaration;
|
||||
|
||||
class Location = CSharp::Location;
|
||||
|
||||
class UnknownLocation = CSharp::EmptyLocation;
|
||||
|
||||
Reference in New Issue
Block a user