Commit 36d586336c
Changed files (2)
lib
std
special
docs
src
stage1
lib/std/special/docs/main.js
@@ -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";
src/stage1/dump_analysis.cpp
@@ -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;