13 lines
328 B
Plaintext
13 lines
328 B
Plaintext
// source_location.bux — Source position tracking
|
|
module SourceLocation {
|
|
|
|
struct SourceLocation {
|
|
line: uint32,
|
|
column: uint32,
|
|
offset: uint32,
|
|
}
|
|
|
|
func SourceLocation_New(line: uint32, column: uint32, offset: uint32) -> SourceLocation {
|
|
return SourceLocation { line: line, column: column, offset: offset };
|
|
}
|