Expand description
Checks a programโs parsed files in phases: declarations, state, functions, then the UI. Functions are checked before the UI so the UI knows what state every function call reads.
Modulesยง
- args ๐
- Matching call arguments to parameters: positional ones by order, named ones by name.
- builtins ๐
- Calls to built-in functions.
- consts ๐
- Element arguments that must be written literally: layout numbers, fixed text, flags and styles.
- env ๐
- What the checker knows while it walks a body: locals in scope, what context it is in, and which state the code it has seen reads and writes.
- expr ๐
- Expressions and places.
- menu ๐
- Menus: the menu barโs menus, their items and submenus, and the itemsโ shortcuts.
- stmt ๐
- Statements in function bodies and button actions.
- ui ๐
- Window and view bodies: elements, conditional and repeated UI, and what each dynamic part of the UI reads.
Structsยง
Enumsยง
- Global ๐
Functionsยง
- check ๐
- Checks
filesas one program; the first is the entry file. - items ๐
- Every top-level item of the program, file by file.
- local_
types ๐ - The type of each of a bodyโs locals, by id.
- top_
level_ ๐call - A top-level statement, such as a windowโs or a menuโs call, and the name written before it, if any.