Skip to content

Commit

Permalink
Allow API docs for non-Starlark-defined attributes to be (optionally)…
Browse files Browse the repository at this point in the history
… extracted

Since ExtractorContext is now non-trivial, convert it to a record with an
autobuilder.

This also means finally adding support for tristate, distributions, label dict,
and the various genquery-specific attribute types. (To support extracting the
default value of distributions, we also add support for non-Starlark Set values
to Attribute.valueToStarlark().)

PiperOrigin-RevId: 675169119
  • Loading branch information
Googler authored and copybara-github committed Sep 16, 2024
1 parent e9226a2 commit 3b700ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/bazel/src/main/protobuf/stardoc_output.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ enum AttributeType {
STRING_LIST_DICT = 11;
OUTPUT = 12;
OUTPUT_LIST = 13;
LABEL_DICT_UNARY = 14;
}

// Representation of a Starlark rule definition.
Expand Down

0 comments on commit 3b700ea

Please sign in to comment.