MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isCommentType

Function isCommentType

src/extraction/syntax-tokens.ts:88–90  ·  view source on GitHub ↗

* Anything a grammar calls a comment. * * Substring rather than equality because the spelling is per-grammar: * `comment`, `line_comment`, `block_comment`, `doc_comment`, `html_comment`, * `comment_directive`, `preproc_comment`.

(type: string)

Source from the content-addressed store, hash-verified

86 * `comment_directive`, `preproc_comment`.
87 */
88function isCommentType(type: string): boolean {
89 return type.includes('comment');
90}
91
92/**
93 * A node whose leaves are string content unless an interpolation interrupts.

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected