mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-09 03:54:22 +00:00
Import cycle checking
This commit is contained in:
@@ -149,6 +149,11 @@ struct TokenPos {
|
||||
isize column;
|
||||
};
|
||||
|
||||
TokenPos token_pos(String file, isize line, isize column) {
|
||||
TokenPos pos = {file, line, column};
|
||||
return pos;
|
||||
}
|
||||
|
||||
i32 token_pos_cmp(TokenPos a, TokenPos b) {
|
||||
if (a.line == b.line) {
|
||||
if (a.column == b.column) {
|
||||
|
||||
Reference in New Issue
Block a user