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

Function is_comment

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

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

(node: Node)

Source from the content-addressed store, hash-verified

133
134/// DART_COMMENTS (dart.ts) — line and block comments, and dartdoc.
135fn is_comment(node: Node) -> bool {
136 matches!(node.kind(), "comment" | "documentation_comment")
137}
138
139/// dartPrevNamed (dart.ts) — the named sibling before `node`, past comments:
140/// `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