Switch from plain strings to a new Param class with separate name and anchor, and transform every param-like entity (FunctionParamInfo, AttributeInfo, or ProviderFieldInfo) into it.
This commit does not change rendering result in any way, but sets us up to make the following possible:
create a Param without a link (e.g. a "*" separator)
add leading "*"/"**" to the names - but not anchor links! - of args/kwargs
reorder *kwargs and keyword-only params when rendering summaries for functions and provider constructors
Switch from plain strings to a new Param class with separate name and anchor, and transform every param-like entity (FunctionParamInfo, AttributeInfo, or ProviderFieldInfo) into it.
This commit does not change rendering result in any way, but sets us up to make the following possible:
Working towards https://github.com/bazelbuild/stardoc/issues/225
(See work in progress: https://github.com/tetromino/stardoc/tree/varargs2)