Iterates over all comments owned by node or its children.
node
declare const node: ts.Node;for (const {pos, text} of iterateComment(node) { console.log(`Found comment at position ${pos}: '${text}'.`);}; Copy
declare const node: ts.Node;for (const {pos, text} of iterateComment(node) { console.log(`Found comment at position ${pos}: '${text}'.`);};
Iterates over all comments owned by
nodeor its children.