Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: pkg/compiler/lib/src/commandline_options.dart

Issue 1976213002: Adjusts dart2js backend to handle method type arguments. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Made MethodTypeVariableType malformed, eliminated malformMethodTypeVariableType Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/commandline_options.dart
diff --git a/pkg/compiler/lib/src/commandline_options.dart b/pkg/compiler/lib/src/commandline_options.dart
index 9c0c2449cec994a30fb9e39e92453f03d22da771..f3828411f8db98ab5cd04a59019e84386d83af22 100644
--- a/pkg/compiler/lib/src/commandline_options.dart
+++ b/pkg/compiler/lib/src/commandline_options.dart
@@ -52,6 +52,17 @@ class Flags {
static const String conditionalDirectives = '--conditional-directives';
// Experimental flags.
+
+ // Considerations about this feature (esp. locations where generalizations
+ // or changes are required for full support of generic methods) are marked
+ // with 'GENERIC_METHODS'. The approach taken is to parse generic methods,
+ // introduce AST nodes for them, generate corresponding types (such that
+ // front end treatment is consistent with the code that programmers wrote),
+ // but considering all method type variables to have bound `dynamic` no
+ // matter which bound they have syntactically (such that their value as types
+ // is unchecked), and then replacing method type variables by a `DynamicType`
+ // (such that the backend does not need to take method type arguments into
+ // account).
static const String genericMethodSyntax = '--generic-method-syntax';
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | pkg/compiler/lib/src/compile_time_constants.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698