1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Canonical signature context for ambiguous enum member resolution.
//!
//! The canonical catalog pins the expected enum domain of selected call
//! argument positions (e.g. `createHudText` argument 9 is `HudReeval`). The
//! Workshop parse path uses those expected domains to resolve a bare enum
//! member spelling that is ambiguous across domains (e.g. the shared `None`
//! member of `ChaseTimeReeval` / `ChaseRateReeval` / `Invis`).
//!
//! This module defines the minimal parse-context contract between the
//! catalog owner and the Workshop frontend. It deliberately carries no
//! signature data: the catalog data file remains the only domain table.
//! (Extracted from the Wright-authored `wright_core::signatures` module;
//! see [`docs/provenance.md`](https://github.com/wrightkit/workshop-rs/blob/main/docs/provenance.md).)
/// Supplies the expected enum domain for a call argument during parsing.
///
/// The parser asks for the expected domain of argument `arg_index` (0-based)
/// of the call whose Workshop catalog id is `catalog_id`. Implementations
/// must return the domain only when the canonical signature pins exactly one;
/// returning `None` keeps an ambiguous bare member rejected.
/// A context with no signature metadata. Ambiguous bare enum members stay
/// rejected. Used by callers that intentionally need context-free parsing.
;
/// A context chain: consult `first`, then fall back to `second`.
///
/// Callers that combine signature sources (e.g. a provider manifest followed
/// by the canonical catalog) chain them; neither is authoritative alone.