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

Function lit

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

Create a verbatim literal starting at the given position.

(c: char, start: usize)

Source from the content-addressed store, hash-verified

2371
2372 /// Create a verbatim literal starting at the given position.
2373 fn lit(c: char, start: usize) -> Ast {
2374 lit_with(c, span(start..start + c.len_utf8()))
2375 }
2376
2377 /// Create a punctuation literal starting at the given position.
2378 fn punct_lit(c: char, span: Span) -> Ast {

Callers

nothing calls this directly

Calls 4

lit_withFunction · 0.85
spanFunction · 0.85
len_utf8Method · 0.80
LiteralClass · 0.70

Tested by

no test coverage detected