[Task]: Write a separate Node Visitor for Type-checking the Group by and Collect clause #38774
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Task
userCategory/Compilation
Milestone
Description
The way the aggregated variables behave is context-specific. Aggregated variables are created in a frame only when we have a group by clause or a collect clause. Their usage is valid only in aggregated functions like sum. (which accepts rest args) and list constructors ( where we can use the spread operators on arrays). In future, there can be cases where we have to add, multiply, subtract.. etc between aggregated variables. and Having all these semantic changes in our default semantic analyzer can complicate the implementation. So the suggestion is to have a different type-checker for aggregated variables.
Describe your task(s)
No response
Related area
-> Compilation
Related issue(s) (optional)
ballerina-platform/ballerina-spec#441
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: