Skip to content

Commit 24ca9cc

Browse files
committed
support boolean parameters to calls in analysis/docs
1 parent bf982cd commit 24ca9cc

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

@@ -543,6 +544,8 @@
543544
return typeIndexName(fnObj.type, wantHtml, wantLink);
544545
case typeKinds.Int:
545546
return token(value, tokenKinds.Number, wantHtml);
547+
case typeKinds.Bool:
548+
return token(value, tokenKinds.Bool, wantHtml);
546549
case typeKinds.Optional:
547550
if(value === 'null'){
548551
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
@@ -705,6 +705,10 @@ static void anal_dump_value(AnalDumpCtx *ctx, AstNode *source_node, ZigType *ty,
705705
jw_bigint(&ctx->jw, &value->data.x_bigint);
706706
return;
707707
}
708+
case ZigTypeIdBool: {
709+
jw_bool(&ctx->jw, &value->data.x_bool);
710+
return;
711+
}
708712
default:
709713
jw_null(&ctx->jw);
710714
return;

0 commit comments

Comments
 (0)