Structure
MTLTextStatement
A statement that outputs literal text to the current writer.
struct MTLTextStatement
Overview
Text statements form the foundation of MTL template output, representing the literal text portions of templates that are copied directly to the generated output.
Example Usage
let text = MTLTextStatement(value: "public class ")
Topics
Initializers
?
init(value:multiLines:newLineNeeded:)
Creates a new text statement.
Instance Properties
V
multiLines
Whether this statement spans multiple lines.
V
newLineNeeded
Whether a newline should be added after this text.
V
value
The literal text to output.
Instance Methods
F
execute(in:)
Executes the statement within the specified execution context.