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

Method may_hold_comment

codegraph-kernel/src/tsjs/extractors.rs:1040–1044  ·  view source on GitHub ↗

mayHoldComment: whether a comment could begin in `[start, end)`.

(&self, start: usize, end: usize)

Source from the content-addressed store, hash-verified

1038
1039 /// mayHoldComment: whether a comment could begin in `[start, end)`.
1040 fn may_hold_comment(&self, start: usize, end: usize) -> bool {
1041 let marks = self.comment_marks();
1042 let at = marks.partition_point(|&mark| (mark as usize) < start);
1043 at < marks.len() && (marks[at] as usize) < end
1044 }
1045
1046 /// extractObjectDataMembers: the data members of the literal a module-scope
1047 /// owner is initialized with. A documented member becomes a `field` node,

Callers 2

Calls 2

comment_marksMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected