Compiler enum

All the Dart compilers supported by the test runner.

Inheritance
Available extensions

Values

dart2js → const Compiler

The production Dart to Javascript compiler (whole world, optimizing).

const Compiler('Dart2Js', 'dart2js')
dart2wasm → const Compiler

Experimental Dart to Wasm compiler.

const Compiler('Dart2Wasm', 'dart2wasm')
exe → const Compiler

Compiles dart code to a native executable. This compiler does not support code assets from build and link hooks.

const Compiler('Exe', 'exe')
cli → const Compiler

Compiles dart code to a native CLI bundle. This compiler supports code assets from build and link hooks.

const Compiler('Cli', 'cli')
kernel → const Compiler

The standard compiler for vm tests, compiles tests to kernel before running them on the VM.

const Compiler('Kernel', 'kernel')
source → const Compiler

Runs tests directly from source, with no precompilation.

const Compiler('Source', 'source')

Properties

hashCode → int
The hash code for this object.
no setterinherited
identifier → String
The identifier used to look up the compiler.
final
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String
The human-friendly name of the compiler.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() → Object
Converts this into a JSON-safe object that can be converted back to a Compiler using Compiler.deserialize.
toString() → String
A string representation of this object.
override

Operators

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

Constants

builtIn → const List<Compiler>
The compilers that are supported by the test runner by default.
values → const List<Compiler>
A constant List of the values in this enum, in order of their declaration.