diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-30 18:47:00 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 17:54:07 -0700 |
| commit | e41e75a4862e955266a7e760133ea757e5afb8ce (patch) | |
| tree | 03dcceb5e2cdf88289040cc8b37c79c58f0a0a4c /src/AstGen.zig | |
| parent | a2ff3a13fe22b5693bbd719bf4eaee06a9d6be57 (diff) | |
| download | zig-e41e75a4862e955266a7e760133ea757e5afb8ce.tar.gz zig-e41e75a4862e955266a7e760133ea757e5afb8ce.zip | |
stage2: update for new usingnamespace semantics
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index c96a97ddeb..570b2cd943 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -9072,14 +9072,6 @@ const GenZir = struct { return @intCast(u32, gz.decl_line + astgen.source_line); } - fn tokSrcLoc(gz: GenZir, token_index: ast.TokenIndex) LazySrcLoc { - return .{ .token_offset = token_index - gz.srcToken() }; - } - - fn nodeSrcLoc(gz: GenZir, node_index: ast.Node.Index) LazySrcLoc { - return .{ .node_offset = gz.nodeIndexToRelative(node_index) }; - } - fn nodeIndexToRelative(gz: GenZir, node_index: ast.Node.Index) i32 { return @bitCast(i32, node_index) - @bitCast(i32, gz.decl_node_index); } |
