yog-script-analyze 0.4.0

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
17
18
namespace System;

/// What may fail: a value, or why it isn't there — Rust's `Result`.
/// `try F()` gives the value or returns the `Err` from the caller.
[Intrinsic]
public enum Result<T, TError> {
    Ok(T Value),
    Err(TError Error);

    public readonly bool IsOk();
    public readonly bool IsErr();
    /// The value; a panic when it's an `Err`.
    public readonly T Unwrap();
    /// The value; a panic with `message` when it's an `Err`.
    public readonly T Expect(string message);
    /// The value, or `fallback` when it's an `Err`.
    public readonly T UnwrapOr(T fallback);
}