Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 parser/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ java_library(
exports = ["//parser/src/main/java/dev/cel/parser:parser_builder"],
)

java_library(
name = "unparser_visitor",
exports = ["//parser/src/main/java/dev/cel/parser:unparser_visitor"],
)

java_library(
name = "macro",
exports = ["//parser/src/main/java/dev/cel/parser:macro"],
Expand Down
2 changes: 0 additions & 2 deletions 2 parser/src/main/java/dev/cel/parser/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ java_library(
deps = [
":operator",
"//:auto_value",
"//common",
"//common:compiler_common",
"//common:source_location",
"//common/ast",
"//common/ast:expr_factory",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
"@maven//:org_jspecify_jspecify",
],
)

Expand Down
4 changes: 2 additions & 2 deletions 4 parser/src/main/java/dev/cel/parser/CelUnparserVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private void visitIndex(CelCall expr, String op) {
stringBuilder.append(RIGHT_BRACKET);
}

private void visitMaybeNested(CelExpr expr, boolean nested) {
protected void visitMaybeNested(CelExpr expr, boolean nested) {
if (nested) {
stringBuilder.append(LEFT_PAREN);
}
Expand All @@ -329,7 +329,7 @@ private void visitMaybeNested(CelExpr expr, boolean nested) {
}
}

private boolean isBinaryOrTernaryOperator(CelExpr expr) {
protected boolean isBinaryOrTernaryOperator(CelExpr expr) {
if (!isComplexOperator(expr)) {
return false;
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.