Open
Description
/// Emit one line of code.
mutating func emit<S: StringProtocol>(_ line: S) {
assert(!line.contains("\n")) // <---------
currentLineNumber += 1
if includeLineNumbers { code += "\(String(format: "%3i", currentLineNumber)). " }
code += currentIndention + line + "\n"
}
sometimes, TemplateLiteral expression may contains multiples line, that assert seems not to must.
Metadata
Metadata
Assignees
Labels
No labels