luau-syntax 0.732.0

Luau lexer, parser, AST, CST, and source utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use luau_syntax::ast_names::AstName;

// Parser.test.cpp: AstName_comparison
#[test]
fn ast_name_comparison() {
    assert!(AstName::empty_key() >= AstName::empty_key());

    let one = AstName::from_static("one");
    let two = AstName::from_static("two");

    assert_ne!(one < two, two < one);
}