-
Notifications
You must be signed in to change notification settings - Fork 751
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
[Step Extension] Add semantic support xml step extension #43106
[Step Extension] Add semantic support xml step extension #43106
Conversation
...rina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java
Outdated
Show resolved
Hide resolved
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java
Outdated
Show resolved
Hide resolved
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java
Outdated
Show resolved
Hide resolved
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java
Outdated
Show resolved
Hide resolved
...er/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/BLangNodeBuilder.java
Outdated
Show resolved
Hide resolved
...er/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/BLangNodeBuilder.java
Outdated
Show resolved
Hide resolved
ab2f29f
to
1d1a38f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## xml_step_extension #43106 +/- ##
=======================================================
Coverage 77.35% 77.36%
- Complexity 58300 58721 +421
=======================================================
Files 3454 3469 +15
Lines 219173 220382 +1209
Branches 28741 28933 +192
=======================================================
+ Hits 169544 170491 +947
- Misses 40295 40472 +177
- Partials 9334 9419 +85 ☔ View full report in Codecov by Sentry. |
@Override | ||
public void visit(BLangXMLFilterStepExtend xmlFilterStepExtend) { | ||
lookupNodes(xmlFilterStepExtend.filters); | ||
} |
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 check if we can fix the codecov warnings?
public void visit(BLangExtendedXMLNavigationAccess extendedXMLNavigationAccess) { | ||
extendedXMLNavigationAccess.stepExpr = rewriteExpr(extendedXMLNavigationAccess.stepExpr); | ||
result = extendedXMLNavigationAccess; | ||
} |
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 need to check codecov warnings everywhere.
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/NodeCloner.java
Outdated
Show resolved
Hide resolved
@@ -2310,6 +2314,24 @@ public void visit(BLangXMLElementFilter source) { | |||
source.cloneRef = clone; | |||
} | |||
|
|||
@Override | |||
public void visit(BLangXMLIndexedStepExtend source) { | |||
BLangXMLIndexedStepExtend clone = new BLangXMLIndexedStepExtend(source.pos, source.indexExpr); |
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.
Index or member?
.../java/org/wso2/ballerinalang/compiler/tree/expressions/BLangExtendedXMLNavigationAccess.java
Show resolved
Hide resolved
tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/xml/XMLAccessTest.java
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.
Small nit other than that LGTM
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java
Outdated
Show resolved
Hide resolved
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
6247968
to
9152736
Compare
9152736
to
6bf09d9
Compare
2e1e1be
to
dac4c7a
Compare
6c6ff0e
to
a969212
Compare
a969212
to
5e9ee97
Compare
b2bb60f
to
317e292
Compare
compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java
Outdated
Show resolved
Hide resolved
0eb9e31
into
ballerina-platform:xml_step_extension
Purpose
$subject
Approach
Samples
Remarks
Check List