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

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

Issue 2001393003: Revision of "Adjusts dart2js backend to handle method type arguments" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fba840121bcd8f8d12070d2c1eabe91b0833efc8..013e997541e91a8ab08213666f5775e0cc00ad7c 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';
static const String resolveOnly = '--resolve-only';
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698