compile function
void
compile(})
Compiles the given source
RSP document to the given output stream out
.
Notice that the caller has to close the output stream by himself.
imports
- additional imported packages, such as["package:foo/foo.dart"]
.
Implementation
void compile(String source, IOSink out, {
String? sourceName, String? destinationName,
Encoding encoding = utf8, bool verbose = false, bool lineNumber = false,
List<String>? imports}) {
Compiler(source, out, sourceName: sourceName, destinationName: destinationName,
encoding: encoding, verbose: verbose, lineNumber: lineNumber, imports: imports)
.compile();
}