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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart

Issue 614933002: Add FunctionElement.hasFunctionSignature. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart
index 3f8884f06dfe433459fb135d6df6512b230bfe2b..a768d09a3df17de706e004b041499e28b3b42b3b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_handler_javascript.dart
@@ -226,6 +226,8 @@ class ForgetConstantVisitor extends ElementVisitor {
void visitFunctionElement(FunctionElement e) {
super.visitFunctionElement(e);
- e.functionSignature.forEachParameter(this.visit);
+ if (e.hasFunctionSignature) {
+ e.functionSignature.forEachParameter(this.visit);
+ }
}
}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698