mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C#: No qualified name for local scope variables
This commit is contained in:
@@ -28,7 +28,9 @@ class Variable extends DotNet::Variable, Declaration, DataFlowNode, @cil_variabl
|
||||
}
|
||||
|
||||
/** A stack variable. Either a local variable (`LocalVariable`) or a parameter (`Parameter`). */
|
||||
class StackVariable extends Variable, @cil_stack_variable { }
|
||||
class StackVariable extends Variable, @cil_stack_variable {
|
||||
override predicate hasQualifiedName(string qualifier, string name) { none() }
|
||||
}
|
||||
|
||||
/**
|
||||
* A local variable.
|
||||
|
||||
@@ -111,6 +111,8 @@ class LocalScopeVariable extends Variable, @local_scope_variable {
|
||||
* Holds if this local variable or parameter is a `ref`.
|
||||
*/
|
||||
predicate isRef() { none() }
|
||||
|
||||
override predicate hasQualifiedName(string qualifier, string name) { none() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user