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

Function punct_lit

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

Create a punctuation literal starting at the given position.

(c: char, span: Span)

Source from the content-addressed store, hash-verified

2376
2377 /// Create a punctuation literal starting at the given position.
2378 fn punct_lit(c: char, span: Span) -> Ast {
2379 Ast::Literal(ast::Literal {
2380 span: span,
2381 kind: ast::LiteralKind::Punctuation,
2382 c: c,
2383 })
2384 }
2385
2386 /// Create a verbatim literal with the given span.
2387 fn lit_with(c: char, span: Span) -> Ast {

Callers

nothing calls this directly

Calls 1

LiteralClass · 0.70

Tested by

no test coverage detected