tieskedh / KotlinPoetDSL

A DSL for KotlinPoet
https://kotlinpoetdsl.devhaan.nl
MIT License
27 stars 0 forks source link

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

Closed tieskedh closed 4 years ago

tieskedh commented 6 years ago
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.