Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary type support #60

Merged
merged 1 commit into from
Feb 23, 2015
Merged

Arbitrary type support #60

merged 1 commit into from
Feb 23, 2015

Conversation

philhofer
Copy link
Member

Fixes #60 .

Attempting to always propagate type information into method generation has some nasty complexity drawbacks. Consider the following:

type Insane [3]map[string]struct{A, B int}

I would argue that the generator should support the above, although, at its present state, it doesn't.

This PR refactors everything to allow method generation on arbitrary types. Then, after processing each type individually, the generator can choose to inline the type's method.

Warning: this is still WIP.

Review on Reviewable

@philhofer philhofer changed the title methods for reading [const]byte Arbitrary type supoort Feb 19, 2015
@philhofer philhofer changed the title Arbitrary type supoort Arbitrary type support Feb 23, 2015
philhofer added a commit that referenced this pull request Feb 23, 2015
@philhofer philhofer merged commit 7898f0d into master Feb 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant