Skip to main content

model_core/
lib.rs

1//! Language-neutral source code metamodel.
2//!
3//! A [`Model`] is a set of entities (namespaces, files, types, callables,
4//! variables) linked by containment (parent) and by typed relations (calls,
5//! references, inheritance...), each relation keeping all its occurrence
6//! sites. Frontends fill a [`ModelBuilder`]; analyses read the frozen,
7//! compact [`Model`] through [`EntityRef`] and [`RelationRef`].
8
9mod builder;
10mod entity;
11mod key;
12mod model;
13mod relation;
14mod serial;
15mod source;
16mod strings;
17mod value;
18
19pub use builder::ModelBuilder;
20pub use entity::{EntityId, EntityKind, LanguageId};
21pub use key::{Descriptor, KeyError, Package, SCHEME, SymbolKey};
22pub use model::{EntityRef, MemoryStats, Model, RelationRef};
23pub use relation::{Provenance, RelationId, RelationKind};
24pub use source::Range;
25pub use value::{Props, Value};