Module world

Source
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§

CodeSpanReportWorld
A world that can be used for source code reporting.
CompilerUniverse
A universe that provides access to the operating system and the compiler.
CompilerWorld
The world of the compiler.
RevisingUniverse
The state of the universe during revision.
TaskInputs
The inputs for the compiler.
WorldWithMain
A world with a main file.

Traits§

SourceWorld
A world that can be used for source code reporting.

Functions§

with_main
Runs a world with a main file.