Compiler class

The RSP compiler

Constructors

Compiler(String source, IOSink destination, {String? sourceName, String? destinationName, Encoding encoding = utf8, bool verbose = false, bool lineNumber = false, List<String>? imports})

Properties

destination IOSink
final
destinationName String?
final
encoding Encoding
final
hashCode int
The hash code for this object.
no setterinherited
lineNumber bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
final
sourceName String?
final
verbose bool
final

Methods

compile() → void
Compiles the given source into Dart code. Notice: it can be called only once. To compile the second time, you have to instantiate another Compiler.
forward(String method, [Map<String, String>? args, int? line]) → void
forwardUri(String uri, [Map<String, String>? args, int? line]) → void
Forward to the given URI.
include(String method, [Map<String, String>? args, int? line]) → void
Include the output of the given renderer
includeUri(String uri, [Map<String, String>? args, int? line]) → void
Include the given URI.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → void
push(Tag tag, [int? line]) → void
setPage(String? partOf, String? parts, String? imports, String? name, String? description, String? args, String? contentType, String? dart, String? lastModified, String? etag, [int? line]) → void
Sets the page information.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited