CompilerFlags class
Compiler-wide configuration (flags) to allow opting in/out.
In some build environments flags are only configurable at the application level, in others they occur at the package level. This class is not opinionated and allows anything to be set, but has reasonable defaults set with an option to use defaults set by bazel or pub's build systems.
Constructors
-
CompilerFlags({bool enableDevTools = false, bool useLegacyStyleEncapsulation = false, bool forceMinifyWhitespace = false, bool emitComponentFactories = true, bool emitInjectableFactories = true, bool exportUserCodeFromTemplate = false, Map<
String, Set< policyExceptionInPackages = const {}, Map<String> >String, Set< policyExceptions = const {}, bool enableDataDebugSource = false})String> > -
const
-
CompilerFlags.parseArgs(List<
String> args, {CompilerFlags defaultTo = const CompilerFlags()}) -
Creates flags by parsing command-line arguments.
factory
- CompilerFlags.parseRaw(dynamic options, CompilerFlags defaultTo)
-
Parses a raw map of flags into CompilerFlags.
factory
Properties
- emitComponentFactories → bool
-
Whether to emit code supporting
SlowComponentLoader
.final - emitInjectableFactories → bool
-
Whether to emit code supporting
ReflectiveInjector
.final - enableDataDebugSource → bool
-
Whether to add the
data-debug-source
attribute to dom elements created from AngularDart templates.final - enableDevTools → bool
-
Whether to emit code that supports developer tooling.
final
- exportUserCodeFromTemplate → bool
-
Whether to emit
export {{file.dart}}
infile.template.dart
.final - forceMinifyWhitespace → bool
-
Whether to operate as if
preserveWhitespace: false
is always set.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
policyExceptionInPackages
→ Map<
String, Set< String> > -
Exceptions keyed by
PolicyName
=>Packages
.final -
policyExceptions
→ Map<
String, Set< String> > -
Exceptions keyed by
Name
->Paths
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useLegacyStyleEncapsulation → bool
-
Whether to opt-in to supporting a legacy mode of style encapsulation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited