android13/external/stardoc/test/testdata/attribute_defaults_test/golden.md

3.9 KiB
Executable File

my_rule

my_rule(name, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)

This is my rule. It does stuff.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
a Some bool Boolean optional False
b Some int Integer optional 2
c Some int_list List of integers optional [0, 1]
d Some label Label optional //foo:bar
e Some label_keyed_string_dict Dictionary: Label -> String optional {"//foo:bar": "hello", "//bar:baz": "goodbye"}
f Some label_list List of labels optional ["//foo:bar", "//bar:baz"]
g Some string String optional ""
h Some string_dict Dictionary: String -> String optional {"animal": "bunny", "color": "orange"}
i Some string_list List of strings optional ["cat", "dog"]
j Some string_list_dict Dictionary: String -> List of strings optional {"animal": ["cat", "bunny"], "color": ["blue", "orange"]}
k Some bool Boolean required
l Some int Integer required
m Some int_list List of integers required
n Some label Label required
o Some label_keyed_string_dict Dictionary: Label -> String required
p Some label_list List of labels required
q Some string String required
r Some string_dict Dictionary: String -> String required
s Some string_list List of strings required
t Some string_list_dict Dictionary: String -> List of strings required
u - String optional ""
v - Label optional None
w - Integer optional 0

my_aspect

my_aspect(name, y, z)

This is my aspect. It does stuff.

ASPECT ATTRIBUTES

Name Type
deps String
attr_aspect String

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
y some string String optional "why"
z - String required