compile method
Uint8List
compile(
- String content, {
- String? sourceName,
- CompilerConfig? config,
- bool isModuleEntryScript = false,
- Version? version,
Compile a string into bytecode. This won't execute the code, so runtime errors will not be reported.
Implementation
Uint8List compile(
String content, {
String? sourceName,
CompilerConfig? config,
bool isModuleEntryScript = false,
Version? version,
}) {
final source = HTSource(content,
fullName: sourceName,
type: isModuleEntryScript
? HTResourceType.hetuScript
: HTResourceType.hetuModule);
return _compileSource(
source,
version: version,
);
}