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

Configure Feed

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

Use different syntax

+4 -2
+4 -2
compiler-core/src/ast.rs
··· 1602 1602 pub fn pattern_location(&self) -> SrcSpan { 1603 1603 let start = self.pattern.first().map(|pattern| pattern.location().start); 1604 1604 1605 - let end = if let Some(last_alternative) = self.alternative_patterns.last() 1606 - && let Some(last_pattern) = last_alternative.last() 1605 + let end = if let Some(last_pattern) = self 1606 + .alternative_patterns 1607 + .last() 1608 + .and_then(|patterns| patterns.last()) 1607 1609 { 1608 1610 Some(last_pattern.location().end) 1609 1611 } else {