diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-15 01:05:28 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-15 01:05:28 +0000 |
commit | f410d39f9e6507e014ba0b1ceceaec598b6d5483 (patch) | |
tree | 216876fcf590f1cafc7bd635dc86e972521ed9d8 /kotlin/compiler_plugin.bzl | |
parent | 24396154a980126e9bf614e866509d51a292cf0c (diff) | |
parent | e4697353d03a4a6d18e081c0cd8d7ed39bb25977 (diff) | |
download | bazelbuild-kotlin-rules-android14-d1-s3-release.tar.gz |
Snap for 9746098 from e4697353d03a4a6d18e081c0cd8d7ed39bb25977 to udc-d1-releaseandroid-14.0.0_r9android-14.0.0_r8android-14.0.0_r7android-14.0.0_r6android-14.0.0_r5android-14.0.0_r4android-14.0.0_r3android-14.0.0_r12android-14.0.0_r11android-14.0.0_r10android14-d1-s7-releaseandroid14-d1-s6-releaseandroid14-d1-s5-releaseandroid14-d1-s4-releaseandroid14-d1-s3-releaseandroid14-d1-s2-releaseandroid14-d1-s1-releaseandroid14-d1-release
Change-Id: I800c5671f61564f3492fa6de16219bdcdcb97c46
Diffstat (limited to 'kotlin/compiler_plugin.bzl')
-rw-r--r-- | kotlin/compiler_plugin.bzl | 13 |
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, -) |