-
Notifications
You must be signed in to change notification settings - Fork 4
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
Record Metapath expression text #330
Record Metapath expression text #330
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Looks good, but I am unclear as to what code replaces Axis functionality or subsumes it since all that code gets deleted in this PR from what I can tell. I left NOTE comments to discuss, but I am probably missing something obvious if it is not in the diff because it likely pre-exists.
core/src/main/java/gov/nist/secauto/metaschema/core/metapath/cst/AbstractExpressionVisitor.java
Show resolved
Hide resolved
core/src/main/java/gov/nist/secauto/metaschema/core/metapath/cst/CSTPrinter.java
Show resolved
Hide resolved
core/src/main/java/gov/nist/secauto/metaschema/core/metapath/cst/path/Axis.java
Show resolved
Hide resolved
The code was moved here: This approach is cleaner and eliminates the dependency on IExpression for Axis, which was the goal of this refactor. |
Woops, that answers that then. Well, I have resolved all comments and it is ready to go @david-waltermire. |
…xpression. This class now records the expression text scoped to the expression, which will support better error context in the future.
1f60312
to
70331d5
Compare
Committer Notes
Refactored Metapath expressions to use a common base class, AbstractExpression. This class now records the expression text scoped to the expression, which will support better error context in the future.
Also cleaned up some code that was producing some compile warnings.
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
Changes to Core Features: