mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Rework foreach_stmt_info extraction
This commit is contained in:
@@ -984,13 +984,16 @@ catch_type(
|
||||
|
||||
foreach_stmt_info(
|
||||
unique int id: @foreach_stmt ref,
|
||||
int element_type_id: @type_or_ref ref,
|
||||
int getenumerator_id: @method ref,
|
||||
int movenext_id: @method ref,
|
||||
int dispose_id: @method ref,
|
||||
int current_id: @property ref,
|
||||
int kind: int ref /* non-async = 1, async = 2 */);
|
||||
|
||||
@foreach_symbol = @method | @property | @type_or_ref;
|
||||
|
||||
#keyset[id, kind]
|
||||
foreach_stmt_desugar(
|
||||
int id: @foreach_stmt ref,
|
||||
int symbol: @foreach_symbol ref,
|
||||
int kind: int ref /* GetEnumeratorMethod = 1, CurrentProperty = 2, MoveNextMethod = 3, DisposeMethod = 4, ElementType = 5 */);
|
||||
|
||||
/** EXPRESSIONS **/
|
||||
|
||||
expressions(
|
||||
|
||||
Reference in New Issue
Block a user