We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
str(Label(...))
1 parent 184796d commit d9beda5Copy full SHA for d9beda5
1 file changed
src/main/java/com/google/devtools/build/lib/cmdline/Label.java
@@ -55,7 +55,14 @@
55
*
56
* <p>Parsing is robust against bad input, for example, from the command line.
57
*/
58
-@StarlarkBuiltin(name = "Label", category = DocCategory.BUILTIN, doc = "A BUILD target identifier.")
+@StarlarkBuiltin(
59
+ name = "Label",
60
+ category = DocCategory.BUILTIN,
61
+ doc =
62
+ "A BUILD target identifier."
63
+ + "<p>For every <code>Label<code> instance <code>l</code>, the string representation"
64
+ + " <code>str(l)</code> has the property that <code>Label(str(l)) == l</code>,"
65
+ + " regardless of where the <code>Label()</code> call occurs.")
66
@AutoCodec
67
@Immutable
68
@ThreadSafe
0 commit comments