From dd4ddfd4a78e187f3fd39978d569f9b2ae17968b Mon Sep 17 00:00:00 2001 From: kaipi Date: Mon, 12 Feb 2018 13:15:26 -0800 Subject: Add missing parameter documentation to the which method in repository_ctx. PiperOrigin-RevId: 185424287 --- .../repository/skylark/SkylarkRepositoryContext.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib') diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java index d445a91567..1243bba49b 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java @@ -421,11 +421,19 @@ public class SkylarkRepositoryContext { } @SkylarkCallable( - name = "which", - doc = - "Returns the path of the corresponding program or None " - + "if there is no such program in the path", - allowReturnNones = true + name = "which", + doc = + "Returns the path of the corresponding program or None " + + "if there is no such program in the path.", + allowReturnNones = true, + parameters = { + @Param( + name = "program", + type = String.class, + named = false, + doc = "Program to find in the path." + ), + } ) public SkylarkPath which(String program) throws EvalException { if (program.contains("/") || program.contains("\\")) { -- cgit v1.2.3