ocelot-ast 0.1.2

Abstract syntax tree types for the ocelot project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// String literal expression payload.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct StringLiteralExpression {
    pub value: String,
}

impl StringLiteralExpression {
    /// Creates a string literal expression payload.
    pub fn new(value: impl Into<String>) -> Self {
        Self {
            value: value.into(),
        }
    }
}