std docs: print bool values
parent
90f7034b69
commit
36d586336c
|
@ -550,6 +550,8 @@
|
|||
console.trace("TODO non-null optional value printing");
|
||||
return "TODO";
|
||||
}
|
||||
case typeKinds.Bool:
|
||||
return token(value, tokenKinds.Null, wantHtml);
|
||||
default:
|
||||
console.trace("TODO implement getValueText for this type:", zigAnalysis.typeKinds[typeObj.kind]);
|
||||
return "TODO";
|
||||
|
|
|
@ -701,6 +701,10 @@ static void anal_dump_value(AnalDumpCtx *ctx, AstNode *source_node, ZigType *ty,
|
|||
}
|
||||
return;
|
||||
}
|
||||
case ZigTypeIdBool: {
|
||||
jw_string(&ctx->jw, value->data.x_bool ? "true" : "false");
|
||||
return;
|
||||
}
|
||||
case ZigTypeIdInt: {
|
||||
jw_bigint(&ctx->jw, &value->data.x_bigint);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue