Skip to content

Commit 86dfff8

Browse files
committed
ast: add size size of named_args, minor print tweak
1 parent b196b9e commit 86dfff8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ast/named_argument.c2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ fn SrcLoc NamedArgument.getEndLoc(const NamedArgument* e) {
5757
fn void NamedArgument.print(const NamedArgument* e, string_buffer.Buf* out, u32 indent) {
5858
e.base.printKind(out, indent);
5959
e.base.printTypeBits(out);
60-
out.color(col_Value);
6160
out.space();
62-
out.add("name: ");
61+
out.color(col_Value);
6362
out.add(idx2name(e.name));
6463
out.newline();
6564
e.inner.print(out, indent + 1);

ast/utils.c2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ static_assert(40, sizeof(ExplicitCastExpr));
7474
static_assert(40, sizeof(BuiltinExpr));
7575
static_assert(40, sizeof(FieldDesignatedInitExpr));
7676
static_assert(48, sizeof(ConditionalOperator));
77+
static_assert(32, sizeof(NamedArgument));
7778

7879
static_assert(8, sizeof(QualType));
7980
static_assert(16, sizeof(Type));

0 commit comments

Comments
 (0)