func asInitVarDecl()

in Sources/MockoloFramework/Models/ParamModel.swift [78:89]


    func asInitVarDecl(eraseType: Bool) -> String? {
        if self.inInit, self.needVarDecl {
            let type: `Type`
            if eraseType {
                type = Type(.anyType)
            } else {
                type = self.type
            }
            return applyVarTemplate(type: type)
        }
        return nil
    }