Generic types and functions diagrams
Start with how the application begins, then follow data between its folders. Open an operation to see its decisions, calls, failures and cleanup. Its explanation supplies the exact contract and linked dependencies.
This view includes 2 application source files. Package and interface boundaries show checked contracts; their runtime implementations are not expanded. The views describe the checked program, not desired requirements or a recorded execution.
Where execution begins
Providers
Formatter is provided by TextFormatter. The same instance is shared.
Startup
It sets formatter to the instance provided for Formatter. It prints formatter.title. It prints formatter.format for int with value 42. It sets box to a Box for string with value "inside a generic box". source
Data flow
Mermaid source
flowchart TD
n0["Startup"]
n1["types"]
n0 -->|"Box(value) / Box.get + 2 more → Box‹string› / string"| n1
Follow the data
Each row opens the complete operations and call sites behind one pair of logical units. A grouped arrow records calls between those units; connected arrows need not belong to the same execution path.
| From | To | Operations | Read |
|---|---|---|---|
| Startup | types | 4 | Inputs, results and call sites |
Data crossing these boundaries (4 contracts)
Startup → types
4 operations, 4 sites
Inputs: value: string. Result: Box<string>.
| Caller or entry | Evidence |
|---|---|
| Startup | Call site · Caller explanation |
No caller-supplied inputs. Result: string.
| Caller or entry | Evidence |
|---|---|
| Startup | Call site · Caller explanation |
Formatter.format · interface dispatch
Inputs: value: int. Result: string.
| Caller or entry | Evidence |
|---|---|
| Startup | Call site · Caller explanation |
Formatter.title · interface dispatch
No caller-supplied inputs. Result: string.
| Caller or entry | Evidence |
|---|---|
| Startup | Call site · Caller explanation |
Open a module
| Module | Read |
|---|---|
| main.aug | Flow and sequences · Explanation |
| types.aug | Flow and sequences · Explanation |
These are static call boundaries, not a request trace. Interface implementations and foreign internals stop at their checked contracts. Dotted arrows defer a callback or browser action. Imports alone do not imply a call.