-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement semantic api related visitors for BLangListConstructorSpreadOpExpr
#36076
Implement semantic api related visitors for BLangListConstructorSpreadOpExpr
#36076
Conversation
95ed784
to
980991d
Compare
@dulajdilshan @sanjana Do we have semantic api tests for each AST node? Do we need to add test cases with these changes? |
@lochana-chathura, |
Codecov Report
@@ Coverage Diff @@
## 2201.1.0-stage #36076 +/- ##
====================================================
- Coverage 73.74% 70.54% -3.20%
+ Complexity 47660 45824 -1836
====================================================
Files 3185 3185
Lines 186040 186049 +9
Branches 24280 24280
====================================================
- Hits 137190 131253 -5937
- Misses 40894 47471 +6577
+ Partials 7956 7325 -631
Continue to review full report at Codecov.
|
BLangListConstructorSpreadOpExpr
Try to handle the uncovered test scenarios for SemanticApi and QueryDesugar |
...llerina-compiler-api-test/src/test/resources/test-src/find-all-ref/find_var_ref_in_exprs.bal
Outdated
Show resolved
Hide resolved
...llerina-compiler-api-test/src/test/resources/test-src/find-all-ref/find_var_ref_in_exprs.bal
Outdated
Show resolved
Hide resolved
...llerina-compiler-api-test/src/test/resources/test-src/find-all-ref/find_var_ref_in_exprs.bal
Outdated
Show resolved
Hide resolved
tests/ballerina-compiler-api-test/src/test/resources/test-src/symbol_at_cursor_basic_test.bal
Outdated
Show resolved
Hide resolved
tests/ballerina-compiler-api-test/src/test/resources/test-src/symbol_at_cursor_basic_test.bal
Outdated
Show resolved
Hide resolved
tests/ballerina-compiler-api-test/src/test/resources/test-src/symbol_at_cursor_basic_test.bal
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -0,0 +1,4 @@ | |||
function testListConstructorSpreadOp() { | |||
int[] x = [1, 2]; | |||
int[] y = [...]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to fix the sorting of the completions at the cursor position after ...
. Further, we may have to add a spread op completion item as well (Just like spread field completion item for mapping constructors). Will create a separate issue for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. thanks!.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#35507 tracks the changes to be made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose
$subject.
Fixes #36073
Approach
N/A
Samples
N/A
Remarks
N/A
Check List