mayHoldComment: whether a comment could begin in `[start, end)`.
(&self, start: usize, end: usize)
| 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, |
no test coverage detected