luaur_ast/methods/ast_expr_constant_string_is_quoted.rs
1use crate::records::ast_expr_constant_string::AstExprConstantString;
2
3impl AstExprConstantString {
4 pub fn is_quoted(&self) -> bool {
5 self.quote_style == AstExprConstantString::QuotedSimple
6 || self.quote_style == AstExprConstantString::QuotedRaw
7 }
8}
9
10#[allow(non_snake_case)]
11pub fn ast_expr_constant_string_is_quoted(this: &AstExprConstantString) -> bool {
12 this.is_quoted()
13}