on master help sign in
Add the column to the nameOf identity (file:line:col:name)

nameOf x now returns file.knot:line:col:name — the declaration line AND column. Suite 291/0.

commit7900ab495a465b3d09fab8fa361c73b90c1df339 authoriko <mail@iko.soy> dateTue 1 Sep 2026, 05:13 (1 month ago) parent06a0893
1 file changed+2−2
crates/knot-compiler/src/codegen.rs+2−2
crates/knot-compiler/src/codegen.rs+2−2
@@ -16408,8 +16408,8 @@ impl<M: cranelift_module::Module> Codegen<M> {
1640816408 } else {
1640916409 expr.span
1641016410 };
16411− let (line, _) = knot::diagnostic::line_col(&self.source_text, span.start);
16412− format!("{}:{}:{}", self.source_name, line, name)
16411+ let (line, col) = knot::diagnostic::line_col(&self.source_text, span.start);
16412+ format!("{}:{}:{}:{}", self.source_name, line, col, name)
1641316413 }
1641416414
1641516415 /// Resolve a value's binding name (the innermost named binding). For a