aboutsummaryrefslogtreecommitdiff
path: root/kotlin/compiler_plugin.bzl
diff options
context:
space:
mode:
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,
-)