mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
C#: Change dbscheme from nullability_member to nullability_parent
This commit is contained in:
@@ -70,11 +70,11 @@ private module Annotations {
|
||||
|
||||
language[monotonicAggregates]
|
||||
private string getMemberString() {
|
||||
if nullability_member(nullability, _, _)
|
||||
if nullability_parent(_, _, nullability)
|
||||
then
|
||||
result = "<" +
|
||||
concat(int i, Nullability child |
|
||||
nullability_member(nullability, i, getNullability(child))
|
||||
nullability_parent(getNullability(child), i, nullability)
|
||||
|
|
||||
child.toString(), "," order by i
|
||||
) + ">"
|
||||
@@ -169,8 +169,8 @@ private module Annotations {
|
||||
*/
|
||||
bindingset[i]
|
||||
Nullability getChildNullability(Nullability n, int i) {
|
||||
if nullability_member(getNullability(n), i, _)
|
||||
then nullability_member(getNullability(n), i, getNullability(result))
|
||||
if nullability_parent(_, i, getNullability(n))
|
||||
then nullability_parent(getNullability(result), i, getNullability(n))
|
||||
else result = n
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ private module Annotations {
|
||||
* and all type arguments are oblivious.
|
||||
*/
|
||||
class NoNullability extends ObliviousNullability {
|
||||
NoNullability() { not nullability_member(nullability, _, _) }
|
||||
NoNullability() { not nullability_parent(_, _, nullability) }
|
||||
}
|
||||
|
||||
/** A type with annotated nullablity, `?`. */
|
||||
|
||||
@@ -480,8 +480,8 @@ case @nullability.kind of
|
||||
| 2 = @annotated
|
||||
;
|
||||
|
||||
#keyset[nullability, index]
|
||||
nullability_member(int nullability: @nullability ref, int index: int ref, int child: @nullability ref)
|
||||
#keyset[parent, index]
|
||||
nullability_parent(int nullability: @nullability ref, int index: int ref, int parent: @nullability ref)
|
||||
|
||||
type_nullability(int id: @has_type_annotation ref, int nullability: @nullability ref)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user