yog-script-analyze 0.2.1

Yog Script (.ys, .yns) analyzed: its lexer, parser and syntax tree, names resolved, the class index model — what the build and the editors read a source with.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

/// Every one of yog-event's events is a group's, none hiding another of
/// the same name (`player/session` `Join` and `player/life` `Death` are
/// both `Player`'s).
#[test]
fn every_event_has_a_place_of_its_own() {
    let events: usize = SURFACE.groups.values().map(|g| g.events.len()).sum();
    assert_eq!(events, yog_event::all().len());
    assert!(SURFACE.groups["Player"].events.contains_key("Join"));
    assert!(SURFACE.structs.contains_key("Player.JoinArgs"));
}