Open
Description
Consider this example:
/**
* Adds two numbers together.
*
* @remarks
* This method is part of the {@link core-libary/Math | Math subsystem}.
*
* @param x - The first number to add
* @param y - The second number to add
* @returns The sum of `x` and `y`
*
* @beta
*/
function add(x: number, y: number): number;
Is the ordering of tags important? Would this be legal:
/**
* @beta
* @returns The sum of `x` and `y`
* @param y - The second number to add
* @param x - The first number to add
* Adds two numbers together.
*
* @remarks
* This method is part of the {@link core-libary/Math | Math subsystem}.
*/
function add(x: number, y: number): number;
What about this?
/**
* @beta @returns The sum of `x` and `y`
* @param y - The second number to add @param x - The first number to add
* Adds two numbers together. @remarks This method is part of
* the {@link core-libary/Math | Math subsystem}.
*/
function add(x: number, y: number): number;
Some questions:
- If it's not legal, what's the best way to specify which orders are allowable?
- What should the parser do with ambiguous orderings?
- Should the TSDoc library include an operation for normalizing an AST?