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
//! A source file as a Domain value.
//!
//! `SourceUnit` is the framework-free representation of a Rust source file
//! passed between Application use-cases and Adapter-layer analyzers. It
//! intentionally carries no AST — parsing happens in the adapter that
//! consumes the unit. This keeps the Domain free of `syn` and makes
//! `SourceUnit` trivially `Send + Sync`.
//!
//! Methods are exercised by tests but not yet consumed by the pipeline;
//! allow dead code at the module boundary until Phase 5.
use ;
/// A Rust source file: its path and UTF-8 contents.