MCPcopy Create free account
hub / github.com/davidblewett/rure-python / is_one_line

Method is_one_line

regex/regex-syntax/src/ast/mod.rs:418–420  ·  view source on GitHub ↗

Returns true if and only if this span occurs on a single line.

(&self)

Source from the content-addressed store, hash-verified

416
417 /// Returns true if and only if this span occurs on a single line.
418 pub fn is_one_line(&self) -> bool {
419 self.start.line == self.end.line
420 }
421
422 /// Returns true if and only if this span is empty. That is, it points to
423 /// a single position in the concrete syntax of a regular expression.

Callers 1

addMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected