Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Add some comments

+9
+9
compiler-core/src/type_/expression.rs
··· 185 185 pub(crate) struct ExprTyper<'a, 'b> { 186 186 pub(crate) environment: &'a mut Environment<'b>, 187 187 188 + // This is set to true if the previous expression that has been typed is 189 + // determined to always panic. 190 + // For example when typing a literal `panic`, this flag will be set to true. 191 + // The same goes, for example, if the branches of a case expression all 192 + // panic. 188 193 pub(crate) previous_panics: bool, 194 + 195 + // This is used to track if we've already warned for unreachable code. 196 + // After emitting the first unreachable code warning we never emit another 197 + // one to avoid flooding with repetitive warnings. 189 198 pub(crate) already_warned_for_unreachable_code: bool, 190 199 191 200 pub(crate) implementations: Implementations,