Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

20.2 @arg and cross-links

@arg only on callable parameters; @ref for validated symbol links.

@arg and cross-links

Use @arg(name) only on callable parameters—functions, methods, and contract methods. Not on record fields. Not on type members. Not on mirrored SDK struct fields where the type already tells the story.

Cross-reference another symbol with @ref(Fully.Qualified.Name) so the compiler can validate the target against the same index that drives api.json.

Use a tag when it supplies information that is not already obvious from the declaration. @arg gives a parameter-specific explanation; @ref gives a navigable relationship. Keep the prose close to the declaration so a signature change prompts the same review as its documentation.

The semantic pipeline reserves W1610–W1625 for documentation issues—orphan @arg, duplicate tags, @returns on non-callables. Fix warnings before you call the docs “done.”

Verify docs in CI