1#![cfg_attr(all(coverage, test), feature(coverage_attribute))]
18
19mod builtin;
20mod bundle;
21mod judge;
22mod module;
23mod names;
24mod nested;
25mod path;
26mod role;
27mod shape;
28#[expect(
29 clippy::match_same_arms,
30 reason = "generated from std, where a literal form's role marks the type of its own role"
31)]
32#[rustfmt::skip]
33mod std_roles;
34mod types;
35
36pub use builtin::{Builtin, Head};
37pub use bundle::{BundleError, bundled_file};
38pub use judge::{Crossing, Reason, Refusal, Settings, Step, judge};
39pub use module::{
40 KEYWORDS, LibraryLayout, ModulePath, Placement, Segments, SegmentsError, SourcePath,
41 SourcePathError, Spelled, Tree, lowercase_name,
42};
43pub use names::{NameIndex, SharedKey, Spelling};
44pub use nested::{Fold, Nested};
45pub use path::normal_path;
46pub use role::{
47 CallField, CodeStepCtor, DecodeErrorField, JsonNamesCtor, JsonProblemCtor, JsonStepCtor,
48 JsonValueCtor, Members, Mismatch, OptionCtor, ResultCtor, Role, StdEnum, StdRecord, StopCtor,
49 ToolProblemCtor, TypeMismatchField,
50};
51pub use shape::{Constructor, EnumShape, Payload, RecordShape};
52pub use std_roles::{STD_TYPES, Shape};
53pub use types::{Body, Decl, DeclId, Identity, MemberDoc, Type, Versions};
54
55fn index(n: u32) -> usize {
58 usize::try_from(n).expect("a u32 fits a usize")
59}
60
61#[doc(hidden)]
62pub use flow_span::spelled as __spelled;