Skip to content

Commit 2b9b91e

Browse files
committed
support boolean parameters to calls in analysis/docs
1 parent a506269 commit 2b9b91e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lib/std/special/docs/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@
367367
.tok-number {
368368
color: #008080;
369369
}
370+
.tok-bool {
371+
color: #0086b3;
372+
}
370373
.tok-type {
371374
color: #458;
372375
font-weight: bold;

lib/std/special/docs/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
Function: 'tok-fn',
5858
Null: 'tok-null',
5959
Number: 'tok-number',
60+
Bool: 'tok-bool',
6061
Type: 'tok-type',
6162
};
6263

@@ -556,6 +557,8 @@
556557
return typeIndexName(fnObj.type, wantHtml, wantLink);
557558
case typeKinds.Int:
558559
return token(value, tokenKinds.Number, wantHtml);
560+
case typeKinds.Bool:
561+
return token(value, tokenKinds.Bool, wantHtml);
559562
case typeKinds.Optional:
560563
if(value === 'null'){
561564
return token(value, tokenKinds.Null, wantHtml);

src/stage1/dump_analysis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ static void anal_dump_value(AnalDumpCtx *ctx, AstNode *source_node, ZigType *ty,
723723
jw_bigint(&ctx->jw, &value->data.x_bigint);
724724
return;
725725
}
726+
case ZigTypeIdBool: {
727+
jw_bool(&ctx->jw, &value->data.x_bool);
728+
return;
729+
}
726730
default:
727731
jw_null(&ctx->jw);
728732
return;

0 commit comments

Comments
 (0)