yog-script-analyze 0.2.2

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
13
14
15
16
//! How a value is handed to a method (`ys.md` §3, Ownership): C#'s `in`,
//! `ref` and `out`, and Rust's moves. Written at both ends — the parameter
//! and the argument — so a reader of either sees it.

/// A parameter's or an argument's way of passing.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Pass {
    /// `in`: lent to read (Rust's `&T`).
    In,
    /// `ref`: lent to change; the caller's must be `let mut` (`&mut T`).
    Ref,
    /// `out`: the method gives it (`out let x` at the call).
    Out,
    /// `move`: owned from then on; the caller's is gone after.
    Move,
}