| ... | @@ -1264,7 +1264,9 @@ fn renderExpression( | ... | @@ -1264,7 +1264,9 @@ fn renderExpression( |
| 1264 | } | 1264 | } |
| 1265 | | 1265 | |
| 1266 | const src_params_trailing_comma = blk: { | 1266 | const src_params_trailing_comma = blk: { |
| 1267 | const maybe_comma = tree.prevToken(builtin_call.rparen_token); | 1267 | if (builtin_call.params.len < 2) break :blk false; |
| | 1268 | const last_node = builtin_call.params.at(builtin_call.params.len - 1).*; |
| | 1269 | const maybe_comma = tree.nextToken(last_node.lastToken()); |
| 1268 | break :blk tree.tokens.at(maybe_comma).id == .Comma; | 1270 | break :blk tree.tokens.at(maybe_comma).id == .Comma; |
| 1269 | }; | 1271 | }; |
| 1270 | | 1272 | |
| ... | @@ -1277,7 +1279,6 @@ fn renderExpression( | ... | @@ -1277,7 +1279,6 @@ fn renderExpression( |
| 1277 | var it = builtin_call.params.iterator(0); | 1279 | var it = builtin_call.params.iterator(0); |
| 1278 | while (it.next()) |param_node| { | 1280 | while (it.next()) |param_node| { |
| 1279 | try renderExpression(allocator, stream, tree, indent, start_col, param_node.*, Space.None); | 1281 | try renderExpression(allocator, stream, tree, indent, start_col, param_node.*, Space.None); |
| 1280 | // try renderParamDecl(allocator, stream, tree, indent, start_col, param_node.*, Space.None); | | |
| 1281 | | 1282 | |
| 1282 | if (it.peek() != null) { | 1283 | if (it.peek() != null) { |
| 1283 | const comma_token = tree.nextToken(param_node.*.lastToken()); | 1284 | const comma_token = tree.nextToken(param_node.*.lastToken()); |