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

Function lit_with

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

Create a verbatim literal with the given span.

(c: char, span: Span)

Source from the content-addressed store, hash-verified

2385
2386 /// Create a verbatim literal with the given span.
2387 fn lit_with(c: char, span: Span) -> Ast {
2388 Ast::Literal(ast::Literal {
2389 span: span,
2390 kind: ast::LiteralKind::Verbatim,
2391 c: c,
2392 })
2393 }
2394
2395 /// Create a concatenation with the given range.
2396 fn concat(range: Range<usize>, asts: Vec<Ast>) -> Ast {

Callers 1

litFunction · 0.85

Calls 1

LiteralClass · 0.70

Tested by

no test coverage detected