triviaOf
Function: triviaOf()
triviaOf(
sf,node):string
Defined in: packages/content-mapper/src/context.ts:34
Read a node's leading trivia (comments), used to find JSDoc tags. The TS7 AST
package exposes no getJSDocTags helper, so tags are matched on trivia text.
Parameters
sf
SourceFile
containing source file
node
Node
the node
Returns
string
raw trivia text