Expand description
The world of the compiler.
A world is a collection of resources that are used by the compiler. A world is created by a universe.
The universe is not shared between threads. The world can be shared between threads.
Both the universe and the world can be mutated. The difference is that the universe is mutated to change the global state of the compiler, while the world is mutated to run some intermediate computation.
Note: If a world is mutated, the cache of the world is invalidated.
Structs§
- Code
Span Report World - A world that can be used for source code reporting.
- Compiler
Universe - A universe that provides access to the operating system and the compiler.
- Compiler
World - The world of the compiler.
- Revising
Universe - The state of the universe during revision.
- Task
Inputs - The inputs for the compiler.
- World
With Main - A world with a main file.
Traits§
- Source
World - A world that can be used for source code reporting.
Functions§
- with_
main - Runs a world with a main file.