Skip to content

Commit

Permalink
Add CelStandardDeclaration to allow environment subsetting for type-c…
Browse files Browse the repository at this point in the history
…hecker

PiperOrigin-RevId: 672004289
  • Loading branch information
l46kok authored and copybara-github committed Sep 9, 2024
1 parent 10bb524 commit c7fbab4
Show file tree
Hide file tree
Showing 8 changed files with 1,483 additions and 852 deletions.
5 changes: 5 additions & 0 deletions checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ java_library(
name = "proto_expr_visitor",
exports = ["//checker/src/main/java/dev/cel/checker:proto_expr_visitor"],
)

java_library(
name = "standard_decl",
exports = ["//checker/src/main/java/dev/cel/checker:standard_decl"],
)
21 changes: 20 additions & 1 deletion checker/src/main/java/dev/cel/checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ CHECKER_LEGACY_ENV_SOURCES = [
"ExprChecker.java",
"ExprVisitor.java",
"InferenceContext.java",
"Standard.java",
"TypeFormatter.java",
"TypeProvider.java",
"Types.java",
Expand Down Expand Up @@ -166,6 +165,7 @@ java_library(
],
deps = [
":cel_ident_decl",
":standard_decl",
"//:auto_value",
"//common",
"//common:compiler_common",
Expand Down Expand Up @@ -217,3 +217,22 @@ java_library(
"//common:proto_ast",
],
)

java_library(
name = "standard_decl",
srcs = [
"CelStandardDeclaration.java",
],
tags = [
],
deps = [
":cel_ident_decl",
"//common:compiler_common",
"//common/types",
"//common/types:cel_types",
"//common/types:type_providers",
"//parser:operator",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
],
)
Loading

0 comments on commit c7fbab4

Please sign in to comment.