swc_ecma_regexp/parser/reader/string_literal_parser/
ast.rs1use swc_common::Span;
2
3#[derive(Debug)]
4pub struct StringLiteral {
5 #[allow(unused, clippy::allow_attributes)]
6 pub span: Span,
7 #[allow(unused, clippy::allow_attributes)]
8 pub kind: StringLiteralKind,
9 pub body: Vec<CodePoint>,
10}
11
12#[derive(Debug, Clone, Copy, PartialEq, Eq)]
13pub enum StringLiteralKind {
14 Double,
15 Single,
16}
17
18#[derive(Debug, Clone, Copy)]
21pub struct CodePoint {
22 pub span: Span,
23 pub value: u32,
25}