Skip to content

Commit

Permalink
Internal Changes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 551627153
  • Loading branch information
l46kok authored and copybara-github committed Jul 27, 2023
1 parent 943d746 commit 69e026c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
10 changes: 8 additions & 2 deletions checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ java_library(
)

java_library(
name = "provider_legacy",
name = "type_provider_legacy",
deprecation = "Please use CelTypeProvider instead in //common/types:type_providers",
exports = ["//checker/src/main/java/dev/cel/checker:type_provider_legacy"],
)

java_library(
name = "type_provider_legacy_impl",
visibility = ["//visibility:public"],
exports = ["//checker/src/main/java/dev/cel/checker:provider_legacy"],
exports = ["//checker/src/main/java/dev/cel/checker:type_provider_legacy_impl"],
)

java_library(
Expand Down
28 changes: 26 additions & 2 deletions checker/src/main/java/dev/cel/checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,30 @@ CHECKER_LEGACY_ENV_SOURCES = [
"Types.java",
]

java_library(
name = "type_provider_legacy",
srcs = [
"DescriptorTypeProvider.java",
"TypeProvider.java",
"Types.java",
],
tags = [
],
deps = [
"//:auto_value",
"//common/annotations",
"//common/internal:file_descriptor_converter",
"//common/types",
"//common/types:cel_types",
"//common/types:type_providers",
"@cel_spec//proto/dev/cel/expr:expr_java_proto",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_jspecify_jspecify",
],
)

java_library(
name = "checker",
srcs = CHECKER_SOURCES,
Expand All @@ -44,7 +68,7 @@ java_library(
":checker_builder",
":checker_legacy_environment",
":proto_type_mask",
":provider_legacy",
":type_provider_legacy_impl",
"//:auto_value",
"//common",
"//common:compiler_common",
Expand Down Expand Up @@ -115,7 +139,7 @@ java_library(
)

java_library(
name = "provider_legacy",
name = "type_provider_legacy_impl",
srcs = ["TypeProviderLegacyImpl.java"],
tags = [
],
Expand Down
2 changes: 1 addition & 1 deletion checker/src/test/java/dev/cel/checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ java_library(
"//checker:checker_legacy_environment",
"//checker:proto_expr_visitor",
"//checker:proto_type_mask",
"//checker:provider_legacy",
"//checker:type_inferencer",
"//checker:type_provider_legacy_impl",
"//common",
"//common:compiler_common",
"//common:proto_ast",
Expand Down

0 comments on commit 69e026c

Please sign in to comment.