func asInitVarDecl()

in Sources/MockoloFramework/Models/ParamModel.swift [71:82]


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