GeneratedOutput constructor
Creates a new output instance from a generator and its output content.
The output must be non-empty and pre-trimmed. The generator description is automatically derived from the generator.
@param generator The generator that produced this output @param output The generated code content
Implementation
GeneratedOutput(Generator generator, this.output)
: assert(output.isNotEmpty),
// assuming length check is cheaper than simple string equality
assert(output.length == output.trim().length),
generatorDescription = _toString(generator);