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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.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/dart_backend/backend_ast_to_frontend_ast.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart b/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
index 03f0ba1f9735b059d0a33c903c13d3294e543501..469858d0d96e36c16871b0cf6b2a647e83d6f27e 100644
--- a/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
@@ -495,7 +495,8 @@ class TreePrinter {
: makeFunctionBody(exp.body);
result = new tree.FunctionExpression(
constructorName(exp),
- // TODO(eernst): retrieve and pass the actual type variables.
+ // GENERIC_METHODS: In order to support generic methods fully,
+ // we must retrieve and pass the actual type variables here.
null, // typeVariables
parameters,
body,
@@ -516,7 +517,8 @@ class TreePrinter {
tree.Node body = makeFunctionBody(exp.body);
result = new tree.FunctionExpression(
functionName(exp),
- // TODO(eernst): retrieve and pass the actual type variables.
+ // GENERIC_METHODS: In order to support generic methods fully,
+ // we must retrieve and pass the actual type variables here.
null, // typeVariables
parameters,
body,
@@ -802,7 +804,8 @@ class TreePrinter {
} else if (stmt is FunctionDeclaration) {
tree.FunctionExpression function = new tree.FunctionExpression(
stmt.name != null ? makeIdentifier(stmt.name) : null,
- // TODO(eernst): retrieve and pass the actual type variables.
+ // GENERIC_METHODS: In order to support generic methods fully,
+ // we must retrieve and pass the actual type variables here.
null, // typeVariables
makeParameters(stmt.parameters),
makeFunctionBody(stmt.body),
@@ -971,7 +974,8 @@ class TreePrinter {
if (param.isFunction) {
tree.Node definition = new tree.FunctionExpression(
makeIdentifier(param.name),
- // TODO(eernst): retrieve and pass the actual type variables.
+ // GENERIC_METHODS: In order to support generic methods fully,
+ // we must retrieve and pass the actual type variables here.
null, // typeVariables
makeParameters(param.parameters),
null, // body

Powered by Google App Engine
This is Rietveld 408576698