writeWith

fun FileSpec.writeWith(codeOutputStreamMaker: CodeOutputStreamMaker, error: (FileSpec) -> Unit = {})