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

Function is_comment

codegraph-kernel/src/dart.rs:182–184  ·  view source on GitHub ↗

DART_COMMENTS (dart.ts) — line and block comments, and dartdoc.

(node: Node)

Source from the content-addressed store, hash-verified

180
181/// DART_COMMENTS (dart.ts) — line and block comments, and dartdoc.
182fn is_comment(node: Node) -> bool {
183 matches!(node.kind(), "comment" | "documentation_comment")
184}
185
186/// dartPrevNamed (dart.ts) — the named sibling before `node`, past comments:
187/// `tester //` + newline + `.state(…)` puts the comment, not `tester`, right

Callers 3

prev_namedFunction · 0.70
next_namedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected