@@ -1512,7 +1512,7 @@ fn collectContainerNodes(
15121512 .identifier_token_index = > | token | token ,
15131513 .expr_node_index = > | node | {
15141514 if (try builder .analyser .resolveTypeOfNode (.of (node , handle ))) | ty | {
1515- try ty .getAllTypesWithHandlesArraySet (builder .analyser , & types_with_handles );
1515+ _ = try ty .getAllTypesWithHandlesArraySet (builder .analyser , & types_with_handles );
15161516 }
15171517 return types_with_handles .keys ();
15181518 },
@@ -1532,7 +1532,7 @@ fn collectContainerNodes(
15321532 const var_decl = handle .tree .fullVarDecl (nodes [1 ]).? ;
15331533 if (nodes [0 ].toOptional () == var_decl .ast .type_node ) {
15341534 if (try builder .analyser .resolveTypeOfNode (.of (nodes [0 ], handle ))) | ty | {
1535- try ty .getAllTypesWithHandlesArraySet (builder .analyser , & types_with_handles );
1535+ _ = try ty .getAllTypesWithHandlesArraySet (builder .analyser , & types_with_handles );
15361536 return types_with_handles .keys ();
15371537 }
15381538 }
@@ -1578,7 +1578,7 @@ fn collectBuiltinContainerNodes(
15781578 dot_context .fn_arg_index ,
15791579 handle .tree .source [loc .start .. loc .end ],
15801580 )) | ty | {
1581- try ty .getAllTypesWithHandlesArraySet (builder .analyser , types_with_handles );
1581+ _ = try ty .getAllTypesWithHandlesArraySet (builder .analyser , types_with_handles );
15821582 }
15831583}
15841584
@@ -1595,7 +1595,7 @@ fn collectVarAccessContainerNodes(
15951595 const result = try symbol_decl .resolveType (analyser ) orelse return ;
15961596 const type_expr = try analyser .resolveDerefType (result ) orelse result ;
15971597 if (! type_expr .isFunc ()) {
1598- try type_expr .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1598+ _ = try type_expr .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
15991599 return ;
16001600 }
16011601
@@ -1604,13 +1604,13 @@ fn collectVarAccessContainerNodes(
16041604 if (dot_context .likely == .enum_comparison or dot_context .need_ret_type ) { // => we need f()'s return type
16051605 var node_type = try analyser .resolveReturnType (type_expr ) orelse return ;
16061606 if (try analyser .resolveUnwrapErrorUnionType (node_type , .payload )) | unwrapped | node_type = unwrapped ;
1607- try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1607+ _ = try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16081608 return ;
16091609 }
16101610 const param_index = dot_context .fn_arg_index ;
16111611 if (param_index >= info .parameters .len ) return ;
16121612 const param_type = info .parameters [param_index ].type ;
1613- try param_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1613+ _ = try param_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16141614}
16151615
16161616fn collectFieldAccessContainerNodes (
@@ -1632,12 +1632,12 @@ fn collectFieldAccessContainerNodes(
16321632 const container = try analyser .resolveDerefType (result ) orelse result ;
16331633 if (try analyser .resolveUnwrapErrorUnionType (container , .payload )) | unwrapped | {
16341634 if (unwrapped .isEnumType () or unwrapped .isUnionType ()) {
1635- try unwrapped .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1635+ _ = try unwrapped .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16361636 return ;
16371637 }
16381638 }
16391639 // if (dot_context.likely == .enum_literal and !(container.isEnumType() or container.isUnionType())) return;
1640- try container .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1640+ _ = try container .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16411641 return ;
16421642 };
16431643 const name = offsets .locToSlice (handle .tree .source , name_loc );
@@ -1649,7 +1649,7 @@ fn collectFieldAccessContainerNodes(
16491649 if (try analyser .resolveOptionalUnwrap (node_type )) | unwrapped | node_type = unwrapped ;
16501650 }
16511651 if (! node_type .isFunc ()) {
1652- try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1652+ _ = try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16531653 continue ;
16541654 }
16551655
@@ -1658,7 +1658,7 @@ fn collectFieldAccessContainerNodes(
16581658 if (dot_context .need_ret_type ) { // => we need f()'s return type
16591659 node_type = try analyser .resolveReturnType (node_type ) orelse continue ;
16601660 if (try analyser .resolveUnwrapErrorUnionType (node_type , .payload )) | unwrapped | node_type = unwrapped ;
1661- try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1661+ _ = try node_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16621662 continue ;
16631663 }
16641664 // don't have the luxury of referencing an `Ast.full.Call`
@@ -1681,7 +1681,7 @@ fn collectFieldAccessContainerNodes(
16811681 const param_index = dot_context .fn_arg_index + additional_index ;
16821682 if (param_index >= params .len ) continue ;
16831683 const param_type = params [param_index ].type ;
1684- try param_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1684+ _ = try param_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
16851685 }
16861686}
16871687
@@ -1703,7 +1703,7 @@ fn collectEnumLiteralContainerNodes(
17031703 var member_type = try member_decl .resolveType (analyser ) orelse continue ;
17041704 // Unwrap `x{ .fld_w_opt_type =`
17051705 if (try analyser .resolveOptionalUnwrap (member_type )) | unwrapped | member_type = unwrapped ;
1706- try member_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
1706+ _ = try member_type .getAllTypesWithHandlesArraySet (analyser , types_with_handles );
17071707 }
17081708}
17091709
@@ -1727,5 +1727,5 @@ fn collectKeywordFnContainerNodes(
17271727 }
17281728 };
17291729 const ty = try builder .analyser .instanceStdBuiltinType (builtin_type_name ) orelse return ;
1730- try ty .getAllTypesWithHandlesArraySet (builder .analyser , types_with_handles );
1730+ _ = try ty .getAllTypesWithHandlesArraySet (builder .analyser , types_with_handles );
17311731}
0 commit comments