#![cfg_attr(all(coverage, test), feature(coverage_attribute))]
mod builtin;
mod bundle;
mod judge;
mod module;
mod names;
mod nested;
mod path;
mod role;
mod shape;
#[expect(
clippy::match_same_arms,
reason = "generated from std, where a literal form's role marks the type of its own role"
)]
#[rustfmt::skip]
mod std_roles;
mod types;
pub use builtin::{Builtin, Head};
pub use bundle::{BundleError, bundled_file};
pub use judge::{Crossing, Reason, Refusal, Settings, Step, judge};
pub use module::{
KEYWORDS, LibraryLayout, ModulePath, Placement, Segments, SegmentsError, SourcePath,
SourcePathError, Spelled, Tree, lowercase_name,
};
pub use names::{NameIndex, SharedKey, Spelling};
pub use nested::{Fold, Nested};
pub use path::normal_path;
pub use role::{
CallField, CodeStepCtor, DecodeErrorField, JsonNamesCtor, JsonProblemCtor, JsonStepCtor,
JsonValueCtor, Members, Mismatch, OptionCtor, ResultCtor, Role, StdEnum, StdRecord, StopCtor,
ToolProblemCtor, TypeMismatchField,
};
pub use shape::{Constructor, EnumShape, Payload, RecordShape};
pub use std_roles::{STD_TYPES, Shape};
pub use types::{Body, Decl, DeclId, Identity, MemberDoc, Type, Versions};
fn index(n: u32) -> usize {
usize::try_from(n).expect("a u32 fits a usize")
}
#[doc(hidden)]
pub use flow_span::spelled as __spelled;