std docs: print bool values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user