Properly provide documentation for the providers
load(":j2cl_js_common.bzl", "J2CL_JS_TOOLCHAIN_ATTRS", "create_js_lib_struct", "j2cl_js_provider")
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
-# Constructor for the Bazel provider for J2CL.
-# Note that data under "_private_" considered private internal data so do not use.
-J2clInfo = provider(fields = ["_private_", "_is_j2cl_provider"])
+J2clInfo = provider(
+ "Provider for the J2CL compilation.\n" +
+ "NOTE: Data under '_private_' is considered private internal data so do not use.",
+ fields = ["_private_", "_is_j2cl_provider"],
+)
def _get_jsinfo_provider(j2cl_info):
return j2cl_info._private_.js_info
