Slice fix

This commit is contained in:
Alexandros Naskos 2020-06-18 02:49:34 +03:00
parent 7f6f9ec64e
commit c33e01544a

View File

@ -455,9 +455,6 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D
try await @asyncCall(child_frame, {}, writeNodeTokens, builder, arena, store, info.len_expr);
},
.SliceType, .PtrType => |info| {
if (prefix_op.op == .SliceType)
try writeToken(builder, prefix_op.op_token + 1, tok_type);
if (info.align_info) |align_info| {
try writeToken(builder, align_info.node.firstToken() - 2, .keyword);
try await @asyncCall(child_frame, {}, writeNodeTokens, builder, arena, store, align_info.node);