Skip to content

Commit

Permalink
148 tok_i's to go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Jan 25, 2024
1 parent 057699b commit 3cb0893
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 264 deletions.
2 changes: 1 addition & 1 deletion src/aro/Attribute.zig
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn diagnoseField(
) !?Diagnostics.Message {
if (res.val.opt_ref == .none) {
if (Wanted == Identifier and node.tag == .decl_ref_expr) {
@field(@field(arguments, decl.name), field.name) = Identifier{ .tok = node.data.decl_ref };
@field(@field(arguments, decl.name), field.name) = Identifier{ .tok = p.tokens.items[node.data.decl_ref] };
return null;
}
return invalidArgMsg(Wanted, .expression);
Expand Down
Loading

0 comments on commit 3cb0893

Please sign in to comment.