-
Notifications
You must be signed in to change notification settings - Fork 755
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
[Query Expression]Restrict result type being resolved as map
without the query-construct-type
#41117
[Query Expression]Restrict result type being resolved as map
without the query-construct-type
#41117
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #41117 +/- ##
============================================
+ Coverage 76.35% 76.36% +0.01%
- Complexity 52258 52305 +47
============================================
Files 2865 2866 +1
Lines 197494 197626 +132
Branches 25656 25683 +27
============================================
+ Hits 150791 150916 +125
- Misses 38398 38403 +5
- Partials 8305 8307 +2
☔ View full report in Codecov by Sentry. |
Keeping PR as draft until ballerina-platform/ballerina-spec#1252 is finalized |
...-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java
Outdated
Show resolved
Hide resolved
…/compiler/semantics/analyzer/QueryTypeChecker.java Co-authored-by: KavinduZoysa <[email protected]>
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.
Debugger changes LGTM
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.
Can we add a LS code action test case for the following as well
public function main() {
xml x1 = xml `<book>The Lost World</book>`;
from xml element in x1 select element.toBalString();
}
Inferring would result in an error for this specific scenario. Therefore, no code action. Can you point me to a such a codeaction test I can refer |
+1. We can add a negative test case in that case |
…ina-lang into issue_37670 # Conflicts: # compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java # compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
…ina-lang into issue_37670 # Conflicts: # compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java
Purpose
Fixes #37450
Fixes #37670
Fixes #41129
Fixes #37256
Approach
Samples
Remarks
Check List