Create a punctuation literal starting at the given position.
(c: char, span: Span)
| 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 { |