Compiler constructor

Compiler(
  1. String source,
  2. IOSink destination, {
  3. String? sourceName,
  4. String? destinationName,
  5. Encoding encoding = utf8,
  6. bool verbose = false,
  7. bool lineNumber = false,
  8. List<String>? imports,
})

Implementation

Compiler(String source, this.destination, {
    this.sourceName, this.destinationName, this.encoding = utf8,
    this.verbose = false, this.lineNumber = false, List<String>? imports}):
    this.source = source = source.replaceAll("\r\n", "\n"),
    _len = source.length,
    this._defImports = imports {
      //to Unix format since _write assumes it
  _tagCtxs.add(_current = _TagContext.root(this, destination));
}