mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
C#: Populate expression type nullability and nullable flow state.
This commit is contained in:
@@ -483,7 +483,15 @@ case @nullability.kind of
|
||||
#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)
|
||||
type_nullability(int id: @has_type_annotation ref, int nullability: @nullability ref);
|
||||
|
||||
/**
|
||||
* Thw nullable flow state of an expression, as determined by Roslyn.
|
||||
* 0 = none (default, not populated)
|
||||
* 1 = not null
|
||||
* 2 = maybe null
|
||||
*/
|
||||
expr_flowstate(unique int id: @expr ref, int state: int ref);
|
||||
|
||||
/** GENERICS **/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user