[Improvement]: Improve field access expression desugar #43769
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Improvement
Description
Currently, the field access expression desugared in to match statement which cases lot of instructions when there is a large chain access of the field access expression. This could lead to unwanted
method to large
errors at runtime.Need to find a better way of desugaring eg: Try to desugar into if statement.
Related internal issue: https://github.com/wso2-enterprise/internal-support-ballerina/issues/862
Describe your problem(s)
No response
Describe your solution(s)
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: