MCPcopy Create free account
hub / github.com/astral-sh/ruff / new

Method new

crates/ruff_python_parser/src/string.rs:102–110  ·  view source on GitHub ↗
(source: &'src str, flags: AnyStringFlags, offset: TextSize, range: TextRange)

Source from the content-addressed store, hash-verified

100
101impl<'src> StringParser<'src> {
102 fn new(source: &'src str, flags: AnyStringFlags, offset: TextSize, range: TextRange) -> Self {
103 Self {
104 source,
105 cursor: 0,
106 flags,
107 offset,
108 range,
109 }
110 }
111
112 #[inline]
113 fn skip_bytes(&mut self, bytes: usize) -> &str {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected