mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
translate-c: use .identifier tokens in .identifier AST nodes
This commit is contained in:
parent
be737bb5cc
commit
d6d4f2481d
@ -1139,7 +1139,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
|
||||
.string_literal => {
|
||||
const payload = node.castTag(.string_literal).?.data;
|
||||
return c.addNode(.{
|
||||
.tag = .identifier,
|
||||
.tag = .string_literal,
|
||||
.main_token = try c.addToken(.string_literal, payload),
|
||||
.data = undefined,
|
||||
});
|
||||
@ -1147,7 +1147,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
|
||||
.char_literal => {
|
||||
const payload = node.castTag(.char_literal).?.data;
|
||||
return c.addNode(.{
|
||||
.tag = .identifier,
|
||||
.tag = .char_literal,
|
||||
.main_token = try c.addToken(.char_literal, payload),
|
||||
.data = undefined,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user