| author | |
| committer | |
| log | 36d586336c4d0fd60034dd1f930cfecb6d8cc84c |
| tree | dda216438f671cbecbbacdffeedd0459b39d5b6e |
| parent | 90f7034b69e59c3deac4fc8850682b2d750793a4 |
2 files changed, 6 insertions(+), 0 deletions(-)
lib/std/special/docs/main.js+2| ... | ... | @@ -550,6 +550,8 @@ |
| 550 | 550 | console.trace("TODO non-null optional value printing"); |
| 551 | 551 | return "TODO"; |
| 552 | 552 | } |
| 553 | case typeKinds.Bool: | |
| 554 | return token(value, tokenKinds.Null, wantHtml); | |
| 553 | 555 | default: |
| 554 | 556 | console.trace("TODO implement getValueText for this type:", zigAnalysis.typeKinds[typeObj.kind]); |
| 555 | 557 | return "TODO"; |
src/stage1/dump_analysis.cpp+4| ... | ... | @@ -701,6 +701,10 @@ static void anal_dump_value(AnalDumpCtx *ctx, AstNode *source_node, ZigType *ty, |
| 701 | 701 | } |
| 702 | 702 | return; |
| 703 | 703 | } |
| 704 | case ZigTypeIdBool: { | |
| 705 | jw_string(&ctx->jw, value->data.x_bool ? "true" : "false"); | |
| 706 | return; | |
| 707 | } | |
| 704 | 708 | case ZigTypeIdInt: { |
| 705 | 709 | jw_bigint(&ctx->jw, &value->data.x_bigint); |
| 706 | 710 | return; |