[Improvement]: Improve the error reporting of XML templates when used as key values in tables #41985
Labels
Area/Compiler
Lang/Expressions/TableConstructor
Lang/Expressions/XmlTemplate
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Improvement
Description
The current implementation only considers and simply checks if the XML expression generates an XML element or text, returning true without considering whether the interpolated expressions are constant or not.
ballerina-lang/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Lines 1526 to 1527 in 42c4311
Describe your problem(s)
No response
Describe your solution(s)
This implementation should be improved to consider the following types of XML subtypes along with checking the expressions nested within them.
Related area
-> Compilation
Related issue(s) (optional)
#13944
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: