oxc_regular_expression 0.132.0

A collection of JavaScript tools written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use oxc_span::Span;

use crate::parser::reader::ast::CodePoint;

#[derive(Debug)]
pub struct StringLiteral {
    #[allow(unused, clippy::allow_attributes)]
    pub span: Span,
    #[allow(unused, clippy::allow_attributes)]
    pub kind: StringLiteralKind,
    pub body: Vec<CodePoint>,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum StringLiteralKind {
    Double,
    Single,
}