aboutsummaryrefslogtreecommitdiff
path: root/kotlin/compiler_plugin.bzl
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-15 01:05:28 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-15 01:05:28 +0000
commitf410d39f9e6507e014ba0b1ceceaec598b6d5483 (patch)
tree216876fcf590f1cafc7bd635dc86e972521ed9d8 /kotlin/compiler_plugin.bzl
parent24396154a980126e9bf614e866509d51a292cf0c (diff)
parente4697353d03a4a6d18e081c0cd8d7ed39bb25977 (diff)
downloadbazelbuild-kotlin-rules-android14-d1-s3-release.tar.gz
Change-Id: I800c5671f61564f3492fa6de16219bdcdcb97c46
Diffstat (limited to 'kotlin/compiler_plugin.bzl')
-rw-r--r--kotlin/compiler_plugin.bzl13
1 files changed, 2 insertions, 11 deletions
diff --git a/kotlin/compiler_plugin.bzl b/kotlin/compiler_plugin.bzl
index 3527aee..15b7ff7 100644
--- a/kotlin/compiler_plugin.bzl
+++ b/kotlin/compiler_plugin.bzl
@@ -14,6 +14,8 @@
"""A rule for declaring and passing kotlinc plugins."""
+load("//:visibility.bzl", "RULES_KOTLIN")
+
_KtCompilerPluginInfo = provider(
doc = "Info for running a plugin that directly registers itself to kotlinc extension points",
fields = dict(
@@ -69,14 +71,3 @@ kt_compiler_plugin = rule(
KtCompilerPluginInfo,
],
)
-
-def _get_exported_plugins(_target, ctx_rule):
- return [t[KtCompilerPluginInfo] for t in getattr(ctx_rule.attr, "exported_plugins", []) if (KtCompilerPluginInfo in t)]
-
-kt_compiler_plugin_visitor = struct(
- name = "compiler_plugins",
- visit_target = _get_exported_plugins,
- filter_edge = None,
- finish_expansion = None,
- process_unvisited_target = None,
-)