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
//! `ref` — a value lent to change.

use crate::ast::Modifier;
use crate::words::{Role, Word};

pub static WORD: Word = Word {
    text: "ref",
    doc: "A value lent to change (Rust's `&mut`): `void Charge(ref i32 energy)`, called \
          `Charge(ref energy)` on a `let mut`. It lives only for the call: never kept in a field \
          or a lambda. `ref struct Cursor<'a>` is a value that holds borrows.",
    reserved: true,
    roles: &[Role::Part, Role::Modifier(Modifier::Ref)],
};