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

Method error

regex/regex-syntax/src/ast/parse.rs:390–396  ·  view source on GitHub ↗

Create a new error with the given span and error type.

(&self, span: Span, kind: ast::ErrorKind)

Source from the content-addressed store, hash-verified

388
389 /// Create a new error with the given span and error type.
390 fn error(&self, span: Span, kind: ast::ErrorKind) -> ast::Error {
391 ast::Error {
392 kind: kind,
393 pattern: self.pattern().to_string(),
394 span: span,
395 }
396 }
397
398 /// Return the current offset of the parser.
399 ///

Callers 15

into_class_set_itemMethod · 0.45
into_class_literalMethod · 0.45
next_capture_indexMethod · 0.45
add_capture_nameMethod · 0.45
pop_groupMethod · 0.45
pop_group_endMethod · 0.45
unclosed_class_errorMethod · 0.45
parse_groupMethod · 0.45
parse_capture_nameMethod · 0.45
parse_flagsMethod · 0.45

Calls 1

patternMethod · 0.45

Tested by

no test coverage detected