Skip to content

Commit

Permalink
add chan type (#1)
Browse files Browse the repository at this point in the history
* [vartype] add chantype because it is used with yletool

* debug

* more
  • Loading branch information
jajvirta authored Jul 4, 2024
1 parent 18a3a43 commit b27bb0b
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 b27bb0b

Please sign in to comment.