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

functionBody must accept code that's broader than CodeBlockBuilder #34

Closed
tieskedh opened this issue Oct 27, 2018 · 0 comments · Fixed by #62
Closed

functionBody must accept code that's broader than CodeBlockBuilder #34

tieskedh opened this issue Oct 27, 2018 · 0 comments · Fixed by #62
Milestone

Comments

@tieskedh
Copy link
Owner

buildFunc{
    func("ho"){
        // this should be broader than CodeBlockBuilder
    }
}

Therefor, make an interface with all the interfaces of CodeBlockBuilder.
let CodeBlockBuilder implement that interface.
Make a class FunctionBlockBuilder and let it delegate the interface to a CodeBlockBuilder stored inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant