| Index: pkg/compiler/lib/src/options.dart
|
| diff --git a/pkg/compiler/lib/src/options.dart b/pkg/compiler/lib/src/options.dart
|
| index e6d915bb7f644b7087a02afa8269076ef2452da8..cede0d120935b5e36241fac90f26725499abc80b 100644
|
| --- a/pkg/compiler/lib/src/options.dart
|
| +++ b/pkg/compiler/lib/src/options.dart
|
| @@ -16,6 +16,10 @@ abstract class ParserOptions {
|
|
|
| /// Support conditional directives, e.g., configurable imports.
|
| bool get enableConditionalDirectives;
|
| +
|
| + /// Support parsing of generic method declarations, and invocations of
|
| + /// methods where type arguments are passed.
|
| + bool get enableGenericMethodSyntax;
|
| }
|
|
|
| /// Options used for controlling diagnostic messages.
|
| @@ -147,6 +151,10 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
|
| /// Whether to enable the experimental conditional directives feature.
|
| final bool enableConditionalDirectives;
|
|
|
| + /// Support parsing of generic method declarations, and invocations of
|
| + /// methods where type arguments are passed.
|
| + final bool enableGenericMethodSyntax;
|
| +
|
| /// Whether the user specified a flag to allow the use of dart:mirrors. This
|
| /// silences a warning produced by the compiler.
|
| final bool enableExperimentalMirrors;
|
| @@ -279,6 +287,8 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
|
| enableAssertMessage: _hasOption(options, Flags.enableAssertMessage),
|
| enableConditionalDirectives:
|
| _hasOption(options, Flags.conditionalDirectives),
|
| + enableGenericMethodSyntax:
|
| + _hasOption(options, Flags.genericMethodSyntax),
|
| enableExperimentalMirrors:
|
| _hasOption(options, Flags.enableExperimentalMirrors),
|
| enableMinification: _hasOption(options, Flags.minify),
|
| @@ -345,6 +355,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
|
| bool emitJavaScript: true,
|
| bool enableAssertMessage: false,
|
| bool enableConditionalDirectives: false,
|
| + bool enableGenericMethodSyntax: false,
|
| bool enableExperimentalMirrors: false,
|
| bool enableMinification: false,
|
| bool enableNativeLiveTypeAnalysis: true,
|
| @@ -414,6 +425,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
|
| emitJavaScript: emitJavaScript,
|
| enableAssertMessage: enableAssertMessage,
|
| enableConditionalDirectives: enableConditionalDirectives,
|
| + enableGenericMethodSyntax: enableGenericMethodSyntax,
|
| enableExperimentalMirrors: enableExperimentalMirrors,
|
| enableMinification: enableMinification,
|
| enableNativeLiveTypeAnalysis: enableNativeLiveTypeAnalysis,
|
| @@ -464,6 +476,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
|
| this.emitJavaScript: true,
|
| this.enableAssertMessage: false,
|
| this.enableConditionalDirectives: false,
|
| + this.enableGenericMethodSyntax: false,
|
| this.enableExperimentalMirrors: false,
|
| this.enableMinification: false,
|
| this.enableNativeLiveTypeAnalysis: false,
|
|
|