Skip to content

Commit 8cf3d64

Browse files
committed
Jak to the rescue
1 parent 946f863 commit 8cf3d64

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

compiler-core/src/ast.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,13 +2337,26 @@ pub enum AssignmentKind<Expression> {
23372337
/// let assert x = ...
23382338
Assert {
23392339
/// The src byte span of the `let assert`
2340+
///
2341+
/// ```gleam
2342+
/// let assert Wibble = todo
2343+
/// ^^^^^^^^^^
2344+
/// ```
23402345
location: SrcSpan,
2346+
23412347
/// The byte index of the start of `assert`
2348+
///
2349+
/// ```gleam
2350+
/// let assert Wibble = todo
2351+
/// ^
2352+
/// ```
23422353
assert_keyword_start: u32,
2354+
23432355
/// The message given to the assertion:
2356+
///
23442357
/// ```gleam
23452358
/// let asset Ok(a) = something() as "This will never fail"
2346-
/// // ^ Message
2359+
/// ^^^^^^^^^^^^^^^^^^^^^^
23472360
/// ```
23482361
message: Option<Expression>,
23492362
},

0 commit comments

Comments
 (0)