alpha
Login
or
Join now
nandi.uk
/
gleam
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Fork of daniellemaywood.uk/gleam — Wasm codegen work
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Use different syntax
author
GearsDatapacks
committer
Louis Pilfold
date
1 year ago
(Jul 6, 2025, 2:01 PM +0100)
commit
82f0718e
82f0718edc91208de41ced8690883a3f2319faed
parent
357ab020
357ab0205f84e43a59537b5a006428573d707f72
+4
-2
1 changed file
Expand all
Collapse all
Unified
Split
compiler-core
src
ast.rs
+4
-2
compiler-core/src/ast.rs
View file
Reviewed
···
1602
1602
pub fn pattern_location(&self) -> SrcSpan {
1603
1603
let start = self.pattern.first().map(|pattern| pattern.location().start);
1604
1604
1605
1605
-
let end = if let Some(last_alternative) = self.alternative_patterns.last()
1606
1606
-
&& let Some(last_pattern) = last_alternative.last()
1605
1605
+
let end = if let Some(last_pattern) = self
1606
1606
+
.alternative_patterns
1607
1607
+
.last()
1608
1608
+
.and_then(|patterns| patterns.last())
1607
1609
{
1608
1610
Some(last_pattern.location().end)
1609
1611
} else {