Reflect

Doc Comments

❌ Not Implemented

Line comments starting with ///, as well as block comments starting with either /** or /++ that precede a declaration will be associated with that declaration as a documentation comment. The contents of consecutive comments of this kind will get concatenated into a single documentation text.

A documentation comment starts with a paragraph that represents the short description of the documented symbol, optionally followed by a number of paragraphs that form the detailed description.

The format of these paragraphs follows an extended Markdown syntax (⚠️ TODO).

After that, any number of generic or special purpose sections may follow, denoted a line containing their caption and a trailing colon (:). The available special purpose sections are:

Documentation generators typically render these sections in a different order or formatting.

In addition to the sections above, the following section names are encouraged to be used when additional standard sections are desired for a particular documentation generator:

Example

/** Computes the square of a number

	Parameters:
		- x: Number to square

	Returns:
		Returns the square of the specified number.
*/
function square(x) => x ^^ 2;