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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart

Issue 641923003: Remove the need for functionSignature. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
index 320d3a0135f1d64185cff808dbfb36e764cbfe73..30cbc56f933b0548de4cfe0d0ee5a4b86947a6cb 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
@@ -891,7 +891,9 @@ class TreePrinter {
makeEmptyModifiers(), // TODO: Function parameter modifiers?
null, // initializers
null); // get/set
- setElement(definition, param.element, param);
+ if (param.element != null) {
+ setElement(definition, param.element, param);
+ }
if (param.defaultValue != null) {
return new tree.SendSet(
null,
@@ -915,7 +917,9 @@ class TreePrinter {
} else {
definition = makeIdentifier(param.name);
}
- setElement(definition, param.element, param);
+ if (param.element != null) {
+ setElement(definition, param.element, param);
+ }
return new tree.VariableDefinitions(
param.type == null ? null : makeType(param.type),
makeEmptyModifiers(), // TODO: Parameter modifiers?

Powered by Google App Engine
This is Rietveld 408576698