We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ba811 commit 8c92e3dCopy full SHA for 8c92e3d
1 file changed
vlib/v/markused/walker.v
@@ -599,6 +599,9 @@ pub fn (mut w Walker) a_struct_info(sname string, info ast.Struct) {
599
}
600
601
pub fn (mut w Walker) fn_decl(mut node ast.FnDecl) {
602
+ if node == unsafe { nil } {
603
+ return
604
+ }
605
if node.language == .c {
606
w.mark_fn_as_used(node.fkey())
607
return
@@ -616,6 +619,9 @@ pub fn (mut w Walker) fn_decl(mut node ast.FnDecl) {
616
619
617
620
618
621
pub fn (mut w Walker) call_expr(mut node ast.CallExpr) {
622
623
624
625
for arg in node.args {
626
w.expr(arg.expr)
627
0 commit comments