ruff/crates/ruff_python_index/src
Dhruv Manilawala f0046ab28e
Move has_comments to CommentRanges (#11495)
## Summary

This PR moves the `has_comments` function from `Indexer` to
`CommentRanges`. The main motivation is that the `CommentRanges` will
now be built by the parser which is shared between the linter and the
formatter. Thus, the `CommentRanges` will be removed from the `Indexer`.

## Test Plan

`cargo test`
2024-05-22 13:35:16 +00:00
..
comment_ranges.rs Approximate tokens len (#9546) 2024-01-19 17:39:37 +01:00
fstring_ranges.rs Track quoting style in the tokenizer (#10256) 2024-03-08 08:40:06 +00:00
indexer.rs Move has_comments to CommentRanges (#11495) 2024-05-22 13:35:16 +00:00
lib.rs Removing trailing whitespace inside multiline strings is unsafe (#9744) 2024-01-31 21:45:23 +00:00
multiline_ranges.rs Rename AnyStringKind -> AnyStringFlags (#11405) 2024-05-13 13:18:07 +00:00