June 8, 2026
9:12 a.m.
Could we just have something like: ``` | SourceElements SimpleStatement StSep { source_add_statement(ctx, $2); } | SourceElements ClassDeclaration StSep { source_add_class(ctx, $2); } ``` instead of GlobalUnit? Calling `source_add_statement` on GlobalUnit result makes it look like it's a statement, while it's really not. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10897#note_142387