Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Support array parsing with length using binary expression and parenthesis #575

Closed
sryoya opened this issue Jun 13, 2021 · 1 comment · Fixed by #603
Closed

Support array parsing with length using binary expression and parenthesis #575

sryoya opened this issue Jun 13, 2021 · 1 comment · Fixed by #603

Comments

@sryoya
Copy link
Contributor

sryoya commented Jun 13, 2021

Requested feature
Mockgen should be able to parse an array using a binary expression or parenthesis in its length. They are not parsed correctly yet.
e.g. [1 + 2]int, [(2)]int

Why the feature is needed
As they are available expressions in the Go specifications, Mockgen should be able to handle them.

(Optional) Proposed solution A clear description of a proposed method for
More work needs to be done on the changes were made in #520 and #569

@sryoya
Copy link
Contributor Author

sryoya commented Jun 13, 2021

@codyoss I already have the change ready in my local. As soon as you give me the go-ahead, I can get you a PR 👋

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant