luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::records::ast_expr_constant_string::AstExprConstantString;

impl AstExprConstantString {
    pub fn is_quoted(&self) -> bool {
        self.quote_style == AstExprConstantString::QuotedSimple
            || self.quote_style == AstExprConstantString::QuotedRaw
    }
}

#[allow(non_snake_case)]
pub fn ast_expr_constant_string_is_quoted(this: &AstExprConstantString) -> bool {
    this.is_quoted()
}