mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-07 14:44:59 +00:00
glossary flat type (#7918)
This commit is contained in:
parent
a9a9486aeb
commit
edfff29342
2 changed files with 10 additions and 1 deletions
|
@ -401,6 +401,14 @@ Related definitions in the compiler:
|
|||
- old compiler: search "pub enum Content" in [types/src/subs.rs](crates/compiler/types/src/subs.rs)
|
||||
- new compiler: search "pub const Content" in [check/canonicalize/CIR.zig](src/check/canonicalize/CIR.zig)
|
||||
|
||||
## Flat Type
|
||||
|
||||
Represents types without indirection, it's the concrete form that types take after
|
||||
resolving [variables](#type-variable) and [aliases](#type-alias).
|
||||
|
||||
definitions in the compiler:
|
||||
- old compiler: search "pub enum FlatType" in [types/src/subs.rs](crates/compiler/types/src/subs.rs)
|
||||
- new compiler: search "pub const FlatType" in [types/types.zig](src/types/types.zig)
|
||||
|
||||
## Canonicalization
|
||||
|
||||
|
|
|
@ -208,7 +208,8 @@ pub const TypeIdent = struct {
|
|||
|
||||
// flat types //
|
||||
|
||||
/// A "flat" data type
|
||||
/// Represents type without indirection, it's the concrete form that a type
|
||||
/// takes after resolving type variables and aliases.
|
||||
pub const FlatType = union(enum) {
|
||||
str,
|
||||
box: Var,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue