Skip to content

Commit

Permalink
[vartype] add chantype because it is used with yletool
Browse files Browse the repository at this point in the history
  • Loading branch information
jajvirta committed Jul 4, 2024
1 parent 18a3a43 commit 087a5cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/vartype.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ func variableType(variable ast.Expr, depth int, hyphen bool, imports map[string]
varTypes = append(varTypes, variableType(arg, depth, hyphen, imports))
}
return sprintf(funcName+"(%s)", join(varTypes, ", "))
case *ast.ChanType:
return sprintf("chan")
case *ast.CompositeLit:
eltsType := variableType(t.Type, depth, hyphen, imports)
varTypes := []varTypeOutput{}
Expand Down

0 comments on commit 087a5cb

Please sign in to comment.