typesrenderer
Imports
Consts
Procs
proc renderPlainSymbolName(n: PNode): string {...}{.raises: [], tags: [].}
-
Returns the first non '*' nkIdent node from the tree.
Use this on documentation name nodes to extract the raw symbol name, without decorations, parameters, or anything. That can be used as the base for the HTML hyperlinks.
Source Edit proc renderParamTypes(n: PNode; sep = defaultParamSeparator): string {...}{. raises: [Exception, ValueError], tags: [RootEffect].}
-
Returns the types contained in
n
joined bysep
.This proc expects to be passed as
Source Editn
the parameters of any callable. The string output is meant for the HTML renderer. If there are no parameters, the empty string is returned. The parameters will be joined bysep
but other characters may appear too, like[]
or|
.
© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/typesrenderer.html