Skip to content

Commit

Permalink
Fix docstring in proto_common
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 445149402
  • Loading branch information
comius authored and copybara-github committed Apr 28, 2022
1 parent 5343d7c commit bc1d31c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/main/starlark/builtins_bzl/common/proto/proto_common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def _compile(
of the command line.
additional_tools: (list[File]) Additional tools to add to the action.
additional_inputs: (Depset[File]) Additional input files to add to the action.
resource_set:
(func) A callback function that is passed to the created action.
resource_set: (func) A callback function that is passed to the created action.
See `ctx.actions.run`, `resource_set` parameter for full definition of
the callback.
experimental_progress_message: Overrides progres_message from the toolchain.
Expand Down Expand Up @@ -212,11 +211,9 @@ def _experimental_should_generate_code(
shouldn't generate code.
Args:
proto_library_target:
(Target) The proto_library to generate the sources for.
proto_library_target: (Target) The proto_library to generate the sources for.
Obtained as the `target` parameter from an aspect's implementation.
proto_lang_toolchain_info:
(ProtoLangToolchainInfo) The proto lang toolchain info.
proto_lang_toolchain_info: (ProtoLangToolchainInfo) The proto lang toolchain info.
Obtained from a `proto_lang_toolchain` target or constructed ad-hoc.
rule_name: (str) Name of the rule used in the failure message.
Expand Down Expand Up @@ -252,10 +249,8 @@ def _declare_generated_files(
declares new output files.
Args:
actions:
(ActionFactory) Obtained by ctx.actions, used to declare the files.
proto_library_target:
(Target) The proto_library to generate the files for.
actions: (ActionFactory) Obtained by ctx.actions, used to declare the files.
proto_library_target: (Target) The proto_library to generate the files for.
Obtained as the `target` parameter from an aspect's implementation.
extension: (str) The extension to use for generated files.
name_mapper: (str->str) A function mapped over the base filename without
Expand Down

0 comments on commit bc1d31c

Please sign in to comment.