asBuilder method
Returns the compiler wrapped as a Builder
.
Implementation
Builder asBuilder({String extension = '.template.dart'}) {
return LibraryBuilder(
this,
formatOutput: (s) => _formatter.format(s),
generatedExtension: extension,
header: '',
);
}