-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix find node by line number #1239
base: main
Are you sure you want to change the base?
Conversation
TruongQuangSB
commented
Jan 10, 2025
- ValidationReport:
- Fix nodefinder with line number
- Modify find ObjectScope and Object Attribute name
return -1; | ||
} | ||
final Node nextNode = node.getNextSibling(); | ||
if (nextNode == null) { |
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.
when the node dont'have sibling and this isn't root node, then the finder is wrong
// attribute/group node | ||
if (node == null | ||
if (node == null || node.getParentNode() == null | ||
|| node.getParentNode().getNodeName().equals(DOCUMENT_NODE) |
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.
root node haven't attribute name
Test Results121 tests ±0 121 ✅ ±0 21s ⏱️ +5s Results for commit 210523f. ± Comparison against base commit 83f844f. This pull request removes 9 and adds 9 tests. Note that renamed tests count towards both.
|